[Zope] Need help with a syntax error

Steven Grimes sgrimes@atinucleus.com
Thu, 2 Aug 2001 13:59:44 -0500


I have the following line of code inside a <dtml-in>:

<dtml-call
"REQUEST.set('tqry',Query.PoRpt.Aug01POquery(pormth=tpormth,pmth=07,pyear=20
01,sellid=_['sequence-item']))">

If I change the pmth variable to pmth=08 and try to save I get a syntax
error. I only changed the 7 to an 8. That is the only character in the file
I changed. Any help would be greatly appreciated. If you need more of the
code to diagnose I'll be happy to send a larger peice of the code but this
is a very large file and I do not want to send the whole thing.

the traceback I get is the following:

   Zope Error
Zope has encountered an error while publishing this resource.

Document Template Parse Error

Expression (Python) Syntax error:
invalid syntax

, for tag <dtml-call
"REQUEST.set('tqry',Query.PoRpt.Aug01POquery(pormth=tpormth,pmth=08,pyear=20
01,sellid=_['sequence-item']))">, on line 142 of Aug01PoReport

Traceback (innermost last):
  File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\Publish.py, line
222, in publish_module
  File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\Publish.py, line
187, in publish
  File C:\Program Files\ATIAnywhere\lib\python\Zope\__init__.py, line 221,
in zpublisher_exception_hook
    (Object: Aug01PoReport)
  File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\Publish.py, line
171, in publish
  File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\mapply.py, line
160, in mapply
    (Object: manage_edit)
  File C:\Program Files\ATIAnywhere\lib\python\ZPublisher\Publish.py, line
112, in call_object
    (Object: manage_edit)
  File C:\Program Files\ATIAnywhere\lib\python\OFS\DTMLMethod.py, line 235,
in manage_edit
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 367, in
munge
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 383, in
cook
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 228, in
parse
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 276, in
parse_block
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 228, in
parse
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 276, in
parse_block
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 235, in
parse
    (Object: Aug01PoReport)
  File C:\Program
Files\ATIAnywhere\lib\python\DocumentTemplate\DT_String.py, line 126, in
parse_error
    (Object: Aug01PoReport)
Document Template Parse Error: (see above)

Thanks,
Steven Grimes
Database Engineer
sgrimes@atinucleus.com

Accelerated Technology, Inc.
720 Oak Circle Drive East
Mobile, AL 36609
TEL*: 251-661-5770
FAX*: 251-661-5788
www.acceleratedtechnology.com
*Please note new area code "251"

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Over Ten Years of Providing Embedded Solutions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~