ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
Re: [Zope] Python scripts & DA objects
by Andrew Veitch other posts by this author
Dec 31 2002 5:34PM messages near this date
Re: [Zope] Python scripts & DA objects | [Zope] Howto use getattr() without acquisition?
On 31/12/02 3:24 pm, "Jeff Sacksteder" <jwsacksteder@[...].com> 
wrote:

>  I have an specific need to manipulate Database objects directly with a
>  python script, rather than by ZSQL methods.
>  
>  I notice methods called manage_insert, manage_join, and manage_update in the
>  source, but I can't quite get the syntax right. Zope Labs doesn't have any
>  example code for this that I can find. Has anyone done something like this?
>  
>  Alternately, Since I can't introspect through the ZMI- where can I find a
>  list of all the methods a DA object supports?

If you want to use databases in Zope through Python the choices are to: (a)
use ZSQL methods or (b) connect to whatever database you are using directly
through the Python driver. But if the choose (b) make sure you know what
you're doing and package up the transactions properly.

I guess you could try to re-write the ZSQL method yourself and go directly
to the DA but I don't know why you'd want to do that.

Also a good idea to check out the zope-db@[...].org list where questions
about relational databases should go - the archives might be helpful too.

A

-- 
Logical Progression Ltd, 3 Randolph Crescent, Edinburgh, EH3 7TH, UK
Tel: +44 (0)131 466 9585 Web: http://www.logicalprogression.net/


_______________________________________________
Zope maillist  -  Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Jeff Sacksteder
Bakhtiar A Hamid
Andrew Veitch

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved