[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-appserver/src geasInstance.py test.py
From: |
Reinhard Mueller |
Subject: |
gnue-appserver/src geasInstance.py test.py |
Date: |
Tue, 12 Aug 2003 13:58:20 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-appserver
Branch:
Changes by: Reinhard Mueller <address@hidden> 03/08/12 13:58:20
Modified files:
src : geasInstance.py test.py
Log message:
Fixed the "show" test method, and added a call to that method to the
test
program.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/geasInstance.py.diff?tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/test.py.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
Patches:
Index: gnue-appserver/src/geasInstance.py
diff -c gnue-appserver/src/geasInstance.py:1.11
gnue-appserver/src/geasInstance.py:1.12
*** gnue-appserver/src/geasInstance.py:1.11 Tue Aug 12 13:04:52 2003
--- gnue-appserver/src/geasInstance.py Tue Aug 12 13:58:20 2003
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasInstance.py,v 1.11 2003/08/12 17:04:52 reinhard Exp $
#
=============================================================================
# Instance class
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasInstance.py,v 1.12 2003/08/12 17:58:20 reinhard Exp $
#
=============================================================================
# Instance class
***************
*** 79,88 ****
# missing the class definition repository. -- Siesel
# mis-using trigger to implement methods
! trigger=self._list._session._triggerMg.getTriggerByName \
! ('%s:%s' % (self._list._classname,methodname))
! if trigger!=None:
! return trigger()
# just containing a basic test method
if methodname=="show":
print "Function 'show' was called. This record contains the following
"+\
--- 79,88 ----
# missing the class definition repository. -- Siesel
# mis-using trigger to implement methods
! # trigger=self._list._session._triggerMg.getTriggerByName \
! # ('%s:%s' % (self._list._classdef.fullName,methodname))
! # if trigger!=None:
! # return trigger()
# just containing a basic test method
if methodname=="show":
print "Function 'show' was called. This record contains the following
"+\
Index: gnue-appserver/src/test.py
diff -c gnue-appserver/src/test.py:1.16 gnue-appserver/src/test.py:1.17
*** gnue-appserver/src/test.py:1.16 Mon Jul 28 17:48:22 2003
--- gnue-appserver/src/test.py Tue Aug 12 13:58:20 2003
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: test.py,v 1.16 2003/07/28 21:48:22 reinhard Exp $
import os
from gnue.common.apps import GClientApp
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: test.py,v 1.17 2003/08/12 17:58:20 reinhard Exp $
import os
from gnue.common.apps import GClientApp
***************
*** 66,71 ****
--- 66,74 ----
print " Name :", rset[0][1]
print " Street:", rset[0][2]
print " City :", rset[0][3]
+
+ print "Now I call the procedure 'show' for the first instance:"
+ sm.call (session, "address_person", [rset[0][0]], "show", "")
#
=============================================================================
# Login Handler
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-appserver/src geasInstance.py test.py,
Reinhard Mueller <=