modeling-cvs Mailing List for Object-Relational Bridge for python (Page 32)
Status: Abandoned
Brought to you by:
sbigaret
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
(54) |
Apr
(29) |
May
(94) |
Jun
(47) |
Jul
(156) |
Aug
(132) |
Sep
(40) |
Oct
(6) |
Nov
(18) |
Dec
(24) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(18) |
Feb
(59) |
Mar
(7) |
Apr
|
May
(8) |
Jun
(2) |
Jul
(12) |
Aug
(15) |
Sep
(12) |
Oct
(6) |
Nov
(25) |
Dec
(1) |
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
(27) |
Mar
|
Apr
(16) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <sbi...@us...> - 2003-03-17 11:19:21
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv13335
Modified Files:
TODO
Log Message:
Updated -- notes about Attribute and externalType being either 'string' or 'str'
Index: TODO
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/TODO,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** TODO 20 Feb 2003 11:56:44 -0000 1.8
--- TODO 17 Mar 2003 11:19:14 -0000 1.9
***************
*** 78,82 ****
should be exercised so that it is possible to model relationship to
non-leaf entities/classes, and that the framework automatically searches
! the related objects whithin in the destination entity's class hierarchy,
if applicable.
--- 78,82 ----
should be exercised so that it is possible to model relationship to
non-leaf entities/classes, and that the framework automatically searches
! the related objects within in the destination entity's class hierarchy,
if applicable.
***************
*** 93,96 ****
--- 93,100 ----
and some of their code is not very readable ; all this needs to be
refactored.
+
+ - Attribute: accepts both 'string' and 'str' for internalType(). This is
+ because StringType.__name__ is 'string' in py2.1 and 'str' in py2.2
+ However, this should be normalized when loaded by an Attribute.
- ModelValidation is initiated, some checks are probably still missing
|
|
From: <sbi...@us...> - 2003-03-17 11:15:16
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv11735
Modified Files:
Attribute.py CHANGES
Log Message:
Attribute: fixed defaultValueAsPythonStatement() and
convertStringToAttributeType(): they were failing to operate properly
under python2.2 (StringType.__name__ is 'string' for py2.1, 'str' for
py2.2)
Index: Attribute.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Attribute.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Attribute.py 14 Mar 2003 14:27:25 -0000 1.10
--- Attribute.py 17 Mar 2003 11:15:11 -0000 1.11
***************
*** 72,76 ****
KeywordIndex)
def availableTypes():
! #return ('string', 'int', 'float', 'tuple')
return tuple([t.__name__ for t in (types.StringType,
types.IntType,
--- 72,76 ----
KeywordIndex)
def availableTypes():
! #return ('string'(py2.1)/'str'(py2.2), 'int', 'float', 'tuple')
return tuple([t.__name__ for t in (types.StringType,
types.IntType,
***************
*** 179,183 ****
return 'None'
my_type=self.type()
! if my_type=='string':
#if self.defaultValue() is None: return 'None'
import re
--- 179,183 ----
return 'None'
my_type=self.type()
! if my_type in ('string', 'str'):
#if self.defaultValue() is None: return 'None'
import re
***************
*** 330,341 ****
See: setDefaultValue()
"""
if aValue=='None':
! if self.type() in ('int', 'float', 'string', 'DateTime'):
return None
else:
raise ModelError, \
! "Invalid 'None' default value for attribute '%s'"% self._name
if not aValue:
! if self.type()=='string': return ""
if self.type()=='int': return 0
if self.type()=='float': return 0.0
--- 330,342 ----
See: setDefaultValue()
"""
+ # NB: types.StringType.__name__: 'string' in py2.1, 'str' in py2.2
if aValue=='None':
! if self.type() in availableTypes():
return None
else:
raise ModelError, \
! "Invalid 'None' default value for attribute '%s' (type: %s)"%(self._name, self.type())
if not aValue:
! if self.type() in ('string', 'str'): return ""
if self.type()=='int': return 0
if self.type()=='float': return 0.0
***************
*** 343,347 ****
if self.type()=='DateTime': return DateFrom(time.time())
try:
! if self.type()=='string': return str(aValue)
if self.type()=='int': return int(aValue)
if self.type()=='float': return float(aValue)
--- 344,348 ----
if self.type()=='DateTime': return DateFrom(time.time())
try:
! if self.type() in ('string', 'str'): return str(aValue)
if self.type()=='int': return int(aValue)
if self.type()=='float': return float(aValue)
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.84
retrieving revision 1.85
diff -C2 -d -r1.84 -r1.85
*** CHANGES 17 Mar 2003 10:28:19 -0000 1.84
--- CHANGES 17 Mar 2003 11:15:12 -0000 1.85
***************
*** 8,11 ****
--- 8,16 ----
--------------------------------------------------------
+ * Attribute: fixed defaultValueAsPythonStatement() and
+ convertStringToAttributeType(): they were failing to operate properly
+ under python2.2 (StringType.__name__ is 'string' for py2.1, 'str' for
+ py2.2)
+
* Fixed Entity.objectsPathForKeyPath(): under some circumstances it did not
raise ValueError as expected for an invalid keypath
|
|
From: <sbi...@us...> - 2003-03-17 10:28:27
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv27065
Modified Files:
CHANGES
Log Message:
Fixed objectsPathForKeyPath(): under some circumstances it did not raise ValueError, as expected
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -d -r1.83 -r1.84
*** CHANGES 17 Mar 2003 10:25:32 -0000 1.83
--- CHANGES 17 Mar 2003 10:28:19 -0000 1.84
***************
*** 8,11 ****
--- 8,14 ----
--------------------------------------------------------
+ * Fixed Entity.objectsPathForKeyPath(): under some circumstances it did not
+ raise ValueError as expected for an invalid keypath
+
* scripts/mdl_validate_model.py fixed: ValueError could be raised when no
messages were issued at the INFO level
|
|
From: <sbi...@us...> - 2003-03-17 10:27:16
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv26440
Modified Files:
Entity.py
Log Message:
Fixed objectsPathForKeyPath(): under some circumstances it did not raise ValueError, as expected
Index: Entity.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Entity.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Entity.py 10 Feb 2003 10:39:04 -0000 1.9
--- Entity.py 17 Mar 2003 10:27:09 -0000 1.10
***************
*** 404,407 ****
--- 404,409 ----
either an Attribute or an Entity object.
+ Raises ValueError if 'keyPath' is not a valid path.
+
See also: destinationObjectForKeyPath()
"""
***************
*** 419,426 ****
object=object.attributeNamed(key)
objPath.append(object)
if not isinstance(object, Attribute):
objPath.append(rel.destinationEntity())
except AttributeError:
! raise ValueError, "Invalid keypath"
return objPath
--- 421,430 ----
object=object.attributeNamed(key)
objPath.append(object)
+ if not object:
+ raise ValueError, "Invalid keypath '%s'"%keyPath
if not isinstance(object, Attribute):
objPath.append(rel.destinationEntity())
except AttributeError:
! raise ValueError, "Invalid keypath '%s'"%keyPath
return objPath
|
|
From: <sbi...@us...> - 2003-03-17 10:25:37
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv25840
Modified Files:
CHANGES
Log Message:
Updated
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.82
retrieving revision 1.83
diff -C2 -d -r1.82 -r1.83
*** CHANGES 14 Mar 2003 14:35:18 -0000 1.82
--- CHANGES 17 Mar 2003 10:25:32 -0000 1.83
***************
*** 52,55 ****
--- 52,56 ----
* Added Modeling.utilities.EditingContextSessioning
+ (also added ZEditingContextSessioning, see ZModeling)
* Changed _invalidatesObjectsWhenFinalized to
|
|
From: <sbi...@us...> - 2003-03-14 14:35:25
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv27938
Modified Files:
CHANGES
Log Message:
Fixed: ValueError could be raised when no msgs were issued at the INFO level
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** CHANGES 14 Mar 2003 14:33:39 -0000 1.81
--- CHANGES 14 Mar 2003 14:35:18 -0000 1.82
***************
*** 7,10 ****
--- 7,13 ----
* ** Distributed under the GNU General Public License **
--------------------------------------------------------
+
+ * scripts/mdl_validate_model.py fixed: ValueError could be raised when no
+ messages were issued at the INFO level
* Fixed ModelValidation.validateEntity_internals(): now iterates on all
|
|
From: <sbi...@us...> - 2003-03-14 14:35:22
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv27938/scripts
Modified Files:
mdl_validate_model.py
Log Message:
Fixed: ValueError could be raised when no msgs were issued at the INFO level
Index: mdl_validate_model.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/scripts/mdl_validate_model.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mdl_validate_model.py 4 Feb 2003 08:03:50 -0000 1.1
--- mdl_validate_model.py 14 Mar 2003 14:35:17 -0000 1.2
***************
*** 121,125 ****
if not errors.levels_of_errors() or err_levels==[INFO]:
return 0
! err_levels.remove(INFO)
if err_levels==[WARNING]:
if ignore_warnings: return 0
--- 121,126 ----
if not errors.levels_of_errors() or err_levels==[INFO]:
return 0
! try: err_levels.remove(INFO)
! except ValueError: pass
if err_levels==[WARNING]:
if ignore_warnings: return 0
|
|
From: <sbi...@us...> - 2003-03-14 14:33:47
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide
In directory sc8-pr-cvs1:/tmp/cvs-serv26515/doc/UserGuide
Modified Files:
DefiningaModel.tex
Log Message:
Fixed ModelValidation.validateEntity_internals(): now iterates on all
primary keys, and correctly report an error when a PK is set to be a
class property but does not have a default value set to integer zero
(this is now enforced since when the default value is None, we get an
erroneous error message at EC.saveChanges(): the validation mechanism
fails on validating the PK --thanks to Yannick Gingras for reporting
the problem)
Index: DefiningaModel.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/DefiningaModel.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DefiningaModel.tex 4 Mar 2003 23:15:24 -0000 1.6
--- DefiningaModel.tex 14 Mar 2003 14:33:42 -0000 1.7
***************
*** 920,928 ****
compound primary keys), you shouldn't need to expose the PK values as class'
attributes. But, ok, if you really want to do that, that is to say, if you
! declare them as class properties, please keep in mind that they should be
! considered {\underline{\bf \sc read-only}} ; if you modifiy them at run-time,
! the framework will not even notice that--it just does not expect it--and
! things will be out-of-control, for sure. You've been warned!
!
\end{description}
--- 920,933 ----
compound primary keys), you shouldn't need to expose the PK values as class'
attributes. But, ok, if you really want to do that, that is to say, if you
! declare them as class properties:
! \begin{itemize}
! \item{}
! you must also define a default value of \code{0} (integer zero)
! \item{}
! please keep in mind that they should be considered {\underline{\bf \sc
! read-only}} ; if you modify them at run-time, the framework will not even
! notice that--it just does not expect it--and things will be out-of-control,
! for sure. You've been warned!
! \end{itemize}
\end{description}
|
|
From: <sbi...@us...> - 2003-03-14 14:33:46
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv26515
Modified Files:
CHANGES ModelValidation.py
Log Message:
Fixed ModelValidation.validateEntity_internals(): now iterates on all
primary keys, and correctly report an error when a PK is set to be a
class property but does not have a default value set to integer zero
(this is now enforced since when the default value is None, we get an
erroneous error message at EC.saveChanges(): the validation mechanism
fails on validating the PK --thanks to Yannick Gingras for reporting
the problem)
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** CHANGES 14 Mar 2003 14:27:25 -0000 1.80
--- CHANGES 14 Mar 2003 14:33:39 -0000 1.81
***************
*** 8,11 ****
--- 8,18 ----
--------------------------------------------------------
+ * Fixed ModelValidation.validateEntity_internals(): now iterates on all
+ primary keys, and correctly report an error when a PK is set to be a class
+ property but does not have a default value set to integer zero (this is
+ now enforced since when the default value is None, we get an erroneous
+ error message at EC.saveChanges(): the validation mechanism fails on
+ validating the PK --thanks to Yannick Gingras for reporting the problem)
+
* Fixed Attribute.initWithXMLDOMNode(): it was possible that the
defaultValue was set prior to the attribute's type, hence it didn't get
Index: ModelValidation.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/ModelValidation.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ModelValidation.py 2 Mar 2003 12:44:10 -0000 1.5
--- ModelValidation.py 14 Mar 2003 14:33:40 -0000 1.6
***************
*** 257,260 ****
--- 257,264 ----
if not entity.externalName(): msgs.append('externalName is not defined')
if not entity.primaryKeyAttributes(): msgs.append('no primary key defined')
+ else:
+ for pk in entity.primaryKeyAttributes():
+ if pk.isClassProperty() and pk.defaultValue()!=0:
+ msgs.append("PK '%s' is a class property: its default value must be 0 (int zero)"%pk.name())
if msgs:
errors.aggregateError('Entity %s'%entity.name(), ERROR, msgs)
***************
*** 265,276 ****
msgs=[]
if entity.primaryKeyAttributes():
! pk=entity.primaryKeyAttributes()[0]
! if pk.isClassProperty():
! msgs.append("Primary key '%s' is also marked as ``class property'' "\
! "--this is strongly discouraged"\
! %entity.primaryKeyAttributes()[0].name())
! if not pk.isRequired():
! errors.aggregateError('Entity %s'%entity.name(), WARNING,
! "Primary key '%s' should be mandatory"%pk.name())
if msgs:
errors.aggregateError('Entity %s'%entity.name(), WARNING, msgs)
--- 269,280 ----
msgs=[]
if entity.primaryKeyAttributes():
! for pk in entity.primaryKeyAttributes():
! if pk.isClassProperty():
! msgs.append("Primary key '%s' is also marked as ``class property'' "\
! "--this is strongly discouraged"\
! %pk.name())
! if not pk.isRequired():
! errors.aggregateError('Entity %s'%entity.name(), WARNING,
! "Primary key '%s' should be mandatory"%pk.name())
if msgs:
errors.aggregateError('Entity %s'%entity.name(), WARNING, msgs)
|
|
From: <sbi...@us...> - 2003-03-14 14:27:30
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv24049
Modified Files:
CHANGES Attribute.py
Log Message:
Fixed Attribute.initWithXMLDOMNode(): it was possible that the
defaultValue was set prior to the attribute's type, hence it didn't
get the right value (e.g. a default value being string '0' instead of
integer 0 for a type=='int')
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.79
retrieving revision 1.80
diff -C2 -d -r1.79 -r1.80
*** CHANGES 14 Mar 2003 10:01:06 -0000 1.79
--- CHANGES 14 Mar 2003 14:27:25 -0000 1.80
***************
*** 8,11 ****
--- 8,16 ----
--------------------------------------------------------
+ * Fixed Attribute.initWithXMLDOMNode(): it was possible that the
+ defaultValue was set prior to the attribute's type, hence it didn't get
+ the right value (e.g. a default value being string '0' instead of integer
+ 0 for a type=='int')
+
0.9-pre-4 (2002/03/14) Second release candidate for 0.9
---------
Index: Attribute.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Attribute.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Attribute.py 14 Mar 2003 11:40:01 -0000 1.9
--- Attribute.py 14 Mar 2003 14:27:25 -0000 1.10
***************
*** 524,528 ****
_attrDict=self.xmlAttributesDict()
_attrNode=aNode.attributes
! for attributeName in [attr.name for attr in aNode.attributes]:
# Iterate on attributes declared in node
attrType=self.xmlAttributeType(attributeName)
--- 524,539 ----
_attrDict=self.xmlAttributesDict()
_attrNode=aNode.attributes
! attributes=[attr.name for attr in aNode.attributes]
!
! # Now we must make sure that the type is initialized BEFORE the default
! # value is set --> we simply make sure that this will be the first one
! # to be initialized
! try:
! t=[a for a in attributes if a=='type'][0] #IndexError
! attributes.remove(t)
! attributes=[t]+attributes
! except IndexError: pass
!
! for attributeName in attributes:
# Iterate on attributes declared in node
attrType=self.xmlAttributeType(attributeName)
***************
*** 595,598 ****
--- 606,611 ----
self.setIsRequired,
self.isRequired),
+ # defaultValue must be loaded AFTER type is set, or we will get the
+ # wrong value
'defaultValue' : ('string',
self.setDefaultValue,
|
|
From: <sbi...@us...> - 2003-03-14 11:43:00
|
Update of /cvsroot/modeling/ZModeling/ZModelizationTool In directory sc8-pr-cvs1:/tmp/cvs-serv23385/ZModelizationTool Modified Files: ZModelizationTool.py Log Message: Removed __author__ attribute in modules Index: ZModelizationTool.py =================================================================== RCS file: /cvsroot/modeling/ZModeling/ZModelizationTool/ZModelizationTool.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ZModelizationTool.py 10 Jan 2003 10:45:45 -0000 1.10 --- ZModelizationTool.py 14 Mar 2003 11:42:57 -0000 1.11 *************** *** 34,38 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # Modeling --- 34,37 ---- |
|
From: <sbi...@us...> - 2003-03-14 11:43:00
|
Update of /cvsroot/modeling/ZModeling/ZModelManager In directory sc8-pr-cvs1:/tmp/cvs-serv23385/ZModelManager Modified Files: ZModelManager.py Log Message: Removed __author__ attribute in modules Index: ZModelManager.py =================================================================== RCS file: /cvsroot/modeling/ZModeling/ZModelManager/ZModelManager.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ZModelManager.py 10 Jan 2003 10:45:45 -0000 1.3 --- ZModelManager.py 14 Mar 2003 11:42:57 -0000 1.4 *************** *** 32,36 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # Modeling --- 32,35 ---- |
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv21629 Modified Files: Adaptor.py AdaptorChannel.py AdaptorContext.py AdaptorOperation.py Attribute.py CustomObject.py Database.py DatabaseChannel.py DatabaseContext.py DatabaseObject.py DatabaseOperation.py Exceptions.py FaultHandler.py FetchSpecification.py GlobalID.py Join.py ObjectStore.py ObjectStoreCoordinator.py ObserverCenter.py Persistent.py SQLExpression.py SchemaGeneration.py SnapshotsHandling.py XMLutils.py utils.py Log Message: Removed __author__ attribute in modules Index: Adaptor.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Adaptor.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Adaptor.py 10 Feb 2003 10:25:56 -0000 1.5 --- Adaptor.py 14 Mar 2003 11:40:01 -0000 1.6 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from inspect import isclass --- 33,36 ---- Index: AdaptorChannel.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/AdaptorChannel.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AdaptorChannel.py 10 Jan 2003 10:45:44 -0000 1.4 --- AdaptorChannel.py 14 Mar 2003 11:40:01 -0000 1.5 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from logging import warn, debug --- 33,36 ---- Index: AdaptorContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/AdaptorContext.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AdaptorContext.py 20 Feb 2003 11:57:17 -0000 1.3 --- AdaptorContext.py 14 Mar 2003 11:40:01 -0000 1.4 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # Interfaces --- 33,36 ---- Index: AdaptorOperation.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/AdaptorOperation.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AdaptorOperation.py 10 Jan 2003 10:45:44 -0000 1.2 --- AdaptorOperation.py 14 Mar 2003 11:40:01 -0000 1.3 *************** *** 31,35 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' --- 31,34 ---- Index: Attribute.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Attribute.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Attribute.py 10 Jan 2003 10:45:44 -0000 1.8 --- Attribute.py 14 Mar 2003 11:40:01 -0000 1.9 *************** *** 32,36 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # Modeling --- 32,35 ---- Index: CustomObject.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CustomObject.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** CustomObject.py 23 Feb 2003 14:55:36 -0000 1.12 --- CustomObject.py 14 Mar 2003 11:40:01 -0000 1.13 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # framework --- 33,36 ---- Index: Database.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Database.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Database.py 10 Jan 2003 10:45:44 -0000 1.7 --- Database.py 14 Mar 2003 11:40:05 -0000 1.8 *************** *** 46,50 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from time import time --- 46,49 ---- Index: DatabaseChannel.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseChannel.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** DatabaseChannel.py 7 Mar 2003 09:27:18 -0000 1.10 --- DatabaseChannel.py 14 Mar 2003 11:40:06 -0000 1.11 *************** *** 35,39 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from logging import trace --- 35,38 ---- Index: DatabaseContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseContext.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** DatabaseContext.py 23 Feb 2003 17:16:07 -0000 1.13 --- DatabaseContext.py 14 Mar 2003 11:40:07 -0000 1.14 *************** *** 74,78 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from logging import info, error, trace, debug, warn --- 74,77 ---- Index: DatabaseObject.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseObject.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DatabaseObject.py 10 Jan 2003 10:45:44 -0000 1.2 --- DatabaseObject.py 14 Mar 2003 11:40:07 -0000 1.3 *************** *** 38,42 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # python --- 38,41 ---- Index: DatabaseOperation.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/DatabaseOperation.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DatabaseOperation.py 10 Jan 2003 10:45:44 -0000 1.2 --- DatabaseOperation.py 14 Mar 2003 11:40:08 -0000 1.3 *************** *** 79,83 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # Constants --- 79,82 ---- Index: Exceptions.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Exceptions.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Exceptions.py 10 Jan 2003 10:45:44 -0000 1.2 --- Exceptions.py 14 Mar 2003 11:40:08 -0000 1.3 *************** *** 30,34 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' # python --- 30,33 ---- Index: FaultHandler.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/FaultHandler.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** FaultHandler.py 10 Jan 2003 10:45:44 -0000 1.12 --- FaultHandler.py 14 Mar 2003 11:40:08 -0000 1.13 *************** *** 54,58 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import sys, weakref --- 54,57 ---- Index: FetchSpecification.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/FetchSpecification.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FetchSpecification.py 10 Jan 2003 10:45:44 -0000 1.3 --- FetchSpecification.py 14 Mar 2003 11:40:08 -0000 1.4 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from interfaces.FetchSpecification import IFetchSpecification --- 33,36 ---- Index: GlobalID.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/GlobalID.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** GlobalID.py 10 Feb 2003 10:52:03 -0000 1.6 --- GlobalID.py 14 Mar 2003 11:40:08 -0000 1.7 *************** *** 54,58 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from interfaces.GlobalID import IKeyGlobalID, ITemporaryGlobalID --- 54,57 ---- Index: Join.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Join.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Join.py 10 Jan 2003 10:45:44 -0000 1.2 --- Join.py 14 Mar 2003 11:40:09 -0000 1.3 *************** *** 31,35 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from utils import isaValidName --- 31,34 ---- Index: ObjectStore.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/ObjectStore.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ObjectStore.py 23 Feb 2003 16:46:14 -0000 1.5 --- ObjectStore.py 14 Mar 2003 11:40:09 -0000 1.6 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from interfaces.ObjectStoreInterface import ObjectStoreInterface --- 33,36 ---- Index: ObjectStoreCoordinator.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/ObjectStoreCoordinator.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ObjectStoreCoordinator.py 10 Feb 2003 11:47:54 -0000 1.8 --- ObjectStoreCoordinator.py 14 Mar 2003 11:40:09 -0000 1.9 *************** *** 53,57 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from logging import error, warn, debug --- 53,56 ---- Index: ObserverCenter.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/ObserverCenter.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ObserverCenter.py 10 Jan 2003 10:45:44 -0000 1.6 --- ObserverCenter.py 14 Mar 2003 11:40:09 -0000 1.7 *************** *** 34,38 **** __version__='$Revision$'[11:-2] - __author__ ='Sébastien Bigaret' isLogEnabled=0 --- 34,37 ---- Index: Persistent.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Persistent.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Persistent.py 10 Jan 2003 10:45:44 -0000 1.2 --- Persistent.py 14 Mar 2003 11:40:10 -0000 1.3 *************** *** 28,32 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' class Persistent: --- 28,31 ---- Index: SQLExpression.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/SQLExpression.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** SQLExpression.py 7 Mar 2003 16:32:19 -0000 1.15 --- SQLExpression.py 14 Mar 2003 11:40:10 -0000 1.16 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from cStringIO import StringIO --- 33,36 ---- Index: SchemaGeneration.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/SchemaGeneration.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SchemaGeneration.py 1 Feb 2003 16:07:31 -0000 1.7 --- SchemaGeneration.py 14 Mar 2003 11:40:10 -0000 1.8 *************** *** 36,40 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from StringIO import StringIO --- 36,39 ---- Index: SnapshotsHandling.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/SnapshotsHandling.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SnapshotsHandling.py 10 Jan 2003 10:45:44 -0000 1.4 --- SnapshotsHandling.py 14 Mar 2003 11:40:10 -0000 1.5 *************** *** 26,30 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' from time import time --- 26,29 ---- Index: XMLutils.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/XMLutils.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** XMLutils.py 10 Jan 2003 10:45:44 -0000 1.2 --- XMLutils.py 14 Mar 2003 11:40:10 -0000 1.3 *************** *** 45,49 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' class XMLImportError(Exception): --- 45,48 ---- Index: utils.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/utils.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** utils.py 2 Mar 2003 14:00:45 -0000 1.9 --- utils.py 14 Mar 2003 11:40:10 -0000 1.10 *************** *** 30,34 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' --- 30,33 ---- |
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv21629/tests Modified Files: run.py stressTests_EditingContext.py test_Adaptor.py test_CooperatingObjectStoreNeededNotification.py test_DatabaseContext.py test_EditingContext.py test_EditingContext_Global.py test_EditingContext_ParentChild.py test_SQLExpression.py test_SchemaGeneration.py test_Validation.py Log Message: Removed __author__ attribute in modules Index: run.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/run.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** run.py 2 Mar 2003 14:05:51 -0000 1.4 --- run.py 14 Mar 2003 11:40:13 -0000 1.5 *************** *** 27,31 **** """Run all tests.""" __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import os, sys, getopt import utils --- 27,30 ---- Index: stressTests_EditingContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/stressTests_EditingContext.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** stressTests_EditingContext.py 10 Jan 2003 10:45:45 -0000 1.3 --- stressTests_EditingContext.py 14 Mar 2003 11:40:13 -0000 1.4 *************** *** 34,38 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest --- 34,37 ---- Index: test_Adaptor.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_Adaptor.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_Adaptor.py 10 Jan 2003 10:45:45 -0000 1.2 --- test_Adaptor.py 14 Mar 2003 11:40:13 -0000 1.3 *************** *** 31,35 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest --- 31,34 ---- Index: test_CooperatingObjectStoreNeededNotification.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_CooperatingObjectStoreNeededNotification.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_CooperatingObjectStoreNeededNotification.py 10 Jan 2003 10:45:45 -0000 1.2 --- test_CooperatingObjectStoreNeededNotification.py 14 Mar 2003 11:40:13 -0000 1.3 *************** *** 33,37 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest --- 33,36 ---- Index: test_DatabaseContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_DatabaseContext.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_DatabaseContext.py 10 Jan 2003 10:45:45 -0000 1.2 --- test_DatabaseContext.py 14 Mar 2003 11:40:13 -0000 1.3 *************** *** 32,36 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest --- 32,35 ---- Index: test_EditingContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_EditingContext.py 10 Jan 2003 10:45:45 -0000 1.3 --- test_EditingContext.py 14 Mar 2003 11:40:13 -0000 1.4 *************** *** 32,36 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest --- 32,35 ---- Index: test_EditingContext_Global.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** test_EditingContext_Global.py 7 Mar 2003 15:21:19 -0000 1.17 --- test_EditingContext_Global.py 14 Mar 2003 11:40:13 -0000 1.18 *************** *** 34,38 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest, sys --- 34,37 ---- Index: test_EditingContext_ParentChild.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_ParentChild.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test_EditingContext_ParentChild.py 12 Mar 2003 15:45:55 -0000 1.5 --- test_EditingContext_ParentChild.py 14 Mar 2003 11:40:13 -0000 1.6 *************** *** 12,16 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest, sys --- 12,15 ---- Index: test_SQLExpression.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_SQLExpression.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test_SQLExpression.py 7 Mar 2003 10:30:20 -0000 1.5 --- test_SQLExpression.py 14 Mar 2003 11:40:13 -0000 1.6 *************** *** 31,35 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest, string --- 31,34 ---- Index: test_SchemaGeneration.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_SchemaGeneration.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_SchemaGeneration.py 10 Jan 2003 10:45:45 -0000 1.3 --- test_SchemaGeneration.py 14 Mar 2003 11:40:13 -0000 1.4 *************** *** 33,37 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest, string --- 33,36 ---- Index: test_Validation.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_Validation.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** test_Validation.py 10 Jan 2003 10:45:45 -0000 1.2 --- test_Validation.py 14 Mar 2003 11:40:13 -0000 1.3 *************** *** 31,35 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' import unittest --- 31,34 ---- |
Update of /cvsroot/modeling/ProjectModeling/Modeling/interfaces In directory sc8-pr-cvs1:/tmp/cvs-serv21629/interfaces Modified Files: Adaptor.py AdaptorChannel.py AdaptorContext.py AdaptorOperation.py ClassDescription.py ClassDescriptionDelegate.py DatabaseOperation.py EditingContext.py Faulting.py FetchSpecification.py GlobalID.py ObjectStoreInterface.py SchemaGeneration.py Log Message: Removed __author__ attribute in modules Index: Adaptor.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/Adaptor.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Adaptor.py 10 Jan 2003 10:45:45 -0000 1.2 --- Adaptor.py 14 Mar 2003 11:40:11 -0000 1.3 *************** *** 49,53 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 49,52 ---- Index: AdaptorChannel.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/AdaptorChannel.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AdaptorChannel.py 21 Feb 2003 09:15:22 -0000 1.4 --- AdaptorChannel.py 14 Mar 2003 11:40:11 -0000 1.5 *************** *** 37,41 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 37,40 ---- Index: AdaptorContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/AdaptorContext.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AdaptorContext.py 20 Feb 2003 11:55:58 -0000 1.3 --- AdaptorContext.py 14 Mar 2003 11:40:11 -0000 1.4 *************** *** 47,51 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 47,50 ---- Index: AdaptorOperation.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/AdaptorOperation.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AdaptorOperation.py 10 Jan 2003 10:45:45 -0000 1.2 --- AdaptorOperation.py 14 Mar 2003 11:40:11 -0000 1.3 *************** *** 32,36 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 32,35 ---- Index: ClassDescription.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/ClassDescription.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ClassDescription.py 10 Jan 2003 10:45:45 -0000 1.4 --- ClassDescription.py 14 Mar 2003 11:40:11 -0000 1.5 *************** *** 51,55 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 51,54 ---- Index: ClassDescriptionDelegate.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/ClassDescriptionDelegate.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ClassDescriptionDelegate.py 10 Jan 2003 10:45:45 -0000 1.2 --- ClassDescriptionDelegate.py 14 Mar 2003 11:40:11 -0000 1.3 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 33,36 ---- Index: DatabaseOperation.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/DatabaseOperation.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DatabaseOperation.py 10 Jan 2003 10:45:45 -0000 1.2 --- DatabaseOperation.py 14 Mar 2003 11:40:11 -0000 1.3 *************** *** 44,48 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 44,47 ---- Index: EditingContext.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/EditingContext.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EditingContext.py 10 Jan 2003 10:45:45 -0000 1.2 --- EditingContext.py 14 Mar 2003 11:40:12 -0000 1.3 *************** *** 32,36 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 32,35 ---- Index: Faulting.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/Faulting.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Faulting.py 10 Jan 2003 10:45:45 -0000 1.2 --- Faulting.py 14 Mar 2003 11:40:12 -0000 1.3 *************** *** 94,98 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 94,97 ---- Index: FetchSpecification.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/FetchSpecification.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FetchSpecification.py 10 Jan 2003 10:45:45 -0000 1.2 --- FetchSpecification.py 14 Mar 2003 11:40:12 -0000 1.3 *************** *** 33,37 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 33,36 ---- Index: GlobalID.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/GlobalID.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GlobalID.py 10 Jan 2003 10:45:45 -0000 1.2 --- GlobalID.py 14 Mar 2003 11:40:12 -0000 1.3 *************** *** 43,47 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 43,46 ---- Index: ObjectStoreInterface.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/ObjectStoreInterface.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ObjectStoreInterface.py 28 Jan 2003 18:42:48 -0000 1.4 --- ObjectStoreInterface.py 14 Mar 2003 11:40:12 -0000 1.5 *************** *** 72,76 **** __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 72,75 ---- Index: SchemaGeneration.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/interfaces/SchemaGeneration.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SchemaGeneration.py 1 Feb 2003 16:06:03 -0000 1.4 --- SchemaGeneration.py 14 Mar 2003 11:40:12 -0000 1.5 *************** *** 67,71 **** """ __version__='$Revision$'[11:-2] - __author__='Sébastien Bigaret <Seb...@in...>' try: --- 67,70 ---- |
|
From: <sbi...@us...> - 2003-03-14 11:38:21
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv21406a Modified Files: delegation.py Log Message: Removed GPL preamble / see original licence in docstring Index: delegation.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/delegation.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** delegation.py 10 Jan 2003 10:45:44 -0000 1.2 --- delegation.py 14 Mar 2003 11:38:18 -0000 1.3 *************** *** 1,26 **** - #----------------------------------------------------------------------------- - # - # Modeling Framework: an Object-Relational Bridge for python - # (c) 2001, 2002, 2003 Sebastien Bigaret - # - # This file is part of the Modeling Framework. - # - # The Modeling Framework is free software; you can redistribute it and/or - # modify it under the terms of the GNU General Public License as published - # by the Free Software Foundation; either version 2 of the License, or (at - # your option) any later version. - # - # The Modeling Framework is distributed in the hope that it will be - # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - # General Public License for more details. - # - # You should have received a copy of the GNU General Public License along - # with the Modeling Framework; if not, write to the Free Software - # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - # - #----------------------------------------------------------------------------- - - """ delegation module --- 1,2 ---- |
|
From: <sbi...@us...> - 2003-03-14 10:01:09
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv14063/Modeling
Modified Files:
CHANGES
Log Message:
Added documentation
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** CHANGES 14 Mar 2003 09:59:01 -0000 1.78
--- CHANGES 14 Mar 2003 10:01:06 -0000 1.79
***************
*** 11,15 ****
---------
! * The web-site has been reviewed and re-organized, thanks Mario!
* EditingContext
--- 11,19 ----
---------
! * Documentation:
!
! - The web-site has been reviewed and re-organized, thanks Mario!
!
! - Added chapter ''Integration in an application'' to the User's Guide
* EditingContext
|
|
From: <sbi...@us...> - 2003-03-14 09:59:04
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv13039/Modeling
Modified Files:
CHANGES
Log Message:
Updated
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.77
retrieving revision 1.78
diff -C2 -d -r1.77 -r1.78
*** CHANGES 14 Mar 2003 09:42:57 -0000 1.77
--- CHANGES 14 Mar 2003 09:59:01 -0000 1.78
***************
*** 11,14 ****
--- 11,16 ----
---------
+ * The web-site has been reviewed and re-organized, thanks Mario!
+
* EditingContext
|
|
From: <sbi...@us...> - 2003-03-14 09:45:06
|
Update of /cvsroot/modeling/ZModeling
In directory sc8-pr-cvs1:/tmp/cvs-serv7325
Modified Files:
CHANGES
Log Message:
Release 0.9-pre-4
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ZModeling/CHANGES,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CHANGES 9 Mar 2003 20:46:39 -0000 1.14
--- CHANGES 14 Mar 2003 09:45:03 -0000 1.15
***************
*** 1,6 ****
-*- text -*-
! Current release is: 0.9-pre-3
* Added ZEditingContextSessioning: add defaultEditingContext() to SESSION
--- 1,8 ----
-*- text -*-
! Current release is: 0.9-pre-4
+ 0.9-pre-4 Second release candidate for 0.9
+ ---------
* Added ZEditingContextSessioning: add defaultEditingContext() to SESSION
|
|
From: <sbi...@us...> - 2003-03-14 09:43:00
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage
In directory sc8-pr-cvs1:/tmp/cvs-serv6526/Modeling/doc/HomePage
Modified Files:
downloads.tex main.tex
Log Message:
Release 0.9-pre-4
Index: downloads.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage/downloads.tex,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** downloads.tex 2 Mar 2003 18:55:04 -0000 1.6
--- downloads.tex 14 Mar 2003 09:42:57 -0000 1.7
***************
*** 10,14 ****
\begin{enumerate}
! \item[\bf Current version: 0.9-pre-3 (Release candidate for 0.9)]
Download it here:\begin{rawhtml}<a
--- 10,14 ----
\begin{enumerate}
! \item[\bf Current version: 0.9-pre-4 (Second release candidate for 0.9)]
Download it here:\begin{rawhtml}<a
Index: main.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage/main.tex,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** main.tex 4 Mar 2003 23:15:23 -0000 1.11
--- main.tex 14 Mar 2003 09:42:57 -0000 1.12
***************
*** 7,11 ****
% Increment the release number whenever significant changes are made.
% The author and/or editor can define 'significant' however they like.
! %\release{0.9-pre-3}
% At minimum, give your name and an email address. You can include a
--- 7,11 ----
% Increment the release number whenever significant changes are made.
% The author and/or editor can define 'significant' however they like.
! %\release{0.9-pre-4}
% At minimum, give your name and an email address. You can include a
***************
*** 13,17 ****
\author{S\'ebastien Bigaret}
\email{sbi...@us...}
! \date{March 02, 2003}
%\date{\today}
--- 13,17 ----
\author{S\'ebastien Bigaret}
\email{sbi...@us...}
! \date{March 14, 2003}
%\date{\today}
|
|
From: <sbi...@us...> - 2003-03-14 09:43:00
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc
In directory sc8-pr-cvs1:/tmp/cvs-serv6526/Modeling/doc
Modified Files:
UserGuide.tex
Log Message:
Release 0.9-pre-4
Index: UserGuide.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide.tex,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** UserGuide.tex 10 Mar 2003 17:26:49 -0000 1.17
--- UserGuide.tex 14 Mar 2003 09:42:57 -0000 1.18
***************
*** 12,19 ****
% the rest is at your discretion.
\authoraddress{Email: \email{sbi...@us...}}
! \date{March 02, 2003}
%\date{\today}
! \release{0.9-pre-3}
! %\setreleaseinfo{pre-3}
\setshortversion{0.9}
--- 12,19 ----
% the rest is at your discretion.
\authoraddress{Email: \email{sbi...@us...}}
! \date{March 14, 2003}
%\date{\today}
! \release{0.9-pre-4}
! %\setreleaseinfo{pre-4}
\setshortversion{0.9}
|
|
From: <sbi...@us...> - 2003-03-14 09:43:00
|
Update of /cvsroot/modeling/ProjectModeling/Modeling
In directory sc8-pr-cvs1:/tmp/cvs-serv6526/Modeling
Modified Files:
CHANGES
Log Message:
Release 0.9-pre-4
Index: CHANGES
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/CHANGES,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** CHANGES 12 Mar 2003 15:45:55 -0000 1.76
--- CHANGES 14 Mar 2003 09:42:57 -0000 1.77
***************
*** 3,11 ****
Module Modeling
---------------
! Current release is: 0.9-pre-3 / See also: TODO, INSTALL and doc/
* ** Distributed under the GNU General Public License **
--------------------------------------------------------
* EditingContext
--- 3,14 ----
Module Modeling
---------------
! Current release is: 0.9-pre-4 / See also: TODO, INSTALL and doc/
* ** Distributed under the GNU General Public License **
--------------------------------------------------------
+ 0.9-pre-4 (2002/03/14) Second release candidate for 0.9
+ ---------
+
* EditingContext
***************
*** 53,56 ****
--- 56,60 ----
message is now much more informative than it used to be (i.e. it now
indicates clearly where the error comes from)
+ cf. SQLExpression v1.14
* Bug #699272: Fixed DBChannel.selectCountObjectsWithFetchSpecification:
***************
*** 64,67 ****
--- 68,72 ----
See discussion at
http://lists.initd.org/pipermail/psycopg/2003-March/001885.html
+
0.9-pre-3 (2002/03/02) Release candidate for 0.9
|
|
From: <sbi...@us...> - 2003-03-14 09:42:59
|
Update of /cvsroot/modeling/ProjectModeling
In directory sc8-pr-cvs1:/tmp/cvs-serv6526
Modified Files:
setup.py
Log Message:
Release 0.9-pre-4
Index: setup.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/setup.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** setup.py 9 Mar 2003 21:20:28 -0000 1.19
--- setup.py 14 Mar 2003 09:42:56 -0000 1.20
***************
*** 46,50 ****
setup(name="ModelingCore",
! version="0.9-pre-3",
licence ="GNU General Public License",
description=short_description,
--- 46,50 ----
setup(name="ModelingCore",
! version="0.9-pre-4",
licence ="GNU General Public License",
description=short_description,
|
|
From: <sbi...@us...> - 2003-03-13 18:01:38
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide
In directory sc8-pr-cvs1:/tmp/cvs-serv7546
Modified Files:
FrameworkTypicalUsage.tex
Log Message:
Wrote: details of the integration within zope and sessioning machineries in general.
Note for Mario: this is the first finalized draft of this chapter :)
Index: FrameworkTypicalUsage.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/FrameworkTypicalUsage.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FrameworkTypicalUsage.tex 10 Mar 2003 21:42:04 -0000 1.3
--- FrameworkTypicalUsage.tex 13 Mar 2003 18:01:30 -0000 1.4
***************
*** 75,79 ****
%%
! \section{Application servers, Zope\label{framework-integration-applications-servers}}
For an application run by an application server, different approaches are
--- 75,79 ----
%%
! \section{Integration within application servers: using the sessioning mechanism\label{framework-integration-application-servers}}
For an application run by an application server, different approaches are
***************
*** 190,200 ****
\section{Zope\label{framework-integration-zope}}
! \module{ZEditingContextSessioning}
\section{Others\label{framework-integration-others}}
! - sessioning
! - cgi? --> do not think so (initialization process is probably too heavy)
--- 190,234 ----
+ %%
\section{Zope\label{framework-integration-zope}}
! The framework is shipped with a particular component,
! \module{ZEditingContextSessioning}, that makes it possible to have an
! \class{EditingContext} lazily created on a per-session basis.
!
! When installed in the \code{Products/} folder of a Zope instance, it
! automatically modifies the class \class{TransientObject}\footnote{The
! \code{SESSION} object is an instance of \class{TransientObject}} and adds a
! new method to it: \method{defaultEditingContext}. It also binds itself to the
! sessioning machinery so that the \class{EditingContext} attached to a session
! is automatically finalized when the session is expired.
!
!
! Accessing the \class{EditingContext} bound to a particular session is as
! simple as calling \method{defaultEditingContext()} on the \code{SESSION}
! object.
!
!
! \begin{notice}
! Zope does not immediately destroy expired sessions ; they are marked as
! expired and are only destroyed when a given thread is elected for doing the
! ''housekeeping'' (see \file{lib/python/Products/Transience/Transience.py},
! method{_getCurrentBucket()}). This means that the
! \method{defaultEditingContext} assigned to a session will not be finalized
! when the session expires, but a certain amount of time afterwards.
! \end{notice}
!
!
!
+ %%
\section{Others\label{framework-integration-others}}
! As far as I know the framework has not been integrated in other
! frameworks. However it is shipped with a component,
! \class{utilities.EditingContextSessioning}, which should make it easy to bind
! it to any existing sessioning machinery. The documentation in this module
! gives all necessary details and instructions of use.
! We will be happy to hear from you if you integrate it to other development
! platforms!
|
|
From: <sbi...@us...> - 2003-03-12 15:45:59
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv24823/tests
Modified Files:
test_EditingContext_ParentChild.py
Log Message:
Fixed EditingContext.objectsWithFetchSpecification(): when a nested EC
asks for objects, the result set now correctly includes objects that
are inserted in its parent (or grand-parent, etc.) and objects that
are marked as deleted in the parent are excluded.
See also: tests.test_EditingContext_ParentChild,
test_10_child_gets_newly_inserted_objects() and
test_11_child_doesnt_get_deleted_objects()
Index: test_EditingContext_ParentChild.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_ParentChild.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_EditingContext_ParentChild.py 7 Mar 2003 16:34:44 -0000 1.4
--- test_EditingContext_ParentChild.py 12 Mar 2003 15:45:55 -0000 1.5
***************
*** 68,72 ****
def test_02_objectsWithFetchSpecification(self):
! "[EC:parent/child] objectsWithFetchSpecification"
parent_ec=EditingContext()
ec=EditingContext(parent_ec)
--- 68,76 ----
def test_02_objectsWithFetchSpecification(self):
! "[EC:parent/child] objectsWithFetchSpecification simple verifications"
! ## We check here that the basic functionality of fetching objects
! ## from a nested EC does behave as expected. Further testing is done
! ## in tests 10 and 11.
!
parent_ec=EditingContext()
ec=EditingContext(parent_ec)
***************
*** 402,406 ****
--- 406,475 ----
self.failUnless(mark.getExecutive()==cleese)
+ def test_10_child_gets_newly_inserted_objects(self):
+ "[EC:parent/child] Child-ec fetches newly inserted objects in parent"
+ # This starts like test_03_fetchedAndModifiedObjectsInParent
+ # We here want to check that when fetching objects in a child EC
+ # we get insertedObjects in the parent EC, as expected
+ parent_ec=EditingContext()
+ parent_ec.setPropagatesInsertionForRelatedObjects(1)
+ child_ec=EditingContext(parent_ec)
+
+ qualifier=qualifierWithQualifierFormat('lastName=="Cleese"')
+ fetchSpec=FetchSpecification(entityName='Writer', qualifier=qualifier)
+ objects=parent_ec.objectsWithFetchSpecification(fetchSpec)
+ self.failUnless(len(objects)==1, 'Could not get Writer "Cleese"')
+ parent_cleese=objects[0]
+
+ # Add a new Book
+ parent_test_book=Book() ; parent_test_book.setTitle('test')
+ parent_ec.insertObject(parent_test_book)
+ #parent_cleese.addToBooks(parent_test_book)
+ #parent_test_book.setAuthor(parent_cleese)
+
+ # Now, ask the child for books: the new one, 'test', should be included
+ fetchSpec=FetchSpecification(entityName='Book')
+ objects=child_ec.objectsWithFetchSpecification(fetchSpec)
+
+ #print len(objects), [o.getTitle() for o in objects]
+ self.failUnless(len(objects)==5,
+ 'Failed to get the object inserted in the parent_ec()')
+ child_test_book=[b for b in objects if b.getTitle()=='test'][0]
+
+
+ # Check that the object was correctly registered within the child ec
+ self.failUnless(child_ec.globalIDForObject(child_test_book),
+ "child_test_book is not known to the child ec")
+
+ # Check that the objects are different but have the same GlobalID
+ self.assertNotEqual(child_test_book, parent_test_book)
+ self.assertEqual(child_ec.globalIDForObject(child_test_book),
+ parent_ec.globalIDForObject(parent_test_book))
+ def test_11_child_doesnt_get_deleted_objects(self):
+ "[EC:parent/child] Child-ec does not fetch objects deleted in parent"
+ # We want to check that when fetching objects in a child EC
+ # we do not get objects marked as deleted in the parent EC, as expected
+ parent_ec=EditingContext()
+ parent_ec.setPropagatesInsertionForRelatedObjects(1)
+ child_ec=EditingContext(parent_ec)
+
+ qualifier=qualifierWithQualifierFormat('lastName=="Cleese"')
+ fetchSpec=FetchSpecification(entityName='Writer', qualifier=qualifier)
+ objects=parent_ec.objectsWithFetchSpecification(fetchSpec)
+ self.failUnless(len(objects)==1, 'Could not get Writer "Cleese"')
+ parent_cleese=objects[0]
+
+ parent_ec.deleteObject(parent_cleese)
+
+ # Now, ask the child for writers: we shouldn't get John Cleese
+ fetchSpec=FetchSpecification(entityName='Writer')
+ objects=child_ec.objectsWithFetchSpecification(fetchSpec)
+
+ self.failUnless(len(objects)==2,
+ 'Got %s writers, expected: 2'%len(objects))
+ verif=[w for w in objects if w.getLastName()=='Cleese']
+ self.failIf(verif,
+ 'obj.W/FetchSpec() should not have returned John Cleese')
+
def tearDown(self):
"""
|