[Zope] ZSQLMethod add?
Bo M. Maryniuck
b.maryniuk@forbis.lt
Fri, 2 Aug 2002 16:02:01 +0200
I do from python script:
context.manage_addZSQLMethod('id', 'title', 'connId', '', 'sele=
ct * from test')
=2E..or from DTML Method...:
<dtml-call "manage_addProduct['OFSP'].manage_addZSQLMethod('id'=
, 'title', 'flu', '', None)">
=2E..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 8=
8, 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.p=
y, 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)
--=20
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)