[Zope] SQL methods in __init__
Dr. Ross Lazarus
rossl@med.usyd.edu.au
Wed, 19 Apr 2000 16:43:18 +1000
It can be done!
Have a look at the code for Piers Lauder's Survey Product. It does a
whole heap of sql business when you add an instance of the
surveycreator....
I have it here if you can't find it on
http://classic.zope.org:8080/Download/Contrib - some problem with our
proxy server right now so I can't get there...
> Garion wrote:
> I'm gonna try to explain what I'm trying do, since I'm sure the above
> isn't too clear.. Frustration has set in...
>
> I have a folder off my root folder that I'll call MyWebSite... In
> MyWebSite, I have a MySQL Connection defined... When I add an instance
> my new product, I want it to save various bits into tables off the MySQL
> Connection, and use the LAST_INSERT_ID for the ID of the object..
>
--
Dr Ross Lazarus
Associate Professor and Sub-Dean for Information Technology
Faculty of Medicine, Room 126A, A27, University of Sydney,
Camperdown, NSW 2006, Australia
Tel: (+61 2) 93514429 Mobile: +61414872482
Fax: (+61 2) 93516646 Email: rossl@med.usyd.edu.au