On 23 Sep 2012, at 7:45 AM, Michael Wolfe <[email protected]>
wrote:
> I'm receiving an invalid syntax error when running from Windows. I do not
> receive the error when running the same code from my Webfaction account on
> CentOS. The error appears to be related to compiling of the code. I assume
> the compile code is taking issue with the HTML helper functions which allow
> _myattribute="Value" to be translated into the HTML myattribute="Value". Am
> I just missing something simple? This has been driving me crazy.
That's pretty weird. I don't see a syntax error. Could you post your forms.py
(preferably all of it, or at least through the function containing the error)?
> Thanks,
> Mike
> Traceback (most recent call last):
>
> File "M:\My Documents\EstateCommander\web2py\gluon\restricted.py", line
> 208, in restricted
>
> ccode = compile2(code,layer)
> File "M:\My Documents\EstateCommander\web2py\gluon\restricted.py", line
> 193, in compile2
>
> return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec')
>
> File "C:/Users/Mike/Documents/My
> Dropbox/EstateCommander/web2py/applications/estate/controllers/forms.py",
> line 15
>
> table = TABLE(*rows, _border="0", _align="center", _width="50%")
>
> ^
> SyntaxError: invalid syntax
>
>
--