| Home | Trees | Index | Help |
|---|
| Classes | |
|---|---|
BaseItem |
Base class for repository items. |
CalculatedProperty |
A calculated property object in the repository. |
Class |
A class object in the repository. |
Label |
A label object in the repository. |
LabelsMixIn |
|
Module |
A module object in the repository. |
Parameter |
A parameter object of the repository. |
Procedure |
A procedure object in the repository. |
Property |
A property object in the repository. |
Repository |
This class provides access to the class repository of AppServer. |
| Function Summary | |
|---|---|
This function creates a fully qualified name from namespace and identifier. | |
Create an ordered list of languages to fetch labels for. | |
This function splits the given name into namespace and identifier parts. | |
This function updates all type information in a given dictionary. | |
Verify a given typename with length and scale. | |
This function checks the resulttype of a procedure definition, and all parameter types (if available). | |
This function verifies a given type, length and scale combination, optionally using the given class dictionary for lookups of references. | |
| Variable Summary | |
|---|---|
dict |
BASE_TYPES = {'boolean': True, 'string': True, 'time': T...
|
dict |
NOLS_TYPES = {'date': 1, 'boolean': 1, 'datetime': 1, 'i...
|
dict |
NONREF_TYPES = {'string': True, 'number': True, 'datetim...
|
int |
REF_LENGTH = 32 |
int |
REF_SCALE = 0 |
str |
REF_TYPE = 'string'
|
| Function Details |
|---|
createName(namespace, identifier)This function creates a fully qualified name from namespace and identifier. If the result is not a valid name, an InvalidNameError will be raised.
|
getLanguages(language)Create an ordered list of languages to fetch labels for. The list starts with the most specific language and contains at least 'C'. The language 'de_AT' will result in a list ['de_AT', 'de', 'C'].
|
splitName(name)This function splits the given name into namespace and identifier parts. If name does not contain a namespace at all, it will be left empty. If the resulting tuple has more than two parts an InvalidNameError will be raised.
|
updateTypeInfo(item)This function updates all type information in a given dictionary. It assumes to find the keys 'gnue_type', 'gnue_length' and 'gnue_scale' in the dictionary. After updating the dictionary will contain the following additional keys: fullType, dbFullType, dbType, dbLength and dbScale
|
verifyBasetype(typename, length, scale)Verify a given typename with length and scale. If this combination makes no sense a TypeFormatError will be raised. If typename is no valid base type a TypeNameError will be raised.
|
verifyProcedure(aProc)This function checks the resulttype of a procedure definition, and all parameter types (if available).
|
verifyType(typename, length, scale, classes)This function verifies a given type, length and scale combination, optionally using the given class dictionary for lookups of references.
|
| Variable Details |
|---|
BASE_TYPES
|
NOLS_TYPES
|
NONREF_TYPES
|
REF_LENGTH
|
REF_SCALE
|
REF_TYPE
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Sat Sep 6 23:01:32 2008 | http://epydoc.sf.net |