I tried applying some Zen I stole from http://www.zope.org/Members/jpenny/variable_length_forms but it's just not working. Anybody out there have some extra clue to pass my way? <dtml-in "objectValues(['DTML Document'])"> <dtml-call "manage_changeProperties({ 'rank' : _['rank'+_['sequence-number']], 'artist' : _['artist'+_['sequence-number']], 'song' : _['song'+_['sequence-number']] })"> </dtml-in> --- Zope Error Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: illegal argument type for built-in operation Traceback follows: Traceback (innermost last): File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: do_edit) File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: do_edit) File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/OFS/DTMLMethod.py, line 150, in __call__ (Object: do_edit) File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_String .py, line 502, in __call__ (Object: do_edit) File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob (Object: objectValues(['DTML Document'])) File /home/drees/zope/Zope-2.1.2-linux2-x86/lib/python/DocumentTemplate/DT_Util.p y, line 335, in eval (Object: manage_changeProperties({ 'rank' : _['rank'+_['sequence-number']], 'artist' : _['artist'+_['sequence-number']], 'song' : _['song'+_['sequence-number']] })) (Info: manage_changeProperties) File <string>, line 0, in ? TypeError: (see above) -steve ---- drees@the-bridge.net http://www.the-bridge.net/~drees "A problem well stated, is a problem half-solved." - C. Kettering
----- Original Message ----- From: "Steve Drees" <drees@the-bridge.net> To: "Zope@Zope. Org" <zope@zope.org> Sent: Tuesday, April 25, 2000 2:37 PM Subject: [Zope] Desperately Seeking Zen...
I tried applying some Zen I stole from http://www.zope.org/Members/jpenny/variable_length_forms but it's just not working. Anybody out there have some extra clue to pass my way?
<dtml-in "objectValues(['DTML Document'])"> <dtml-call "manage_changeProperties({ 'rank' : _['rank'+_['sequence-number']], 'artist' : _['artist'+_['sequence-number']], 'song' : _['song'+_['sequence-number']] })"> </dtml-in>
My guess is that _['sequence-number'] is an int. You probably need to do: _['rank'+_.str(_['sequence-number'])] Kevin
participants (2)
-
Kevin Dangoor -
Steve Drees