Example #1
0
class TargetItem(FailureTarget):
    '''
    The target context.
    '''
    # ---------------------------------------------------------------- Defined
    dictEntryKey = attribute(object, doc='''
    @rtype: object
    The dictionary entry key.
    ''')
    dictEntryValue = attribute(object, doc='''
    @rtype: boolean
    The dictionary entry value.
    ''')
Example #2
0
class Register(Context):
    '''
    The register context.
    '''
    # ---------------------------------------------------------------- Defined
    introspect = attribute(Context, doc='''
    @rtype: Context
    The introspect context for the registry.
    ''')
Example #3
0
class WithTracking(Context):
    '''
    Context class with tracking info.
    '''
    lineNumber = attribute(int,
                           doc='''
    @rtype: int
    The starting line number for this element in the configuration file. 
    ''')
    colNumber = attribute(int,
                          doc='''
    @rtype: int
    The starting column number for this element in the configuration file. 
    ''')
    uri = attribute(str,
                    doc='''
    @rtype: str
    Uri of the file containing this element. 
    ''')
Example #4
0
class Register(Context):
    '''
    The register context.
    '''
    # ---------------------------------------------------------------- Defines
    itemTree = attribute(Context,
                         doc='''
    @rtype: Context
    The root of the item tree structure
    ''')
    # ---------------------------------------------------------------- Requires
    listeners = requires(list)
Example #5
0
class Element(Context):
    '''
    The element context.
    '''
    # ---------------------------------------------------------------- Defined
    accessEntryPosition = attribute(int,
                                    doc='''
    @rtype: integer
    The access entry position assigned for the path element.
    ''')
    # ---------------------------------------------------------------- Required
    name = requires(str)
    property = requires(TypeProperty)
    shadowing = requires(Context)
    shadowed = requires(Context)
Example #6
0
 class Repository(Context):
     '''
     The repository context.
     '''
     # ---------------------------------------------------------------- Defined
     parent = attribute(Context,
                        doc='''
     @rtype: Context
     The parent context for repository. 
     ''')
     actions = defines(list,
                       doc='''
     @rtype: list[Context]
     The list of actions created.
     ''')
Example #7
0
class Listener(Context):
    '''
    The file system item context.
    '''
    #---------------------------------------------------Defined
    path = attribute(str,
                     doc='''
    @rtype: string
    The file system path of the listener.
    ''')
    #----------------------------------------------------Requires
    uri = requires(str)
    doMatch = requires(IDo)
    doMatchResource = requires(IDo)
    doOnContentCreated = requires(IDo)
    doOnContentChanged = requires(IDo)
    doOnContentRemoved = requires(IDo)
Example #8
0
class Register(Context):
    '''
    The register context.
    '''
    # ---------------------------------------------------------------- Defined
    relations = defines(dict,
                        doc='''
    @rtype: dictionary{TypeModel: set(TypeModel)}
    The model relations, as a key the model that depends on the models found in the value set.
    ''')
    doCopyElement = attribute(IDo,
                              doc='''
    @rtype: callable(destination:Context, source:Context, exclude:set=None) -> Context
    On the first position the destination element to copy to and on the second position the source to copy from, returns
    the destination element. Accepts also a named argument containing a set of attributes names to exclude.
    ''')
    # ---------------------------------------------------------------- Required
    invokers = requires(list)
    exclude = requires(set)
    doCopyInvoker = requires(IDo)
Example #9
0
class ItemFile(Context):
    '''
    The file system item context.
    '''
    # ---------------------------------------------------------------- Defined
    parent = attribute(Context,
                       doc='''
    @rtype: Context
    The parent item.
    ''')
    name = attribute(str,
                     doc='''
    @rtype: string
    The item name.
    ''')
    path = attribute(str,
                     doc='''
    @rtype: string
    The path of the item.
    ''')
    uri = attribute(str,
                    doc='''
    @rtype: string
    The path of the item.
    ''')
    lastModified = attribute(int,
                             doc='''
    @rtype: integer
    The time of the modification.
    ''')
    children = attribute(dict,
                         doc='''
    @rtype: dictionary{string: Context}
    The children items.
    ''')
    listeners = attribute(list,
                          doc='''
    @rtype: list[Context]
    The list of listeners for this item.
    ''')