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))
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)))
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)))
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)))