Exemple #1
0
 def human_id(self):
     """Subclasses may override this provide a pretty ID which can be used
     for bash completion.
     """
     if 'name' in self.__dict__ and self.HUMAN_ID:
         return utils.slugify(self.name)
     return None
 def human_id(self):
     """Subclasses may override this provide a pretty ID which can be used
     for bash completion.
     """
     if 'name' in self.__dict__ and self.HUMAN_ID:
         return utils.slugify(self.name)
     return None
Exemple #3
0
 def human_id(self):
     """Provides a pretty ID which can be used for bash completion."""
     if 'name' in self.__dict__ and self.HUMAN_ID:
         return utils.slugify(self.name)
     return None
 def human_id(self):
     """Provides a pretty ID which can be used for bash completion."""
     if 'name' in self.__dict__ and self.HUMAN_ID:
         return utils.slugify(self.name)
     return None