[Zope] DTML Call Fails

2006-10-24 Thread hpinson
A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: With the error: "Expression (Python) Syntax error: invalid token" Whereas this works fine: Any insight is appreciated. -- Harlow Pinson Indepth Learning Email: [EMAIL PR

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: With the error: "Expression (Python) Syntax error: invalid token" Whereas this works fine: I doubt any of that really "works". So you happen t

Re: [Zope] DTML Call Fails

2006-10-24 Thread Alexis Roda
En/na [EMAIL PROTECTED] ha escrit: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: AR - DA - 08 ^ octal literal HTH ___ Zope maillist - Zope@zope.org http://mail.zope.

Re: [Zope] DTML Call Fails

2006-10-24 Thread Andrew Milton
+---[ Tino Wildenhain ]-- | [EMAIL PROTECTED] schrieb: | >A little bit of legacy DTML fun here... Zope 2.9.3 | > | >On save of a DTML Method, why would this dtml-call fail: | > | > | > | > | > | >With the error: | > | >"Expression (Python) Syntax error: invalid token" | >

Re: [Zope] DTML Call Fails

2006-10-24 Thread hpinson
Hi Tino. Yes, that is correct. This application has variables named like: 'AR-DA-08' This also fails in a Page Template: With the error: Compilation failed TAL.TALDefs.TALError: Python expression error: invalid token (Python expression "data.set('AR-DA-08',AR-DA-08)", line 1) in expre

Re: [Zope] DTML Call Fails

2006-10-24 Thread Jonathan
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, October 24, 2006 1:04 PM Subject: Re: [Zope] DTML Call Fails Hi Tino. Yes, that is correct. This application has variables named like: 'AR-DA-08' This also fails in a Page Template:

Re: [Zope] DTML Call Fails

2006-10-24 Thread David H
[EMAIL PROTECTED] wrote: A little bit of legacy DTML fun here... Zope 2.9.3 On save of a DTML Method, why would this dtml-call fail: With the error: "Expression (Python) Syntax error: invalid token" Whereas this works fine: Any insight is appreciated. hpinson, Maybe you

Re: [Zope] DTML Call Fails

2006-10-24 Thread hpinson
Yep, changing to a underscore from a dash does the trick. Thanks to everyone who helped me understand this. -- Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Phone: 505 994-2135 Fax: 505 994-3603 ___ Zope maillist - Zope@zope.org http://ma

Re: [Zope] DTML Call Fails

2006-10-24 Thread hpinson
Changing the dash to an underscore in the variable name solved the problem. -- Harlow Pinson Indepth Learning Email: [EMAIL PROTECTED] Phone: 505 994-2135 Fax: 505 994-3603 ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zop

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: Hi Tino. Yes, that is correct. This application has variables named like: 'AR-DA-08' Not very clever. This also fails in a Page Template: you still have to quote if you mean the variable with that weird name. Otherwise its an expression in python. _['AR-

Re: [Zope] DTML Call Fails

2006-10-24 Thread Tino Wildenhain
[EMAIL PROTECTED] schrieb: Changing the dash to an underscore in the variable name solved the problem. I'm quite sure you could solve it even better - if we would know where these variables come from and what their meaning is. I suspect some kind of form? Regards Tino Wildenhain _