Re: [Zope] dtml-let + 'expr=' possible?

2001-01-24 Thread Chris Withers

Lee wrote:
 
 dtml-let table expr="classcode_to_table(classcode)"

I think:
dtml-let table="classcode_to_table(classcode)"

..will do it, if it doesn't, then you probabyl can't :-S

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] dtml-let + 'expr=' possible?

2001-01-23 Thread Lee

Hi,

I have one quick question about the 'let' tag;

dtml-var expr="classcode_to_table(classcode)" gives me the value
'class52225'. Is there anyway I can use the 'let' tag to push this onto
the namespace stack? I was thinking something *like*;

dtml-let table expr="classcode_to_table(classcode)"

The python method, classcode_to_table, takes in a string, alters it
and returns it. This is going to be an argument for some ZSQL methods
and some Python methods.

Thanks,

Lee


___
Zope maillist  -  [EMAIL PROTECTED]
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 )