[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-appserver/src geasList.py geasSession.py
From: |
Reinhard Mueller |
Subject: |
gnue-appserver/src geasList.py geasSession.py |
Date: |
Mon, 11 Aug 2003 11:26:54 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-appserver
Branch:
Changes by: Reinhard Mueller <address@hidden> 03/08/11 11:26:54
Modified files:
src : geasList.py geasSession.py
Log message:
Code cleanup. Removed unused parts.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/geasList.py.diff?tr1=1.21&tr2=1.22&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/geasSession.py.diff?tr1=1.28&tr2=1.29&r1=text&r2=text
Patches:
Index: gnue-appserver/src/geasList.py
diff -c gnue-appserver/src/geasList.py:1.21 gnue-appserver/src/geasList.py:1.22
*** gnue-appserver/src/geasList.py:1.21 Mon Aug 11 11:22:11 2003
--- gnue-appserver/src/geasList.py Mon Aug 11 11:26:54 2003
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasList.py,v 1.21 2003/08/11 15:22:11 reinhard Exp $
from gnue.common.datasources import GDataSource,GConditions
import geasInstance
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasList.py,v 1.22 2003/08/11 15:26:54 reinhard Exp $
from gnue.common.datasources import GDataSource,GConditions
import geasInstance
***************
*** 156,166 ****
if value == None:
value = ""
row.append(value)
-
- ## ** use dictionary **
- ## row = {}
- ## for property in self._prefetch:
- ## row [property] = object.get (property)
result.append (row)
c += 1
object = self.nextInstance ()
--- 156,161 ----
Index: gnue-appserver/src/geasSession.py
diff -c gnue-appserver/src/geasSession.py:1.28
gnue-appserver/src/geasSession.py:1.29
*** gnue-appserver/src/geasSession.py:1.28 Mon Aug 11 11:22:11 2003
--- gnue-appserver/src/geasSession.py Mon Aug 11 11:26:54 2003
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasSession.py,v 1.28 2003/08/11 15:22:11 reinhard Exp $
import geasList
import geasTrigger
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasSession.py,v 1.29 2003/08/11 15:26:54 reinhard Exp $
import geasList
import geasTrigger
***************
*** 61,67 ****
except:
self._database = "gnue"
self._lists = {}
- self._classes = {}
self._listcount=0
self._authAdapter = geasAuthentification.geasAuthAgent()
self._triggerMg = geasTrigger.geasPythonDBTriggerMg(self)
--- 61,66 ----
***************
*** 139,179 ****
if hasattr(self._lists[l],"_datasource"):
self._lists[l]._datasource.rollback()
-
- # ---------------------------------------
- # 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;
-
#
---------------------------------------------------------------------------
# Create a new list of business objects of a given class
#
---------------------------------------------------------------------------
--- 138,143 ----
***************
*** 318,321 ****
# FIXME: This function should be moved to the geasBClass object, once
# it is working -- Siesel
# return self._getClass(classname).call(obj_id_list,methodname,parameters)
-
--- 282,284 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-appserver/src geasList.py geasSession.py,
Reinhard Mueller <=