[Zope] YIHAW add/del newsitem
Ulrich Wisser
u.wisser@publisher.de
Thu, 08 Mar 2001 11:35:53 +0100
Hello,
I'd like to add and delete Newsitems to a Yihaw folder
from my own methods. My methos is in my /admin (DTML-)
folder and the new NewsItem should be in /news (Yihaw
Folder).
I tried to do this:
<dtml-with news>
<dtml-var "YihawNewsItem_add(REQUEST=REQUEST,RESPONSE=RESPONSE)">
</dtml-with>
But that just gives a traceback (please find it below).
How can I add and delete news items to my news folder?
I don't want my editorial stuff to log into the management
screen.
Thanks
Ulli
Error Type: NameError
Error Value: YihawNewsItem
Traceback (innermost last):
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/ZPublisher/Publish.py,
line 222, in publish_module
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/ZPublisher/Publish.py,
line 187, in publish
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/Zope/__init__.py, line
221, in zpublisher_exception_hook
(Object: Traversable)
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/ZPublisher/Publish.py,
line 171, in publish
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/ZPublisher/mapply.py,
line 160, in mapply
(Object: dtNews)
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/ZPublisher/Publish.py,
line 112, in call_object
(Object: dtNews)
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/OFS/DTMLMethod.py, line
172, in __call__
(Object: dtNews)
File
/usr/local/Zope-2.2.5-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: dtNews)
File
/usr/local/Zope-2.2.5-linux2-x86/lib/python/DocumentTemplate/DT_With.py,
line 146, in render
(Object: news)
File
/usr/local/Zope-2.2.5-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
(Object: YihawNewsItem_add(REQUEST=REQUEST,RESPONSE=RESPONSE))
(Info: REQUEST)
File <string>, line 0, in ?
File /usr/local/Zope-2.2.5-linux2-x86/lib/python/OFS/DTMLMethod.py, line
168, in __call__
(Object: YihawNewsItem_add)
File
/usr/local/Zope-2.2.5-linux2-x86/lib/python/DocumentTemplate/DT_String.py,
line 528, in __call__
(Object: YihawNewsItem_add)
File
/usr/local/Zope-2.2.5-linux2-x86/lib/python/DocumentTemplate/DT_With.py,
line 133, in render
(Object: YihawNewsItem.createInObjectManager(REQUEST['id'], REQUEST))
File
/usr/local/Zope-2.2.5-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 337, in eval
(Object: YihawNewsItem.createInObjectManager(REQUEST['id'], REQUEST))
(Info: REQUEST)
File <string>, line 0, in ?
NameError: (see above)
--
Searchengine Know How - Webpromotion - Optimization - Internal Search
World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg
http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06