def listcomponentsincategory( category ): categories = listalldefaultcomponentcategories() if category not in categories: return [] defaultcomponents = listdefaultcomponentsincategory( category ) import components components.importallcomponents() registered = components.registeredComponentsInCategory( category ) return uniquelist( defaultcomponents + registered )
def listcomponentsincategory(category): categories = listalldefaultcomponentcategories() if category not in categories: return [] defaultcomponents = listdefaultcomponentsincategory(category) import components components.importallcomponents() registered = components.registeredComponentsInCategory(category) return uniquelist(defaultcomponents + registered)
def listallcomponents(self): '''return a list of (category, type) tuples ''' static_components = self._getStaticComponentList( ) dynamic_components = self.factories.keys() return uniquelist( static_components + dynamic_components )
def listallcomponentcategories(self): components = self.listallcomponents() ret = [ category for category, type in components ] return uniquelist( ret )
def listallcomponentcategories( ): '''list all component categories''' defaultcategories = listalldefaultcomponentcategories() import components categoriesinregistry = components.categoriesInRegistry() return uniquelist( defaultcategories + categoriesinregistry )
def listallcomponents(self): '''return a list of (category, type) tuples ''' static_components = self._getStaticComponentList() dynamic_components = self.factories.keys() return uniquelist(static_components + dynamic_components)
def listallcomponentcategories(self): components = self.listallcomponents() ret = [category for category, type in components] return uniquelist(ret)
def listallcomponentcategories(): '''list all component categories''' defaultcategories = listalldefaultcomponentcategories() import components categoriesinregistry = components.categoriesInRegistry() return uniquelist(defaultcategories + categoriesinregistry)