Beispiel #1
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))
Beispiel #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))
Beispiel #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(), urlutils.quote(strutils.safe_encode(self.path)))
Beispiel #4
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)))
Beispiel #5
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)))