Re: force upper case in REQUEST
Terry Kerr wrote:
... <!--#with "SubjectClass.createInObjectManager(REQUEST['id'], REQUEST)"--> <dtml-call "propertysheets.subject_info.manage_changeProperties( subject_code=<dtml-var id upper>, ... <!--#/with-->
This returns invalid syntax? How can I convert to upper case?
You cannot embed a <dtml-...> tag inside another <dtml-...> tag. Once you are inside a <dtml-...> tag, you have to use methods provided by Zope objects. In particular, the underscore _ variable contains a number of useful methods. In your case, you would use: <dtml-call "propertysheets.subject_info.manage_changeProperties( subject_code=_.string.upper(REQUEST['id']), ...)"> hope this helps, Hung Jung ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
participants (1)
-
Hung Jung Lu