Sorry.. I should be more clear! The "object" you want is the Product ZSQLMethods. Try this (url is an URL to a *Folder*) object=ZPublisher.Client.Object(url + '/manage_addProduct/ZSQLMethods', username=user, password=password) and then: call(object.manage_addZSQLMethod, id=name, title='', connection_id='testDB', arguments='', template=open(f,'rb').read()) -steve On Wednesday, August 8, 2001, at 01:46 AM, Joachim Schmitz wrote:
Hi,
I resend this quesstion with a little better re-line, and hopefully some better explanation.
I try to add a ZSQLmethod by means of a modified load_site.py from the utilities directory of the Zopedistribution.
it has a upload_html procedure with the line:
call(object.manage_addDTMLMethod, id=root, file=f)
which uses the ZClient.py to call the URL:
http://www.myhost.de/manage_addDTMLMethod
and submit the parameters in the post. this one works.
I created an upload_sql: with the corresponding call:
call(object.manage_addZSQLMethod ,submit="Add" ,id = root ,template=template ,title="" ,connection_id=string.strip(dbcon) ,arguments=params)
but thisone always fails with a "Not found error" for
http://www.myhost.de/manage_addZSQLMethod
So what is the correct path to the manage_addZSQLMethod ?
I am quite sure, that the name is correct
Mit freundlichen Grüßen
Joachim Schmitz
AixtraWare, Ing. Büro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )