[Zope-CMF] Customizing worklists with Zclasses
S Haldar
shaldar11@yahoo.com
Wed, 3 Jul 2002 14:35:28 -0700 (PDT)
--0-1825065600-1025732128=:16634
Content-Type: text/plain; charset=us-ascii
Hi John, Dieter - Thanks for youor suggestion. I tried your suggestions of redoing the worklist URL and adding a workflow variable for "variable_name". made it catalogable and tried it with 3 options of "default expression"
1. here/variable_name
2. here/propertysheets/tbProperties/variable_name
3. python:context.propertysheets.tbProperties.getProperty('variable_name') (This option gave error when I deleted and recreated the ZClass instances)
I also changed the portal_skin script doFormSearch to include the variable_name as one of the parameters passed tothe portal_catalog() method.
I got the following error:
======================
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 232, in __call__
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 620, in do_useMacro
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 643, in do_defineSlot
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 591, in do_condition
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 576, in do_loop_tal
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret
File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 513, in do_insertText_tal
File C:\Program Files\WebSite\lib\python\Products\PageTemplates\TALES.py, line 313, in evaluateText
File C:\Program Files\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 198, in _eval
(Info: results)
File C:\Program Files\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 334, in restrictedTraverse
(Info: (['City'], 0))
Undefined: Sorry, an error occurred
======================
where 'City' is the variable_name. Is there anything else I can try and do? Please let me know. This is getting to be quite a bottleneck.
Best regards,
Susmit
---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access
--0-1825065600-1025732128=:16634
Content-Type: text/html; charset=us-ascii
<P>Hi John, Dieter - Thanks for youor suggestion. I tried your suggestions of redoing the worklist URL and adding a workflow variable for "variable_name". made it catalogable and tried it with 3 options of "default expression"</P>
<P> 1. here/variable_name</P>
<P> 2. here/propertysheets/tbProperties/variable_name</P>
<P> 3. python:context.propertysheets.tbProperties.getProperty('variable_name') (This option gave error when I deleted and recreated the ZClass instances)</P>
<P> </P>
<P> I also changed the portal_skin script doFormSearch to include the variable_name as one of the parameters passed tothe portal_catalog() method.</P>
<P> I got the following error:</P>
<P>======================</P>
<P><BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 232, in __call__<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 620, in do_useMacro<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 643, in do_defineSlot<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 591, in do_condition<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 576, in do_loop_tal<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 265, in interpret<BR> File C:\Program Files\WebSite\lib\python\TAL\TALInterpreter.py, line 513, in do_insertText_tal<BR> File C:\Program Files\WebSite\lib\python\Products\PageTemplates\TALES.py, line 313, in evaluateText<BR> File C:\Program Files\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 198, in _eval<BR> (Info: results)<BR><U> File C:\Program Files\WebSite\lib\python\Products\PageTemplates\Expressions.py, line 334, in restrictedTraverse<BR> (Info: (['City'], 0))<BR></U>Undefined: Sorry, an error occurred<BR><BR>======================</P>
<P>where 'City' is the variable_name. Is there anything else I can try and do? Please let me know. This is getting to be quite a bottleneck.</P>
<P> </P>
<P>Best regards,</P>
<P>Susmit</P>
<P> </P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
New! <a href="http://pa.yahoo.com/*http://rd.yahoo.com/sbcyahoo/consumer/evt=640/*http://sbc.yahoo.com" target="_blank">SBC Yahoo! Dial</a> - 1st Month Free & unlimited access
--0-1825065600-1025732128=:16634--