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