/[gnue]/gnue-appserver/src/geasSession.py
ViewVC logotype

Diff of /gnue-appserver/src/geasSession.py

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

revision 1.28 by reinhard, Mon Aug 11 15:22:11 2003 UTC revision 1.29 by reinhard, Mon Aug 11 15:26:54 2003 UTC
# Line 61  class geasSession: Line 61  class geasSession:
61      except:      except:
62        self._database = "gnue"        self._database = "gnue"
63      self._lists = {}      self._lists = {}
     self._classes = {}  
64      self._listcount=0      self._listcount=0
65      self._authAdapter = geasAuthentification.geasAuthAgent()      self._authAdapter = geasAuthentification.geasAuthAgent()
66      self._triggerMg = geasTrigger.geasPythonDBTriggerMg(self)      self._triggerMg = geasTrigger.geasPythonDBTriggerMg(self)
# Line 139  class geasSession: Line 138  class geasSession:
138        if hasattr(self._lists[l],"_datasource"):        if hasattr(self._lists[l],"_datasource"):
139          self._lists[l]._datasource.rollback()              self._lists[l]._datasource.rollback()    
140    
   
   # ---------------------------------------  
   # functions of the new RPC API  
   #     not well documented and still a subject of change  
   # ---------------------------------------  
   
   # ---------------------------------------------------------------------------  
   # Get the BClass object for the given classname  
   # ---------------------------------------------------------------------------  
   
   def _getClass(self, classname):  
   
     # if bclass already used, then continue to use the old one  
     if self._bclasses.has_key(classname):  
       return self._bclasses[classname]  
   
   
     # build new bclass (Buisness Object Class Manager)  
       
     # Authentification  
     # TODO: use getRole (n.i.y.) function instead  
     if not self._authAdapter.hasAccess (self, self._user, classname):  
       raise Error,'Class "%s": No Access Granted or Not Existent' % classname  
   
     # build bclass object  
     # TODO: replace it with a call to the class repository, like:  
     newbclass=self._classrepository.buildBClass(classname, self._user, role)  
       
     # newbclass=geasBClass.geasBClass (self, classname)  
   
     # cache the bclass object  
     self._bclasses[classname]=newbclass  
   
     return newbclass;      
     
141    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
142    # Create a new list of business objects of a given class    # Create a new list of business objects of a given class
143    # ---------------------------------------------------------------------------    # ---------------------------------------------------------------------------
# Line 318  class geasSession: Line 282  class geasSession:
282  #   FIXME: This function should be moved to the geasBClass object, once  #   FIXME: This function should be moved to the geasBClass object, once
283  #   it is working  -- Siesel  #   it is working  -- Siesel
284  #   return self._getClass(classname).call(obj_id_list,methodname,parameters)  #   return self._getClass(classname).call(obj_id_list,methodname,parameters)
   

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

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