4 |
|
|
5 |
from language import App |
from language import App |
6 |
from Namespace import * |
from Namespace import * |
7 |
from classrep import * |
from gnue.appserver import classrep |
8 |
|
|
9 |
# First we have to create a session from the language interface |
# First we have to create a session from the language interface |
10 |
app = App.App () |
app = App.App () |
12 |
|
|
13 |
# Now load the initial class repository |
# Now load the initial class repository |
14 |
print "Loading repository definition ..." |
print "Loading repository definition ..." |
15 |
crdef = loadDefinition ('classrep/repository.ini') |
crdef = classrep.RepositoryDefinition ('classrep/repository.ini') |
16 |
|
|
17 |
|
|
18 |
print "Retrieving existing modules ..." |
print "Retrieving existing modules ..." |
47 |
for clDef in crdef.classes (newModule.gnue_name): |
for clDef in crdef.classes (newModule.gnue_name): |
48 |
# since we need the classes property-dictionary later, we require the |
# since we need the classes property-dictionary later, we require the |
49 |
# class-dictionary here (using the apropriate module-id). |
# class-dictionary here (using the apropriate module-id). |
50 |
aClass = findClass (clDef [0], lSession) |
aClass = classrep.classes [clDef [0]] |
51 |
aClass.gnue_module = newModule.objectId |
aClass.gnue_module = newModule.objectId |
52 |
|
|
53 |
if clDef [0] in kllist: |
if clDef [0] in kllist: |