[Zope] import ZGadflyDA.gadfly: Ext Method or Python Script?
lists at zopyx.com
Wed Dec 26 22:53:53 EST 2007
--On 27. Dezember 2007 01:59:10 +0100 Rakotomandimby Mihamina
<mihamina.rakotomandimby at etu.univ-orleans.fr> wrote:
> I would like to learn about using Gadfly, on a very little application.
Consider using a *real* database. Gadfly is a toy and it will be removed
in Zope 2.11.
And of course you're right: it is a well known fact that PythonScript
are restricted on imports and doing other stuff. That's why we have *trusted
codde* in form of external methods, Zope products and browser views.
In addition: your code does not make much sense from the architectural
point of view. Zope has a DB abstraction layer with ZSQL methods. If you do
execute SQL code directly this way, be doomed. Please read the RDBMS
of "The Zope Book 2.7 edition" (use Google).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20071227/199215d3/attachment.bin
More information about the Zope