Пример #1
0
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 )
Пример #2
0
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)
Пример #3
0
 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 )
Пример #4
0
 def listallcomponentcategories(self):
     components = self.listallcomponents()
     ret = [ category for category, type in components ]
     return uniquelist( ret )
Пример #5
0
def listallcomponentcategories( ):
    '''list all component categories'''
    defaultcategories = listalldefaultcomponentcategories()
    import components
    categoriesinregistry = components.categoriesInRegistry()
    return uniquelist( defaultcategories + categoriesinregistry )
Пример #6
0
 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)
Пример #7
0
 def listallcomponentcategories(self):
     components = self.listallcomponents()
     ret = [category for category, type in components]
     return uniquelist(ret)
Пример #8
0
def listallcomponentcategories():
    '''list all component categories'''
    defaultcategories = listalldefaultcomponentcategories()
    import components
    categoriesinregistry = components.categoriesInRegistry()
    return uniquelist(defaultcategories + categoriesinregistry)