[Zope3-Users] Re: postgresql, psycopgda, Zope3-trunk

Markus Leist ml_zope3_dev at ikom-online.de
Sat Apr 16 08:28:51 EDT 2005


Hi all,

Ok, thanks a lot - seems to work in a first step,
but i've to patch sqlos in this kind:

# svn diff
Index: event/subscriber.py
===================================================================
--- event/subscriber.py (revision 10721)
+++ event/subscriber.py (working copy)
@@ -23,9 +23,9 @@
     # If we don't do this, the cache will be cleared
     # and if we try to re-fetch the object we will
     # lose the new values.
-    obj.syncUpdate()
+    removeSecurityProxy(obj).syncUpdate()
 
-    expired(obj)
+    expired(removeSecurityProxy(obj))
 
 sqlobjectCreatedSubscriber = sqlobjectModifiedSubscriber
 
(author is reading here?)

in my configure.zcml:
   <sqlos:factory
         component="myproject.Person"
         id="Person"
         title="Person"
         description="A Simple Person"
         />

the component line is new to the (very good) Readme from
http://codespeak.net/z3/sqlos/index.html

Markus

Am Freitag, 15. April 2005 15:43 schrieb Derrick Hudson:
[...]
>
> http://codespeak.net/z3/sqlos/
> http://sqlobject.org/
>
[...]



More information about the Zope3-users mailing list