modeling-cvs Mailing List for Object-Relational Bridge for python (Page 11)
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-11-10 13:40:19
|
Update of /cvsroot/modeling/ZModeling In directory sc8-pr-cvs1:/tmp/cvs-serv15639 Modified Files: CHANGES Log Message: Updated --restructuredtext formatted Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ZModeling/CHANGES,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** CHANGES 13 Sep 2003 14:59:57 -0000 1.25 --- CHANGES 10 Nov 2003 13:40:14 -0000 1.26 *************** *** 1,3 **** ! -*- text -*- Current release is: 0.9-pre-15 --- 1,4 ---- ! CHANGES for ZModeling ! ===================== Current release is: 0.9-pre-15 *************** *** 36,40 **** 0.9-pre-8 (2003/05/27) ! --------- * Updated the ZModeler: now includes the "base" mode for python code. Plus --- 37,41 ---- 0.9-pre-8 (2003/05/27) ! ---------------------- * Updated the ZModeler: now includes the "base" mode for python code. Plus *************** *** 43,47 **** 0.9-pre-7 (2003/05/06) ! --------- * mdl_validate_model.py: added '-Q' + slightly change the usage (see --help) --- 44,48 ---- 0.9-pre-7 (2003/05/06) ! ---------------------- * mdl_validate_model.py: added '-Q' + slightly change the usage (see --help) *************** *** 51,55 **** 0.9-pre-4 Second release candidate for 0.9 ! --------- * Added ZEditingContextSessioning: add defaultEditingContext() to SESSION --- 52,56 ---- 0.9-pre-4 Second release candidate for 0.9 ! ------------------------------------------ * Added ZEditingContextSessioning: add defaultEditingContext() to SESSION *************** *** 57,61 **** 0.8.6 (2002/02/21) ! ----- * Added informational message for model's supported adaptors and --- 58,62 ---- 0.8.6 (2002/02/21) ! ------------------ * Added informational message for model's supported adaptors and *************** *** 64,69 **** 0.8 --- ! * ** Now distributed under the GNU General Public License ** ! ---------------------------------------------------------- * ZModelizationTool: --- 65,70 ---- 0.8 --- ! * **Now distributed under the GNU General Public License** ! * ZModelizationTool: *************** *** 101,105 **** * added GUI support for inheritance: creation of a sub-entity, graphical ! representation of inherited properties * changed the version numbering scheme :) to keep it in sync w/ the core --- 102,106 ---- * added GUI support for inheritance: creation of a sub-entity, graphical ! representation of inherited properties * changed the version numbering scheme :) to keep it in sync w/ the core |
From: <sbi...@us...> - 2003-11-10 13:34:12
|
Update of /cvsroot/modeling/ZModeling In directory sc8-pr-cvs1:/tmp/cvs-serv14583 Modified Files: README Log Message: Updated --restructuredtext formatted Index: README =================================================================== RCS file: /cvsroot/modeling/ZModeling/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README 6 May 2003 16:29:48 -0000 1.2 --- README 10 Nov 2003 13:34:09 -0000 1.3 *************** *** 1,7 **** ! This directory contains Zope products based on the Modeling framework: ! ZModelizationTool: ! ------------------ ! The ZModelization is a tool to help you design a model. It lets you create and edit the model through a web interface, that is --- 1,22 ---- ! ========= ! ZModeling ! ========= ! :Authors: ! Sébastien Bigaret <sbi...@us...> ! ! :Version: ! $Revision$ ! ! ! This directory contains Zope products based on the Modeling framework. ! ! ZModelizationTool ! ----------------- ! ! Overview ! ~~~~~~~~ ! ! The ZModelization Tool is a tool to help you design a model. It lets you create and edit the model through a web interface, that is *************** *** 16,30 **** the python code for your model, just by a few mouse clicks. ! ZEditingContextSessioning: ! -------------------------- - Adds a new method to Zope session objects: defaultEditingContext(), which - delivers a specific EditingContext in each session. ! The two other products, ZModelManager and ZClassDescriptionManager are for ! debugging purposes only and should probably not be used unless you're ! debugging the framework itself. Note that it is possible that they are ! out-of-sync with the current version of the framework. For dependencies and general informations, see the Modeling framework. --- 31,65 ---- the python code for your model, just by a few mouse clicks. ! Installation ! ~~~~~~~~~~~~ ! Copy the directory into the Zope's ``Products/`` directory, then create an ! instance of the ``Modelization Tool`` in the Zope Management Interface (ZMI). + ZEditingContextSessioning + ------------------------- ! Overview ! ~~~~~~~~ ! ! Adds a new method to Zope session objects: ``defaultEditingContext()``, ! which delivers a specific EditingContext in each session. ! ! Further documentatin can be found at: ! http://modeling.sf.net/UserGuide/framework-integration-zope.html ! ! Installation ! ~~~~~~~~~~~~ ! Installation: copy the directory into the Zope's ``Products/`` directory. ! ! ! Misc. notes ! ----------- ! ! The two other products (not shipped with the tarball, only in CVS), ! ``ZModelManager`` and ``ZClassDescriptionManager`` are for debugging purposes ! only and should probably not be used unless you're debugging the framework ! itself. Note that it is possible that they are out-of-sync with the current ! version of the framework. For dependencies and general informations, see the Modeling framework. |
From: <sbi...@us...> - 2003-10-06 22:28:56
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv3185 Modified Files: setup.py Log Message: Updated for PyPi Index: setup.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/setup.py,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** setup.py 13 Sep 2003 14:54:02 -0000 1.34 --- setup.py 6 Oct 2003 22:28:52 -0000 1.35 *************** *** 22,35 **** # #----------------------------------------------------------------------------- from distutils.core import setup import glob, os, sys - short_description="Modeling Framework" - long_description="Modeling: Object-Relational Bridge for python" - CHEETAH_COMPILE="cheetah-compile" templates='Modeling/ModelMasons/Python_bricks/*.tmpl' cheetah_compile_cmd='%s %s'%(CHEETAH_COMPILE, templates) # taken from python documentation-SIG's mkhowto.run() def compile_cheetah_template(command): --- 22,70 ---- # #----------------------------------------------------------------------------- + """The Modeling Framework is an Object-Relational Bridge for python + + The Modeling Framework fills the gap between the Python object world and + relational databases in that it allows users to transparently create, + retrieve, update, or delete Python objects from a database without having to + write a single line of SQL. Its main features include generation of database + schema, generation of Python code templates ready to be used, support for + transparent mapping of (class) inheritance in relational databases, + object-oriented query language, use of standard Python getters to traverse + relationships (the related objects are automatically fetched when needed and + when appropriate), and automatic checking for referential-integrity + constraints, etc. Supported databases are MySQL, Oracle, PostgreSQL, and + SQLite. + """ from distutils.core import setup import glob, os, sys CHEETAH_COMPILE="cheetah-compile" templates='Modeling/ModelMasons/Python_bricks/*.tmpl' cheetah_compile_cmd='%s %s'%(CHEETAH_COMPILE, templates) + # Instruction for PyPi found at: + # http://www.python.org/~jeremy/weblog/030924.html + classifiers = """\ + Development Status :: 4 - Beta + Intended Audience :: Developers + License :: OSI Approved :: GNU General Public License (GPL) + Operating System :: OS Independent + Programming Language :: Python + Topic :: Database :: Front-Ends + Topic :: Software Development :: Code Generators + Topic :: Software Development :: Libraries :: Application Frameworks + Topic :: Software Development :: Libraries :: Python Modules + """ + if sys.version_info < (2, 3): + _setup = setup + def setup(**kwargs): + if kwargs.has_key("classifiers"): + del kwargs["classifiers"] + _setup(**kwargs) + + doclines = __doc__.split("\n") + short_description = doclines[0] + long_description = "\n".join(doclines[2:]) + # taken from python documentation-SIG's mkhowto.run() def compile_cheetah_template(command): *************** *** 47,57 **** setup(name="ModelingCore", version="0.9-pre-15", ! licence ="GNU General Public License", description=short_description, author="Sébastien Bigaret", ! author_email="sbi...@us...", maintainer="Sebastien Bigaret", ! maintainer_email="sbi...@us...", url="http://modeling.sourceforge.net/", package_dir={'Modeling':'Modeling'}, packages=['Modeling', 'Modeling.interfaces', 'Modeling.utilities', --- 82,93 ---- setup(name="ModelingCore", version="0.9-pre-15", ! license ="GNU General Public License", description=short_description, author="Sébastien Bigaret", ! author_email="sbi...@us...", maintainer="Sebastien Bigaret", ! maintainer_email="sbi...@us...", url="http://modeling.sourceforge.net/", + classifiers = filter(None, classifiers.split("\n")), package_dir={'Modeling':'Modeling'}, packages=['Modeling', 'Modeling.interfaces', 'Modeling.utilities', *************** *** 70,71 **** --- 106,108 ---- 'Modeling/scripts/mdl_compile_model.py', ] ) + |
From: <sbi...@us...> - 2003-10-04 13:08:39
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv5698 Modified Files: INSTALL Log Message: Updated (NFv0.6 needed) Index: INSTALL =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/INSTALL,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** INSTALL 1 Sep 2003 21:13:42 -0000 1.10 --- INSTALL 4 Oct 2003 13:08:32 -0000 1.11 *************** *** 57,64 **** Ignore the warning and press ENTER, installation will continue. ! NotificationFramework v0.5 -------------------------- The NotificationFramework can be downloaded from ! https://sourceforge.net/project/showfiles.php?group_id=58935&release_id=161547 Installation: standard distutils. --- 57,64 ---- Ignore the warning and press ENTER, installation will continue. ! NotificationFramework v0.6 -------------------------- The NotificationFramework can be downloaded from ! https://sourceforge.net/projects/modeling/ Installation: standard distutils. |
From: <sbi...@us...> - 2003-10-04 12:53:47
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv1395 Modified Files: CHANGES MIGRATION Log Message: RFE #812708: mdl_generate_db_schema.py now automatically adds a semi-colon (';') when option '-c' is enabled. See CHANGES & MIGRATION for details. Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/CHANGES,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** CHANGES 4 Oct 2003 12:29:43 -0000 1.20 --- CHANGES 4 Oct 2003 12:53:43 -0000 1.21 *************** *** 8,11 **** --- 8,17 ---- -------------------------------------------------------- + * RFE #812708: mdl_generate_db_schema.py now automatically adds a semi-colon + (';') when option '-c' is enabled. A new option (-e/--end-with) is added + to control this behaviour. In particular, the old behaviour (no semi-colon + at end of statements) can be still obtained by supplying an empty string + to option -e/--end-with (-e "" or --end-with ""). + * Fixed bug #812671: utils.finalize_docstrings() disabled Index: MIGRATION =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/MIGRATION,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MIGRATION 3 Aug 2003 14:05:25 -0000 1.1 --- MIGRATION 4 Oct 2003 12:53:43 -0000 1.2 *************** *** 4,10 **** newer version. Upgrading to 0.9pre12 ! ----------------------- * CustomObject.snapshot() changed: the returned value for to-many relationship --- 4,18 ---- newer version. + Upgrading to 0.9pre16 + --------------------- + + * mdl_generate_db_schema.py now automatically adds a semi-colon (';') when + option '-c' is enabled. This makes it possible to directly send the result + to the database server (RFE #812708). The old behaviour (no semi-colon at + end of statements) can be still obtained by supplying an empty string to + option -e/--end-with (-e "" or --end-with ""). Upgrading to 0.9pre12 ! --------------------- * CustomObject.snapshot() changed: the returned value for to-many relationship |
From: <sbi...@us...> - 2003-10-04 12:53:47
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv1395/Modeling/scripts Modified Files: mdl_generate_DB_schema.py Log Message: RFE #812708: mdl_generate_db_schema.py now automatically adds a semi-colon (';') when option '-c' is enabled. See CHANGES & MIGRATION for details. Index: mdl_generate_DB_schema.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/scripts/mdl_generate_DB_schema.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** mdl_generate_DB_schema.py 27 Sep 2003 11:37:47 -0000 1.7 --- mdl_generate_DB_schema.py 4 Oct 2003 12:53:43 -0000 1.8 *************** *** 60,63 **** --- 60,64 ---- administrativeConnectionDictionary={}, onlyStatements=0, continue_on_errors=0, + endStatementWith=';', createUser=0, dropUser=0): from traceback import format_list *************** *** 94,98 **** if onlyStatements: for sqlExpr in sqlExprs: ! str+='%s\n'%sqlExpr.statement() else: context=adaptor.createAdaptorContext() --- 95,99 ---- if onlyStatements: for sqlExpr in sqlExprs: ! str+='%s%s\n'%(sqlExpr.statement(),endStatementWith) else: context=adaptor.createAdaptorContext() *************** *** 123,130 **** --------------- -c --stdout write the SQL statements on stdout, do not execute them -v --verbose verbose mode -h --help gives this help -i --ignore-errors ignore errors (default is halt on error) ! DB-schema generation -------------------- --- 124,133 ---- --------------- -c --stdout write the SQL statements on stdout, do not execute them + -e --end-with <str> appends <str> to each statement when option -c is + enabled (it has no effect otherwise). Default is ';' -v --verbose verbose mode -h --help gives this help -i --ignore-errors ignore errors (default is halt on error) ! DB-schema generation -------------------- *************** *** 233,238 **** generation_options=_defaultOptions try: options, args = getopt.getopt(sys.argv[1:], ! 'chivACRDdTtPpSsFf', ! ["stdout", "help", "verbose", "ignore-errors", "all-but-database", "create-database", --- 236,241 ---- generation_options=_defaultOptions try: options, args = getopt.getopt(sys.argv[1:], ! 'ce:hivACRDdTtPpSsFf', ! ["stdout", "end-with=", "help", "verbose", "ignore-errors", "all-but-database", "create-database", *************** *** 244,247 **** --- 247,251 ---- user_connection_dict={} should_have_admin_dict=0 # set for options: -A, -C, -R, -D and -d + end_with_str=';' for k, v in options: if k in ('-h', '--help'): usage(me); return 0 *************** *** 249,252 **** --- 253,257 ---- if k in ('-c', '--stdout'): to_stdout=1; continue if k in ('-i', '--ignore-errors'): continue_on_errors=1; continue + if k in ('-e', '--end-with'): end_with_str=v; continue if k in ('-A', '--all-but-database'): *************** *** 345,349 **** administrativeConnectionDictionary=admin_connection_dict, continue_on_errors=continue_on_errors, ! onlyStatements=to_stdout) if to_stdout: print result --- 350,355 ---- administrativeConnectionDictionary=admin_connection_dict, continue_on_errors=continue_on_errors, ! onlyStatements=to_stdout, ! endStatementWith=end_with_str) if to_stdout: print result |
From: <sbi...@us...> - 2003-10-04 12:29:48
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv30865/Modeling Modified Files: TODO Entity.py utils.py Log Message: Fixed bug #812671: utils.finalize_docstrings() disabled Index: TODO =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/TODO,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** TODO 24 Jul 2003 12:12:33 -0000 1.15 --- TODO 4 Oct 2003 12:29:43 -0000 1.16 *************** *** 320,322 **** - voir aussi autre chose (??) entre KVC et (Entity)ClassDescription ! \ No newline at end of file --- 320,328 ---- - voir aussi autre chose (??) entre KVC et (Entity)ClassDescription ! ! * Entity.py: finalize_docstrings(), that was used to update docstrings for ! methods involved in inheritance, has been disabled since it causes problems ! when ZODB.Persistent is in the PYTHONPATH. This was a temporary solution, ! however, that should not have been committed on the main branch. An other ! solution, esp. w/ epydoc, should be found --this is still to be ! investigated. Index: Entity.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/Entity.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** Entity.py 27 Jul 2003 17:00:34 -0000 1.17 --- Entity.py 4 Oct 2003 12:29:43 -0000 1.18 *************** *** 1440,1444 **** ## ! finalize_docstrings(Entity, ENTITY_DOC) --- 1440,1444 ---- ## ! #finalize_docstrings(Entity, ENTITY_DOC) Index: utils.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/utils.py,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** utils.py 24 Jul 2003 11:09:08 -0000 1.15 --- utils.py 4 Oct 2003 12:29:43 -0000 1.16 *************** *** 158,172 **** """ ! try: ! klass.__doc__=klass.__doc__%aDict ! except TypeError: ! pass ! import inspect ! if inspect.isclass(klass): ! for n,m in inspect.getmembers(klass, inspect.ismethod): ! try: ! m.im_func.__doc__=m.__doc__%aDict ! except AttributeError: pass ! except TypeError: pass def deprecated(methodName, replacement=None,removed_in_version=None): --- 158,173 ---- """ ! return ! #try: ! # klass.__doc__=klass.__doc__%aDict ! #except TypeError: ! # pass ! #import inspect ! #if inspect.isclass(klass): ! # for n,m in inspect.getmembers(klass, inspect.ismethod): ! # try: ! # m.im_func.__doc__=m.__doc__%aDict ! # except AttributeError: pass ! # except TypeError: pass def deprecated(methodName, replacement=None,removed_in_version=None): |
From: <sbi...@us...> - 2003-10-04 12:29:48
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv30865 Modified Files: CHANGES Log Message: Fixed bug #812671: utils.finalize_docstrings() disabled Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/CHANGES,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** CHANGES 28 Sep 2003 14:52:05 -0000 1.19 --- CHANGES 4 Oct 2003 12:29:43 -0000 1.20 *************** *** 8,11 **** --- 8,13 ---- -------------------------------------------------------- + * Fixed bug #812671: utils.finalize_docstrings() disabled + * Fixed bug #814007: KeyValueCoding.storedValueForKey() unexpectedly returned obj.key instead of obj._key when both exist. |
From: <sbi...@us...> - 2003-09-28 14:52:21
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv23629/Modeling/tests Modified Files: test_KeyValueCoding.py Log Message: Fixed bug #814007: KeyValueCoding.storedValueForKey() unexpectedly returned obj.key instead of obj._key when both exist. Index: test_KeyValueCoding.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_KeyValueCoding.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_KeyValueCoding.py 3 Jul 2003 23:03:38 -0000 1.3 --- test_KeyValueCoding.py 28 Sep 2003 14:52:06 -0000 1.4 *************** *** 41,44 **** --- 41,46 ---- self.attr4=4 # w/ attr4() self.attr5=5 # w/ _attr5() + self.attr123=123 # bug #814007 + self._attr123=321 # Getters def getAttr2(self): *************** *** 98,101 **** --- 100,104 ---- self.assertEqual(t.valueForKey('attr4'), 4) self.assertEqual(t.valueForKey('attr5'), 5) + self.assertEqual(t.valueForKey('attr123'), 123) # bug #814007 def test_02_public_setters(self): *************** *** 126,129 **** --- 129,133 ---- self.assertEqual(t.storedValueForKey('attr4'), 4) self.assertEqual(t.storedValueForKey('attr5'), 5) + self.assertEqual(t.storedValueForKey('attr123'), 321) # bug #814007 def test_04_private_getters(self): |
From: <sbi...@us...> - 2003-09-28 14:52:20
|
Update of /cvsroot/modeling/ProjectModeling/Modeling In directory sc8-pr-cvs1:/tmp/cvs-serv23629/Modeling Modified Files: KeyValueCoding.py Log Message: Fixed bug #814007: KeyValueCoding.storedValueForKey() unexpectedly returned obj.key instead of obj._key when both exist. Index: KeyValueCoding.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/KeyValueCoding.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** KeyValueCoding.py 3 Jul 2003 23:03:38 -0000 1.6 --- KeyValueCoding.py 28 Sep 2003 14:52:06 -0000 1.7 *************** *** 136,143 **** if callable(getter): return getter() self_attributes=self.__dict__.keys() - if key in self_attributes: # key property - return getattr(self, key) if '_'+key in self_attributes: # _key property return getattr(self, '_'+key) getter=getattr(self, 'get'+Key, None) # getKey() if callable(getter): return getter() --- 136,143 ---- if callable(getter): return getter() self_attributes=self.__dict__.keys() if '_'+key in self_attributes: # _key property return getattr(self, '_'+key) + if key in self_attributes: # key property + return getattr(self, key) getter=getattr(self, 'get'+Key, None) # getKey() if callable(getter): return getter() |
From: <sbi...@us...> - 2003-09-28 14:52:19
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv23629 Modified Files: CHANGES Log Message: Fixed bug #814007: KeyValueCoding.storedValueForKey() unexpectedly returned obj.key instead of obj._key when both exist. Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/CHANGES,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** CHANGES 27 Sep 2003 11:37:47 -0000 1.18 --- CHANGES 28 Sep 2003 14:52:05 -0000 1.19 *************** *** 8,11 **** --- 8,14 ---- -------------------------------------------------------- + * Fixed bug #814007: KeyValueCoding.storedValueForKey() unexpectedly + returned obj.key instead of obj._key when both exist. + * Fixed bug #785434: When mdl_generate_db_schema is run with an option which doesn't require the admin-dsn to be set, the script fails with a KeyError. |
From: <sbi...@us...> - 2003-09-28 00:12:22
|
Update of /cvsroot/modeling/NotificationFramework In directory sc8-pr-cvs1:/tmp/cvs-serv23372 Modified Files: setup.py Log Message: Conformance to PEP 0263 ; py2.3 distutils suggests s/licence/license Index: setup.py =================================================================== RCS file: /cvsroot/modeling/NotificationFramework/setup.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** setup.py 28 Sep 2003 00:01:14 -0000 1.9 --- setup.py 28 Sep 2003 00:12:09 -0000 1.10 *************** *** 1,3 **** --- 1,4 ---- #!/usr/bin/env python + # -*- coding: latin-1 -*- #----------------------------------------------------------------------------- # *************** *** 32,36 **** setup(name="NotificationFramework", version="0.6", ! licence ="GNU General Public License", description=short_description, author="Sébastien Bigaret", --- 33,37 ---- setup(name="NotificationFramework", version="0.6", ! license ="GNU General Public License", description=short_description, author="Sébastien Bigaret", |
From: <sbi...@us...> - 2003-09-28 00:01:29
|
Update of /cvsroot/modeling/NotificationFramework In directory sc8-pr-cvs1:/tmp/cvs-serv21858 Modified Files: vertoo.data setup.py Log Message: release 0.6 Index: vertoo.data =================================================================== RCS file: /cvsroot/modeling/NotificationFramework/vertoo.data,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** vertoo.data 27 Sep 2003 23:37:22 -0000 1.1 --- vertoo.data 28 Sep 2003 00:01:14 -0000 1.2 *************** *** 1 **** ! notification-framework = major:0; minor:5; --- 1 ---- ! notification-framework = major:0; minor:6; \ No newline at end of file Index: setup.py =================================================================== RCS file: /cvsroot/modeling/NotificationFramework/setup.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** setup.py 26 May 2003 12:24:52 -0000 1.8 --- setup.py 28 Sep 2003 00:01:14 -0000 1.9 *************** *** 31,35 **** setup(name="NotificationFramework", ! version="0.5", licence ="GNU General Public License", description=short_description, --- 31,35 ---- setup(name="NotificationFramework", ! version="0.6", licence ="GNU General Public License", description=short_description, |
From: <sbi...@us...> - 2003-09-27 23:58:53
|
Update of /cvsroot/modeling/NotificationFramework/tests In directory sc8-pr-cvs1:/tmp/cvs-serv21187/tests Modified Files: test_NotificationCenter.py Log Message: Added support for new-style classes observers Index: test_NotificationCenter.py =================================================================== RCS file: /cvsroot/modeling/NotificationFramework/tests/test_NotificationCenter.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** test_NotificationCenter.py 26 May 2003 12:24:53 -0000 1.6 --- test_NotificationCenter.py 27 Sep 2003 23:58:39 -0000 1.7 *************** *** 25,29 **** """Test the Model""" ! import unittest, os, sys import utils from NotificationFramework import NotificationCenter as NC --- 25,29 ---- """Test the Model""" ! import unittest, os, sys, weakref import utils from NotificationFramework import NotificationCenter as NC *************** *** 39,43 **** pass ! class TestObject: def __init__(self): self.state=self.state_2=0 --- 39,48 ---- pass ! if '--new-style' in sys.argv: ! base_object=object ! else: ! class base_object: pass ! ! class TestObject(base_object): def __init__(self): self.state=self.state_2=0 *************** *** 52,56 **** self.userInfo_2=kw[0].userInfo() ! class TestObjectUnregister: def __init__(self): self.state=0 --- 57,61 ---- self.userInfo_2=kw[0].userInfo() ! class TestObjectUnregister(base_object): def __init__(self): self.state=0 *************** *** 110,114 **** observers_after=NC._observers() self.failUnlessEqual(observers_before, observers_after) ! def test_04_generic_postNotification(self): "[NotificationCenter] Tests generic observers" --- 115,134 ---- observers_after=NC._observers() self.failUnlessEqual(observers_before, observers_after) ! ! # same with a weakref (postNotification removes dead weakref when it finds ! # some) ! observers_before=NC._observers() ! NC.addObserver(one, 'callMe', 'notif_test_3') ! NC.addObserver(one, 'callMe', 'notif_test_3') ! observers_after=NC._observers() ! self.failIfEqual(observers_before, observers_after) ! ! from NotificationFramework.Notification import Notification ! wone=NC._observers()[Notification('notif_test_3')][0] ! self.assertEqual(type(wone), weakref.ReferenceType) ! NC.removeObserver(wone) ! observers_after=NC._observers() ! self.failUnlessEqual(observers_before, observers_after) ! def test_04_generic_postNotification(self): "[NotificationCenter] Tests generic observers" |
From: <sbi...@us...> - 2003-09-27 23:58:29
|
Update of /cvsroot/modeling/NotificationFramework In directory sc8-pr-cvs1:/tmp/cvs-serv21118 Modified Files: NotificationCenter.py CHANGES Log Message: Added support for new-style classes |
From: <sbi...@us...> - 2003-09-27 23:37:36
|
Update of /cvsroot/modeling/NotificationFramework In directory sc8-pr-cvs1:/tmp/cvs-serv18032 Added Files: vertoo.data vertoo.config Log Message: Added conf. file for vertoo --- NEW FILE: vertoo.data --- notification-framework = major:0; minor:5; --- NEW FILE: vertoo.config --- addScheme('normal', '%major.%minor') addScheme('cvs', '%major_%minor') nf=addModule('notification-framework') nf.addAnchors("setup.py", arguments(pattern="version=%Q", format='@normal')) # # %@. expands to module name # scmTool = ScmToolInfo( # tool="cvs", # commitmsg="release @normal", # tagfmt="release-@cvs", # ) |
From: <sbi...@us...> - 2003-09-27 11:38:01
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv21435/Modeling/scripts Modified Files: mdl_generate_DB_schema.py Log Message: Fixed bug #785434 Index: mdl_generate_DB_schema.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/scripts/mdl_generate_DB_schema.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mdl_generate_DB_schema.py 9 Aug 2003 11:00:26 -0000 1.6 --- mdl_generate_DB_schema.py 27 Sep 2003 11:37:47 -0000 1.7 *************** *** 335,340 **** model.setConnectionDictionary(user_connection_dict) ! # SQLite specifics, bug #785434 ! if model.adaptorName() == 'SQLite': dsn_db_name = model.connectionDictionary()['database'] admin_dsn_db_name = admin_connection_dict['database'] --- 335,340 ---- model.setConnectionDictionary(user_connection_dict) ! # SQLite specifics, bug #785434 / #813297 ! if model.adaptorName() == 'SQLite' and should_have_admin_dict: dsn_db_name = model.connectionDictionary()['database'] admin_dsn_db_name = admin_connection_dict['database'] |
From: <sbi...@us...> - 2003-09-27 11:38:01
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv21435 Modified Files: CHANGES Log Message: Fixed bug #785434 Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/CHANGES,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** CHANGES 13 Sep 2003 14:54:02 -0000 1.17 --- CHANGES 27 Sep 2003 11:37:47 -0000 1.18 *************** *** 8,11 **** --- 8,14 ---- -------------------------------------------------------- + * Fixed bug #785434: When mdl_generate_db_schema is run with an option which + doesn't require the admin-dsn to be set, the script fails with a KeyError. + 0.9-pre-15 (2003/09/13) ----------------------- |
From: <sbi...@us...> - 2003-09-21 18:50:42
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide In directory sc8-pr-cvs1:/tmp/cvs-serv22497/UserGuide Modified Files: CodeRequirements.tex Log Message: Fixed doc. for Validation (ticker #807763) Index: CodeRequirements.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/CodeRequirements.tex,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CodeRequirements.tex 23 Aug 2003 16:53:31 -0000 1.2 --- CodeRequirements.tex 21 Sep 2003 18:50:37 -0000 1.3 *************** *** 252,256 **** "Checks that the provided value does not begin with a 'J'" if aValue.find('J')==0: ! raise Validation.Exception return \end{verbatim} --- 252,256 ---- "Checks that the provided value does not begin with a 'J'" if aValue.find('J')==0: ! raise Validation.ValidationException return \end{verbatim} *************** *** 323,331 **** def validateForSave(self): "Validate " ! error=Validation.Exception() try: CustomObject.validateForSave(self) ! except Validation.Exception, error: ! error.aggregateException(error) # Your custom bizness logic goes here if self.getFirstName()=='John': # No John, except the One --- 323,331 ---- def validateForSave(self): "Validate " ! error=Validation.ValidationException() try: CustomObject.validateForSave(self) ! except Validation.ValidationException, exc: ! error.aggregateException(exc) # Your custom bizness logic goes here if self.getFirstName()=='John': # No John, except the One |
From: <sbi...@us...> - 2003-09-21 18:50:42
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc In directory sc8-pr-cvs1:/tmp/cvs-serv22497 Modified Files: UserGuide.tex Log Message: Fixed doc. for Validation (ticker #807763) Index: UserGuide.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide.tex,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** UserGuide.tex 13 Sep 2003 14:54:02 -0000 1.31 --- UserGuide.tex 21 Sep 2003 18:50:37 -0000 1.32 *************** *** 22,26 **** % the rest is at your discretion. \authoraddress{Email: \email{sbi...@us...}} ! \date{Sep 13, 2003} %\date{\today} \release{0.9-pre-15} --- 22,26 ---- % the rest is at your discretion. \authoraddress{Email: \email{sbi...@us...}} ! \date{Sep 21, 2003} %\date{\today} \release{0.9-pre-15} |
From: <sbi...@us...> - 2003-09-13 15:24:24
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide In directory sc8-pr-cvs1:/tmp/cvs-serv17691/Modeling/doc/UserGuide Modified Files: FrameworkTypicalUsage.tex Log Message: misc. label update Index: FrameworkTypicalUsage.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide/FrameworkTypicalUsage.tex,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FrameworkTypicalUsage.tex 13 Sep 2003 14:39:31 -0000 1.7 --- FrameworkTypicalUsage.tex 13 Sep 2003 15:24:20 -0000 1.8 *************** *** 216,220 **** \end{notice} ! \subsection{Binding the default EC transactions to Zope transactions} A special property has been added to the \class{ZEditingContextSessioning} --- 216,220 ---- \end{notice} ! \subsection{Binding the default EC transactions to Zope transactions\label{framework-integration-zope-options}} A special property has been added to the \class{ZEditingContextSessioning} |
From: <sbi...@us...> - 2003-09-13 15:00:01
|
Update of /cvsroot/modeling/ZModeling In directory sc8-pr-cvs1:/tmp/cvs-serv12806/ZModeling Modified Files: CHANGES Log Message: Release 0.9pre15 Index: CHANGES =================================================================== RCS file: /cvsroot/modeling/ZModeling/CHANGES,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** CHANGES 13 Sep 2003 12:40:32 -0000 1.24 --- CHANGES 13 Sep 2003 14:59:57 -0000 1.25 *************** *** 1,5 **** -*- text -*- ! Current release is: 0.9-pre-10 * ZModelizationTool: --- 1,8 ---- -*- text -*- ! Current release is: 0.9-pre-15 ! ! 0.9-pre-15 (2003/09/13) ! ----------------------- * ZModelizationTool: |
From: <sbi...@us...> - 2003-09-13 14:54:26
|
Update of /cvsroot/modeling/ProjectModeling In directory sc8-pr-cvs1:/tmp/cvs-serv11757 Modified Files: vertoo.data Log Message: Release 0.9pre15 Index: vertoo.data =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/vertoo.data,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** vertoo.data 31 Aug 2003 15:29:12 -0000 1.8 --- vertoo.data 13 Sep 2003 14:54:23 -0000 1.9 *************** *** 1,2 **** ! mdl-code = major:0; minor:9; pre:14; release:x; date:Aug 31, 2003; ! mdl_doc = major:0; minor:9; pre:14; release:x; date:Aug 31, 2003; \ No newline at end of file --- 1,2 ---- ! mdl-code = major:0; minor:9; pre:15; release:x; date:Sep 13, 2003; ! mdl_doc = major:0; minor:9; pre:15; release:x; date:Sep 13, 2003; \ No newline at end of file |
From: <sbi...@us...> - 2003-09-13 14:54:06
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage In directory sc8-pr-cvs1:/tmp/cvs-serv11661/Modeling/doc/HomePage Modified Files: main.tex downloads.tex Log Message: Release 0.9pre15 Index: main.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage/main.tex,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** main.tex 31 Aug 2003 15:38:10 -0000 1.26 --- main.tex 13 Sep 2003 14:54:02 -0000 1.27 *************** *** 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-14} % 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-15} % At minimum, give your name and an email address. You can include a *************** *** 13,17 **** \author{S\'ebastien Bigaret} \email{sbi...@us...} ! \date{Aug 31, 2003} %\date{\today} --- 13,17 ---- \author{S\'ebastien Bigaret} \email{sbi...@us...} ! \date{Sep 13, 2003} %\date{\today} Index: downloads.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage/downloads.tex,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** downloads.tex 31 Aug 2003 15:29:13 -0000 1.16 --- downloads.tex 13 Sep 2003 14:54:02 -0000 1.17 *************** *** 10,14 **** \begin{enumerate} ! \item[\bf Current version: 0.9-pre-14] Download it here:\begin{rawhtml}<a --- 10,14 ---- \begin{enumerate} ! \item[\bf Current version: 0.9-pre-15] Download it here:\begin{rawhtml}<a |
From: <sbi...@us...> - 2003-09-13 14:54:06
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/doc In directory sc8-pr-cvs1:/tmp/cvs-serv11661/Modeling/doc Modified Files: UserGuide.tex Tutorial.tex Log Message: Release 0.9pre15 Index: UserGuide.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/UserGuide.tex,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** UserGuide.tex 13 Sep 2003 14:39:31 -0000 1.30 --- UserGuide.tex 13 Sep 2003 14:54:02 -0000 1.31 *************** *** 22,28 **** % the rest is at your discretion. \authoraddress{Email: \email{sbi...@us...}} ! \date{Aug 31, 2003} %\date{\today} ! \release{0.9-pre-14} %\setreleaseinfo{pre-8} \setshortversion{0.9} --- 22,28 ---- % the rest is at your discretion. \authoraddress{Email: \email{sbi...@us...}} ! \date{Sep 13, 2003} %\date{\today} ! \release{0.9-pre-15} %\setreleaseinfo{pre-8} \setshortversion{0.9} Index: Tutorial.tex =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/Tutorial.tex,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Tutorial.tex 31 Aug 2003 15:29:12 -0000 1.10 --- Tutorial.tex 13 Sep 2003 14:54:02 -0000 1.11 *************** *** 14,18 **** \date{February 10, 2003} %\date{\today} ! \release{0.9-pre-14} %\setreleaseinfo{5} \setshortversion{0.9} --- 14,18 ---- \date{February 10, 2003} %\date{\today} ! \release{0.9-pre-15} %\setreleaseinfo{5} \setshortversion{0.9} |