Example #1
0
 def _tenant_path(self):
     """
     Return a URL-encoded path segment of a URL within a particular tenant,
     in the form:
         stacks/<stack_name>/<stack_id><path>
     """
     return "stacks/%s%s" % (self.stack_path(), urlutils.quote(strutils.safe_encode(self.path)))
Example #2
0
 def __str__(self):
     '''Return a string representation of the parameter'''
     value = self.value()
     if self.hidden():
         return '******'
     else:
         return strutils.safe_encode(six.text_type(value))
Example #3
0
 def _tenant_path(self):
     '''
     Return a URL-encoded path segment of a URL within a particular tenant,
     in the form:
         stacks/<stack_name>/<stack_id><path>
     '''
     return 'stacks/%s%s' % (self.stack_path(),
                             urlparse.quote(strutils.safe_encode(
                                 self.path)))