/[gnue]/gnue-appserver/src/classrep/crpopulate.py
ViewVC logotype

Diff of /gnue-appserver/src/classrep/crpopulate.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by reinhard, Mon Jul 28 22:44:56 2003 UTC revision 1.3 by reinhard, Fri Aug 8 19:33:51 2003 UTC
# Line 4  Line 4 
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 ()
# Line 12  lSession = app.newSession ("hacker", "se Line 12  lSession = app.newSession ("hacker", "se
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 ..."
# Line 47  for moduleDef in crdef.modules (): Line 47  for moduleDef in crdef.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:

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26