/[papo]/gnue/forms/src/GFForm.py
ViewVC logotype

Diff of /gnue/forms/src/GFForm.py

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

revision 1.14 by apronotti, Tue Nov 5 19:29:40 2002 UTC revision 1.14.2.1 by styxman, Tue Jan 28 18:06:20 2003 UTC
# Line 89  class GFForm(GFObj, GRootObj, GFEventAwa Line 89  class GFForm(GFObj, GRootObj, GFEventAwa
89      self._app = app      self._app = app
90    
91      self._triggerns={}      self._triggerns={}
92        
93      # This will be set by GFInstance      # This will be set by GFInstance
94      self._parameters = {}      self._parameters = {}
95        
96      # The "None" init gives datasources time to setup master/detail      # The "None" init gives datasources time to setup master/detail
97      self._inits = [self.primaryInit, None, self.secondaryInit]      self._inits = [self.primaryInit, None, self.secondaryInit]
98    
# Line 146  class GFForm(GFObj, GRootObj, GFEventAwa Line 146  class GFForm(GFObj, GRootObj, GFEventAwa
146    #    #
147    # Called during phaseInit startup by GParser.    # Called during phaseInit startup by GParser.
148    #    #
149    def primaryInit(self):    def primaryInit(self, params={}):
150    
151      # Initialize our events system      # Initialize our events system
152      GFEventAware.__init__(self, self._app.eventController)      GFEventAware.__init__(self, self._app.eventController)
# Line 162  class GFForm(GFObj, GRootObj, GFEventAwa Line 162  class GFForm(GFObj, GRootObj, GFEventAwa
162      self.initTriggerSystem()      self.initTriggerSystem()
163      self._triggerns.update(self._triggerNamespaceTree._globalNamespace)      self._triggerns.update(self._triggerNamespaceTree._globalNamespace)
164      self._triggerns['runForm'] = self._app.manager.runFormFromTrigger      self._triggerns['runForm'] = self._app.manager.runFormFromTrigger
165        self._parameters= params
166    
167    def secondaryInit(self):    def secondaryInit(self, params={}):
168      # create the first records      # create the first records
169      for key in self._datasourceDictionary.keys():      for key in self._datasourceDictionary.keys():
170        if not self._datasourceDictionary[key].hasMaster():        if not self._datasourceDictionary[key].hasMaster():

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.14.2.1

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