Class Class
BaseItem --+
|
Class
A class object in the repository.
| Method Summary |
| |
__init__(self,
predefined,
moduleLookup)
Create a new class item. |
| |
addMasterClass(self,
aProperty,
aMaster)
Add a given class to the dictionary of master-classes. |
| |
findItem(self,
itemname)
Find a property of a procedure of the given name. |
| |
getClassLabel(self,
language)
|
| |
getFilterLabels(self,
language)
|
| |
updateLinks(self,
modules,
classes,
unlink)
Updates links of a Class item by updating the links of all
it's properties and procedures. |
| Inherited from BaseItem |
| |
__getitem__(self,
attr)
Emulate a dictionary access to the wrapper instance. |
| |
__nonzero__(self)
|
| Instance Variable Summary |
| |
fullName: fully qualified name (including the module name) |
| |
masters: caseless dictionary of all the master classes
(master-/detail-relation). |
| |
OnChange: list of Procedure objects containing OnChange
triggers of the class |
| |
OnDelete: list of Procedure objects containing OnDelete
triggers of the class |
| |
OnInit: list of Procedure objects containing OnInit
triggers of the class |
| |
OnValidate: list of Procedure objects containing OnValidate
triggers of the class |
| |
procedures: caseless dictionary with all procedures of the class. |
| |
properties: caseless dictionary with all properties of the class. |
| |
table: name of the underlying table in the backend database |
__init__(self,
predefined,
moduleLookup)
(Constructor)
Create a new class item.
-
- Parameters:
predefined -
dictionary with predefined ('builtin') values
moduleLookup -
(raw) lookup-dictionary with all modules available
- Overrides:
gnue.appserver.repository.BaseItem.__init__
|
addMasterClass(self,
aProperty,
aMaster)
Add a given class to the dictionary of master-classes.
-
- Parameters:
aProperty -
name of the property holding the pointer to master-class
aMaster -
Class instance to be added
|
findItem(self,
itemname)
Find a property of a procedure of the given name. If the name
contains references (sepearted by a point) these references will be
resolved.
-
- Parameters:
itemname -
fully qualified name of the property or procedure to find
- Returns:
-
the property or procedure instance of the found item
- Raises:
PropertyNotFoundError -
if no such property or procedure exists.
|
getClassLabel(self,
language)
-
|
getFilterLabels(self,
language)
-
|
updateLinks(self,
modules,
classes,
unlink=False)
Updates links of a Class item by updating the links of all
it's properties and procedures.
-
- Parameters:
modules -
dictionary with all modules available
unlink -
if set to True, references will be cleared
|
| Instance Variable Details |
fullName
fully qualified name (including the module name)
|
masters
caseless dictionary of all the master classes
(master-/detail-relation). This dictionary contains the full name of the
master classes as keys, and a sequence of those properties referencing
that master class.
|
OnChange
list of Procedure objects containing OnChange
triggers of the class
|
OnDelete
list of Procedure objects containing OnDelete
triggers of the class
|
OnInit
list of Procedure objects containing OnInit
triggers of the class
|
OnValidate
list of Procedure objects containing OnValidate
triggers of the class
|
procedures
caseless dictionary with all procedures of the class. Every procedure
is accessible either by it's gnue_id or it's full name
|
properties
caseless dictionary with all properties of the class. Every property
is accessible either by it's gnue_id or it's full name. This dictionary
also contains calculated properties
|
table
name of the underlying table in the backend database
|