Hi all, I am currently learning Zope by following this howto How-To: Build a Searchable Job Board When it comes to set a title to a new Z-object, one should just define an entry "title" in REQUEST dict. As in the following statement: <dtml-call "REQUEST.set('title', firstn + ' - ' + surn)"> The problem seems that "title" never get defined. If I choose another name than "title", it gets defined though. Has anyone already seen such thing? Zope version: Zope-2.1.1 + Zap TIA, Laurent code of method : entry_addProcessor ----------------- <dtml-var standard_html_header> <dtml-call "REQUEST.set('firstname', firstn)"> <dtml-call "REQUEST.set('surname', surn)"> <dtml-call "REQUEST.set('title', firstn + ' - ' + surn)"> <dtml-with "manage_addProduct['CARISMAproduct']"> <dtml-call "member_add(_.None, _, NoRedir=1)"> </dtml-with> <CENTER> <H2>Thank you for your entry</H2> </CENTER> <dtml-var standard_html_footer> -- Laurent Chane-Chuen-Kee A X I O M (Cambridge) Ltd. Tel: +44 (0)1223 810 305 Fax: +44 (0)1223 812 889
Hi Laurent, "title" is already defined as title of the current object. try <dtml-var title> in an empty document to see what I mean. There are several predefined names, such as id, title, ... see the documentation for more. HTH Tino Wildenhain Laurent Chane-Chuen-Kee wrote:
Hi all,
I am currently learning Zope by following this howto How-To: Build a Searchable Job Board
When it comes to set a title to a new Z-object, one should just define an entry "title" in REQUEST dict. As in the following statement:
<dtml-call "REQUEST.set('title', firstn + ' - ' + surn)">
The problem seems that "title" never get defined. If I choose another name than "title", it gets defined though.
Has anyone already seen such thing?
Zope version: Zope-2.1.1 + Zap
TIA, Laurent
code of method : entry_addProcessor -----------------
<dtml-var standard_html_header>
<dtml-call "REQUEST.set('firstname', firstn)"> <dtml-call "REQUEST.set('surname', surn)"> <dtml-call "REQUEST.set('title', firstn + ' - ' + surn)">
<dtml-with "manage_addProduct['CARISMAproduct']"> <dtml-call "member_add(_.None, _, NoRedir=1)"> </dtml-with>
<CENTER> <H2>Thank you for your entry</H2> </CENTER>
<dtml-var standard_html_footer>
-- Laurent Chane-Chuen-Kee A X I O M (Cambridge) Ltd. Tel: +44 (0)1223 810 305 Fax: +44 (0)1223 812 889
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Laurent Chane-Chuen-Kee -
Tino Wildenhain