[Zope] ZSQLMethod add?

Bo M. Maryniuck b.maryniuk@forbis.lt
Fri, 2 Aug 2002 16:55:14 +0200


On Friday 02 August 2002 16:02, Bo M. Maryniuck wrote:
> I do from python script:
>
>           context.manage_addZSQLMethod('id', 'title', 'connId', '', 'se=
lect
> * from test')

Hey, Bo, you should do it in this way:

context.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod('foo',
                                      'title', connection_id=3D'bar',    =
       =20
                                      arguments=3D'arg', template=3D'')

:-)

--=20
Sincerely yours, Bogdan M. Maryniuck

Anyone who thinks UNIX is intuitive should be forced to write 5000 lines =
of=20
code using nothing but vi or emacs. AAAAACK!
(Discussion in comp.os.linux.misc on the intuitiveness of commands, espec=
ially
Emacs.)