Package gnue :: Package appserver :: Module repository :: Class Module
[show private | hide private]

Class Module

BaseItem --+
           |
          Module


A module object in the repository.
Method Summary
  __init__(self, predefined)
Create a new module item.
  updateLinks(self, modules, classes, unlink)
Update links of a module item by updating the links of all it's classes.
  _installClass(self, aClass)
Add a class element to the class dictionary.
    Inherited from BaseItem
  __getitem__(self, attr)
Emulate a dictionary access to the wrapper instance.
  __nonzero__(self)

Instance Variable Summary
  classes: a caseless dictionary of all classes of the module.
  fullname: fully qualified name of the module

Method Details

__init__(self, predefined=None)
(Constructor)

Create a new module item.
Parameters:
predefined - dictionary with predefined ('builtin') values
Overrides:
gnue.appserver.repository.BaseItem.__init__

updateLinks(self, modules, classes, unlink=False)

Update links of a module item by updating the links of all it's classes.
Parameters:
modules - dictionary with all modules available
classes - dictionary with all classes available
unlink - if set to True, references will be cleared

_installClass(self, aClass)

Add a class element to the class dictionary.
Parameters:
aClass - Class instance to be added

Instance Variable Details

classes

a caseless dictionary of all classes of the module. Each class will be listed in this dictionary by it's gnue_id as well as it's full name.

fullname

fully qualified name of the module


GNUe Home

Private API

Developer's Corner