[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-appserver doc/api/api.texi doc/api/version...
From: |
Reinhard Mueller |
Subject: |
gnue-appserver doc/api/api.texi doc/api/version... |
Date: |
Sun, 19 Oct 2003 09:07:15 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-appserver
Branch:
Changes by: Reinhard Mueller <address@hidden> 03/10/19 09:07:15
Modified files:
doc/api : api.texi version.texi
src : geasSession.py
src/classrep : Property.py
Log message:
Calling load() with an empty object_id returns the data types of the
properties.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/doc/api/api.texi.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/doc/api/version.texi.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/geasSession.py.diff?tr1=1.38&tr2=1.39&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-appserver/src/classrep/Property.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: gnue-appserver/doc/api/api.texi
diff -c gnue-appserver/doc/api/api.texi:1.10
gnue-appserver/doc/api/api.texi:1.11
*** gnue-appserver/doc/api/api.texi:1.10 Wed Sep 17 13:13:52 2003
--- gnue-appserver/doc/api/api.texi Sun Oct 19 09:07:13 2003
***************
*** 228,233 ****
--- 228,237 ----
Unlike @code{fetch}, this function does @emph{not} automatically return
the object_ids in column 0.
+ If this function is called with one of the @var{object_ids} being an empty
+ string, the corresponding row in the result contains a list of the data types
+ of the @var{properties}.
+
An Exception is raised if @var{session} is not a valid session identifier, the
requested class does not exist, the current user has not access to the
requested class, any of the given @var{object_ids} does not exist, or any of
Index: gnue-appserver/doc/api/version.texi
diff -c gnue-appserver/doc/api/version.texi:1.7
gnue-appserver/doc/api/version.texi:1.8
*** gnue-appserver/doc/api/version.texi:1.7 Wed Sep 17 13:13:52 2003
--- gnue-appserver/doc/api/version.texi Sun Oct 19 09:07:13 2003
***************
*** 1,2 ****
! @set UPDATED 2003-09-17
! @set EDITION 0.0.8
--- 1,2 ----
! @set UPDATED 2003-10-19
! @set EDITION 0.0.9
Index: gnue-appserver/src/classrep/Property.py
diff -c gnue-appserver/src/classrep/Property.py:1.7
gnue-appserver/src/classrep/Property.py:1.8
*** gnue-appserver/src/classrep/Property.py:1.7 Mon Sep 22 02:46:56 2003
--- gnue-appserver/src/classrep/Property.py Sun Oct 19 09:07:14 2003
***************
*** 19,25 ****
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: Property.py,v 1.7 2003/09/22 06:46:56 reinhard Exp $
from Base import *
from Namespace import *
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: Property.py,v 1.8 2003/10/19 13:07:14 reinhard Exp $
from Base import *
from Namespace import *
***************
*** 132,137 ****
--- 132,147 ----
# gnue_property.gnue_name is already a fully qualified identifier
self.fullName = createName (module.gnue_name, object.gnue_name)
self.column = self.fullName
+ if self.gnue_type == 'string':
+ self.fullType = '%s(%d)' % (self.gnue_type, int (self.gnue_length))
+ elif self.gnue_type == 'number':
+ if self.gnue_scale == 0:
+ self.fullType = '%s(%d)' % (self.gnue_type, int (self.gnue_length))
+ else:
+ self.fullType = '%s(%d.%d)' % (self.gnue_type, int (self.gnue_length),
+ int (self.gnue_scale))
+ else:
+ self.fullType = self.gnue_type
#
---------------------------------------------------------------------------
# all unknown attributes are routed to the gnue-namespace
Index: gnue-appserver/src/geasSession.py
diff -c gnue-appserver/src/geasSession.py:1.38
gnue-appserver/src/geasSession.py:1.39
*** gnue-appserver/src/geasSession.py:1.38 Thu Sep 18 11:14:10 2003
--- gnue-appserver/src/geasSession.py Sun Oct 19 09:07:14 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.38 2003/09/18 15:14:10 jvetter Exp $
import geasList
import classrep
--- 19,25 ----
# write to the Free Software Foundation, Inc., 59 Temple Place
# - Suite 330, Boston, MA 02111-1307, USA.
#
! # $Id: geasSession.py,v 1.39 2003/10/19 13:07:14 reinhard Exp $
import geasList
import classrep
***************
*** 171,178 ****
list = self._createList (classname, ["gnue_id"] + propertylist, [])
result = []
for object_id in obj_id_list:
! instance = list.find (object_id)
! result.append (instance.get (propertylist))
return result
#
---------------------------------------------------------------------------
--- 171,182 ----
list = self._createList (classname, ["gnue_id"] + propertylist, [])
result = []
for object_id in obj_id_list:
! if object_id == "":
! classdef = classrep.classes [classname]
! result = [classdef.properties[p].fullType for p in propertylist]
! else:
! instance = list.find (object_id)
! result.append (instance.get (propertylist))
return result
#
---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-appserver doc/api/api.texi doc/api/version...,
Reinhard Mueller <=