[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/appserver/src geasSession.py geasSessionMa...
From: |
Reinhard Mueller |
Subject: |
gnue/appserver/src geasSession.py geasSessionMa... |
Date: |
Fri, 27 Dec 2002 17:56:47 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Reinhard Mueller <address@hidden> 02/12/27 17:56:47
Modified files:
appserver/src : geasSession.py geasSessionManager.py test2.py
Log message:
Removed context parameter from requestList calls, fixed call of logoff.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/appserver/src/geasSession.py.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/appserver/src/geasSessionManager.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/appserver/src/test2.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnue/appserver/src/geasSession.py
diff -c gnue/appserver/src/geasSession.py:1.11
gnue/appserver/src/geasSession.py:1.12
*** gnue/appserver/src/geasSession.py:1.11 Sun Dec 8 18:50:04 2002
--- gnue/appserver/src/geasSession.py Fri Dec 27 17:56:47 2002
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasSession.py,v 1.11 2002/12/08 23:50:04 siesel 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.12 2002/12/27 22:56:47 reinhard Exp $
import geasList
import geasTrigger
***************
*** 144,158 ****
return newbclass;
! def requestList(self,context,classname,conditions,
sortorder,propertylist):
# TODO move the whole function into the session obj
a_list=self.createList(classname)
list_id=self._listcount
# TODO: add a config_option to set the name of the ID field in the DB
table
! propertylist.add('_id_')
! a_list.setPrefetch (propertylist)
a_list.setConditions (conditions)
a_list.setSort (sortorder)
a_list.populate()
--- 144,157 ----
return newbclass;
! def requestList(self,classname,conditions,
sortorder,propertylist):
# TODO move the whole function into the session obj
a_list=self.createList(classname)
list_id=self._listcount
# TODO: add a config_option to set the name of the ID field in the DB
table
! a_list.setPrefetch (["_id_"] + propertylist)
a_list.setConditions (conditions)
a_list.setSort (sortorder)
a_list.populate()
Index: gnue/appserver/src/geasSessionManager.py
diff -c gnue/appserver/src/geasSessionManager.py:1.2
gnue/appserver/src/geasSessionManager.py:1.3
*** gnue/appserver/src/geasSessionManager.py:1.2 Sun Dec 8 18:50:04 2002
--- gnue/appserver/src/geasSessionManager.py Fri Dec 27 17:56:47 2002
***************
*** 19,25 ****
#
# Copyright 2001-2002 Free Software Foundation
#
! # $Id: geasSessionManager.py,v 1.2 2002/12/08 23:50:04 siesel Exp $
from geasList import *
from geasSession import *
--- 19,25 ----
#
# Copyright 2001-2002 Free Software Foundation
#
! # $Id: geasSessionManager.py,v 1.3 2002/12/27 22:56:47 reinhard Exp $
from geasList import *
from geasSession import *
***************
*** 80,86 ****
if commit:
self.commit(session_id)
! self._sessions[session_id].logoff()
del self._sessions[session_id]
def commit(self,session_id):
--- 80,86 ----
if commit:
self.commit(session_id)
! self._sessions[session_id].logout()
del self._sessions[session_id]
def commit(self,session_id):
***************
*** 91,97 ****
def requestList(self,session_id,classname,conditions,
sortorder,propertylist):
! self._sessions[session_id].requestList(context,classname,conditions,
sortorder,propertylist)
def count(self,session_id,list_id):
--- 91,97 ----
def requestList(self,session_id,classname,conditions,
sortorder,propertylist):
! return self._sessions[session_id].requestList(classname,conditions,
sortorder,propertylist)
def count(self,session_id,list_id):
Index: gnue/appserver/src/test2.py
diff -c gnue/appserver/src/test2.py:1.2 gnue/appserver/src/test2.py:1.3
*** gnue/appserver/src/test2.py:1.2 Fri Nov 29 09:16:20 2002
--- gnue/appserver/src/test2.py Fri Dec 27 17:56:47 2002
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: test2.py,v 1.2 2002/11/29 14:16:20 siesel Exp $
import os
from gnue.common import GClientApp
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: test2.py,v 1.3 2002/12/27 22:56:47 reinhard Exp $
import os
from gnue.common import GClientApp
***************
*** 59,66 ****
session=sm.open({'user':"hacker", 'password':"secret"})
print "Creating and populating list object ..."
! list = sm.requestList(session,'',"person",[],
! ["zip"],["name", "street", "city"])
print "Retrieving first instance ..."
rset = sm.fetch(session,list,0,1)
--- 59,66 ----
session=sm.open({'user':"hacker", 'password':"secret"})
print "Creating and populating list object ..."
! list = sm.requestList(session, "person", [], ["zip"],
! ["name", "street", "city"])
print "Retrieving first instance ..."
rset = sm.fetch(session,list,0,1)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/appserver/src geasSession.py geasSessionMa...,
Reinhard Mueller <=