The issue is in line 10 where "format='%(name)s')" , but what causes this
issue ,That's why I'm asking ;)
On Monday, March 23, 2015 at 4:50:01 AM UTC+3, Massimo Di Pierro wrote:
>
> which one is line 23? Perhaps some hidden character creeped in.
>
> On Sunday, 22 March 2015 20:43:08 UTC-5, KPlusPlus wrote:
>>
>> Hello
>>
>> I'm having an issue while compiling a module file
>>
>> here is the code
>>
>> # -*- coding: utf-8 -*-
>> #Products Table
>> db.define_table=('product',
>> Field('name',notnull=True,unique=True),
>> Field('prices','double'),
>> Filed('description','text'),
>> Field('image','upload'),
>> Filed('sortable','integer'),
>> auth.signature,
>> format='%(name)s')
>>
>> #Sales Table
>> db.define_table=('sale',
>> Field('invoice'),
>> Field('creditcard'),
>> Field('buyer',db.auth_user),
>> Field('product',db.product),
>> Field('quantity','integer'),
>> Field('price','double'),
>> Field('shipped','boolean',default=False),
>> auth.signature)
>>
>> session.cart = session.cart or {}
>>
>> copy in Github Gist
>>
>> https://gist.github.com/anonymous/fbd1b904b30691a72890#file-gistfile1-py
>>
>> I'm not sure where is the issue
>> The problem appears as "failed to compile file because:*SyntaxError* at
>> line 10 at char 23"
>>
>> I've been following the video of massimo but it's 4 years old , I don't
>> remember we2py backword compatibility was broken
>> https://www.youtube.com/watch?v=xW5xOdDk-BE
>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.