Hello All: Was futzing with the limit field in the advanced tab of a zsql method and noticed something i had never seen before. It was to have a zsql method return a python class instead of a result set. It said i could put a class into the $ZOPEHOME/Extensions dir and the method would return that object. I don't have any memory of it being discussed here. Has anyone used this with good/bad results? Thanks, Patrick __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover
On Fri, May 07, 2004 at 01:55:33PM -0700, patrick sullivan wrote:
Was futzing with the limit field in the advanced tab of a zsql method and noticed something i had never seen before. It was to have a zsql method return a python class instead of a result set. It said i could put a class into the $ZOPEHOME/Extensions dir and the method would return that object.
I don't have any memory of it being discussed here. Has anyone used this with good/bad results?
It's documented in the Zope Book: http://www.zope.org/Documentation/Books/ZopeBook/current/RelationalDatabases... --> section "Binding Classes to Result Objects" -- Paul Winkler http://www.slinkp.com
patrick sullivan wrote at 2004-5-7 13:55 -0700:
Was futzing with the limit field in the advanced tab of a zsql method and noticed something i had never seen before. It was to have a zsql method return a python class instead of a result set. It said i could put a class into the $ZOPEHOME/Extensions dir and the method would return that object.
I don't have any memory of it being discussed here. Has anyone used this with good/bad results?
We used it (with my former employer) with good results. It works as documented :-) *BUT*, your class cannot add new instance attributes. This is because the class underlying rows in database query results do not have a "__dict__". -- Dieter
Hi, i'm interested to see statistics about the use of zope. I want see how much time a user spent in my site, or the number of click per person, or the number of document created etc etc. I've searched about it but i've not found anything. Thanks Massi
trashMan wrote:
Hi, i'm interested to see statistics about the use of zope. I want see how much time a user spent in my site, or the number of click per person, or the number of document created etc etc.
I've searched about it but i've not found anything.
Use log analysis software such as analog or awtstats. Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (5)
-
Chris Withers -
Dieter Maurer -
patrick sullivan -
Paul Winkler -
trashMan