I do from python script: context.manage_addZSQLMethod('id', 'title', 'connId', '', 'select * from test') ...or from DTML Method...: <dtml-call "manage_addProduct['OFSP'].manage_addZSQLMethod('id', 'title', 'flu', '', None)"> ...and all the time got this: Error Type: AttributeError Error Value: manage_addZSQLMethod Traceback (innermost last): File /usr/local/Zope-2.5-stable/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /usr/local/Zope-2.5-stable/lib/python/ZPublisher/Publish.py, line 114, in publish File /usr/local/Zope-2.5-stable/lib/python/Zope/__init__.py, line 158, in zpublisher_exception_hook (Object: DB) File /usr/local/Zope-2.5-stable/lib/python/ZPublisher/Publish.py, line 98, in publish File /usr/local/Zope-2.5-stable/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: ttt) File /usr/local/Zope-2.5-stable/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: ttt) File /usr/local/Zope-2.5-stable/lib/python/OFS/DTMLMethod.py, line 127, in __call__ (Object: ttt) File /usr/local/Zope-2.5-stable/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: ttt) File /usr/local/Zope-2.5-stable/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: manage_addProduct['OFSP'].manage_addZSQLMethod('id', 'title', 'flu', '', None)) (Info: None) File <string>, line 2, in f File /usr/local/Zope-2.5-stable/lib/python/AccessControl/DTML.py, line 29, in guarded_getattr (Object: ttt) File /usr/local/Zope-2.5-stable/lib/python/AccessControl/ZopeGuards.py, line 47, in guarded_getattr AttributeError: (see above) -- Sincerely yours, Bogdan M. Maryniuck We use Linux for all our mission-critical applications. Having the source code means that we are not held hostage by anyone's support department. (Russell Nelson, President of Crynwr Software)
Hi All, So I wrote me a product - a simple one and one that is far from complete, but nevertheless. It's a product to control WinAmp from Zope, which one could use to build a webbased jukebox around Zope, ie you have one computer controling the music being played in an office and anybody with a browser can select songs etc. My question, how do I publish it on zope.org? Douwe
Join zope.org and add a Software Product in your Member area. Add in the tar balls, make a news release and wait for the fame and fortune.... -- Andy McKay @gmweb Consulting http://www.agmweb.ca
On Friday 02 August 2002 16:02, Bo M. Maryniuck wrote:
I do from python script:
context.manage_addZSQLMethod('id', 'title', 'connId', '', 'select * from test')
Hey, Bo, you should do it in this way: context.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod('foo', 'title', connection_id='bar', arguments='arg', template='') :-) -- Sincerely yours, Bogdan M. Maryniuck Anyone who thinks UNIX is intuitive should be forced to write 5000 lines of code using nothing but vi or emacs. AAAAACK! (Discussion in comp.os.linux.misc on the intuitiveness of commands, especially Emacs.)
participants (3)
-
Andy McKay -
Bo M. Maryniuck -
douwe@oberon.nl