[Zope-dev] adding a ZSQLmethod programmaticaly throug the WEB
Joachim Schmitz
js@aixtraware.de
Wed, 8 Aug 2001 08:46:18 +0200 (CEST)
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=3Droot, file=3Df)
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=3D"Add"
,id =3D root
,template=3Dtemplate
,title=3D""
,connection_id=3Dstring.strip(dbcon)
,arguments=3Dparams)
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=FC=DFen
Joachim Schmitz
AixtraWare, Ing. B=FCro f=FCr Internetanwendungen
H=FCsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163