[Zope-dev] adding a ZSQLmethod programmaticaly

Joachim Schmitz js@aixtraware.de
Tue, 7 Aug 2001 20:06:58 +0200 (CEST)


Hi,

I try to add a ZSQLmethod by means of a modified load_site.py

it has a upload_html procedure with the line:

   call(object.manage_addDTMLMethod, id=3Droot, file=3Df)

which mainly does an 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

I am quite sure, that the name is correct, so what's wrong here ?


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