[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5207 - in trunk/gnue-appserver: doc/technotes src src/classrep
From: |
reinhard |
Subject: |
r5207 - in trunk/gnue-appserver: doc/technotes src src/classrep |
Date: |
Mon, 1 Mar 2004 13:20:37 -0600 (CST) |
Author: reinhard
Date: 2004-03-01 13:20:36 -0600 (Mon, 01 Mar 2004)
New Revision: 5207
Modified:
trunk/gnue-appserver/doc/technotes/00002.txt
trunk/gnue-appserver/src/classrep/Procedure.py
trunk/gnue-appserver/src/classrep/Property.py
trunk/gnue-appserver/src/geasInstance.py
Log:
Introduced module property for Property and Procedure objects in class
repository.
Modified: trunk/gnue-appserver/doc/technotes/00002.txt
===================================================================
--- trunk/gnue-appserver/doc/technotes/00002.txt 2004-03-01 18:05:54 UTC
(rev 5206)
+++ trunk/gnue-appserver/doc/technotes/00002.txt 2004-03-01 19:20:36 UTC
(rev 5207)
@@ -60,6 +60,7 @@
Apart from that, the Python object of class "Property" has the following
properties:
+* module: The module defining the property
* fullName: The fully qualified name
* fullType: The complete data type of the property, including length and
scale. This is the appserver-specific data type, e.g. a column
@@ -76,3 +77,17 @@
'gnue_id' has 'string(32)' as dbFullType, as well as the above
'address_country' column would be 'string(32)'. A column with
fullType 'boolean' has a dbFullType 'boolean'.
+
+
+The Procedure Object
+====================
+
+All properties of the gnue_procedure business object (described in the API
+documentation) are also accessible as properties of the corresponding Python
+object.
+
+Apart from that, the Python object of class "Property" has the following
+properties:
+
+* module: The module defining the property
+* fullName: The fully qualified name
Modified: trunk/gnue-appserver/src/classrep/Procedure.py
===================================================================
--- trunk/gnue-appserver/src/classrep/Procedure.py 2004-03-01 18:05:54 UTC
(rev 5206)
+++ trunk/gnue-appserver/src/classrep/Procedure.py 2004-03-01 19:20:36 UTC
(rev 5207)
@@ -88,6 +88,5 @@
def __init__ (self, session, module, object, pDefs = None):
BaseObject.__init__ (self, session, 'gnue_procedure', object, pDefs)
- # gnue_procedure.gnue_name is already a fully qualified identifier
+ self.module = module
self.fullName = createName (module.gnue_name, self.gnue_name)
-
Modified: trunk/gnue-appserver/src/classrep/Property.py
===================================================================
--- trunk/gnue-appserver/src/classrep/Property.py 2004-03-01 18:05:54 UTC
(rev 5206)
+++ trunk/gnue-appserver/src/classrep/Property.py 2004-03-01 19:20:36 UTC
(rev 5207)
@@ -100,10 +100,8 @@
def __init__ (self, session, module, object, pDefs = None):
BaseObject.__init__ (self, session, 'gnue_property', object, pDefs)
- self.__module = module
-
- # gnue_property.gnue_name is already a fully qualified identifier
- self.fullName = createName (self.__module.gnue_name, self.gnue_name)
+ self.module = module
+ self.fullName = createName (self.module.gnue_name, self.gnue_name)
self.column = self.fullName
if self.gnue_length is None:
Modified: trunk/gnue-appserver/src/geasInstance.py
===================================================================
--- trunk/gnue-appserver/src/geasInstance.py 2004-03-01 18:05:54 UTC (rev
5206)
+++ trunk/gnue-appserver/src/geasInstance.py 2004-03-01 19:20:36 UTC (rev
5207)
@@ -263,8 +263,6 @@
# Create a session object which with the actual session id
sess = Session.Session (self.__session.sm, self.__session.id)
- sess.setcontext(string.split(procedurename,'_')[0])
-
# Create an object representing the current business object
obj = Object.Object (sess, self.__classdef.fullName,
self._getValue ("gnue_id"))
@@ -301,6 +299,9 @@
cx.bindFunction('direct_store', self.__session.store)
cx.bindFunction('direct_call', self.__session.call)
+ # set context for the procedure
+ sess.setcontext (proceduredef.module.gnue_name)
+
try:
method = cx.buildMethod(proceduredef.gnue_name, proceduredef.gnue_code)
retcode = method(params)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5207 - in trunk/gnue-appserver: doc/technotes src src/classrep,
reinhard <=