[Modeling-users] Core & ZModeling release 0.9pre15
Status: Abandoned
Brought to you by:
sbigaret
|
From: Sebastien B. <sbi...@us...> - 2003-09-13 15:29:21
|
Hi all,
Release 0.9-pre-15 is out. This release introduces the following changes:
- fix for bug #804756 that has been recently discovered by Yannick
and discussed here, where EC.insert() could be dramatically slowed
down when resolving dns entries is slow.
- Generated python code's __init__ now accepts attributes as
arguments (e.g. Book(title=3D'A title')).
You can make your own classes have the same, if you wish:
def __init__(self, **kw):
[...]
for k,v in kw.items():
self.takeValueForKey(v, k)
This allows you to instanciate a new object and assign values to
its attributes in the same time, such as in:
b=3DBook(title=3D"MyTitle", price=3D9.99);
=20=20=20=20=20=20=20=20=20
Remember: it is important that the instances can still be created
with no arguments at all (b=3DBook() should always work),
the framework relies on this.
- The ZModeler now imports PyModels correctly.
- An option was added to the ZEditingContextSessioning product to
bind transactions of a session's EditingContext to Zope's
transactions (see section 6.4 & 6.4.1 in the User's Guide).
http://modeling.sf.net/UserGuide/framework-integration-zope.html
http://modeling.sf.net/UserGuide/framework-integration-zope-options.html
Best regards,
-- S=E9bastien.
|