[Zope] Programmatic creation/update of ZSQL methods
Dieter Maurer
dieter@handshake.de
Fri, 1 Nov 2002 19:20:57 +0100
Charlie Reiman writes:
> ...
> Since I'm terribly lazy I've automated the DTMLification and the splitting.
> But the third step of uploading the ZSQL bodies is tricker. Currently I'm
> uploading them via FTP but this requires that the methods already exist (due
> to a lack of object type magic).
You may look at "PUTFactory" -- HowTo on Zope.org...
> I've also tried using xmlrpc but
> manage_addZSQLMethod does not seem to live on Folder so I'm not sure how I
> can call it.
The usual way (there are a few exceptions, mainly very old
products) to call constructors is
<ObjectManager>.manage_addProduct[<yourProduct>].<contructor>(<arguments>)
In URL form (this is what you need for XMLRFC), this is
<URLToObjectManager>/manage_addProduct/<yourProduct>
There, you call "<contructor>(<arguments>)".
> ...
> I know about PUT_factory but I didn't have much luck with that either.
But, you do not tell us about the kind of problems....
Dieter