2.12.3 is out. Can you please check that?

On Saturday, 22 August 2015 18:58:26 UTC-5, Stefan van den Eertwegh wrote:
>
> Massimo,
>
> I have updated my web2py to 2.12.2 and still have this problem with a 
> list:reference <table>
> Is this something you still have to fix in the web2py version?
>
> Greetings,
> Stefan van den Eertwegh
>
> Op dinsdag 28 april 2015 21:26:23 UTC+2 schreef Ariya Owam-aram:
>>
>> Hi Everyone,
>>
>> I just upgrade to 2.10.4 and found error message when using filed 
>> list:reference.
>>
>> APP : welcome 
>>
>> DB
>> db.define_table('parent', Field('name'))
>> db.define_table('student', Field('name'), Field('parent', 'list:reference 
>> parent'))
>>
>> in APPADMIN
>> - from parent table insert : father, mother
>> - from student table insert : student1 with select father (or mother or 
>> both)
>> - open student grid view : return error 
>> <type 'exceptions.TypeError'> isinstance() arg 2 must be a class, type, 
>> or tuple of classes and types
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>>
>> Traceback (most recent call last):
>>   File "/home/www-data/web2py/gluon/restricted.py", line 227, in restricted
>>     exec ccode in environment
>>   File "/home/www-data/web2py/applications/welcome/views/appadmin.html" 
>> <https://op4.cacpacific.com/admin/edit/welcome/views/appadmin.html>, line 
>> 175, in <module>
>>     {{if ram['bytes'] > 524287:}}
>>   File "/home/www-data/web2py/gluon/sqlhtml.py", line 3253, in __init__
>>     r = represent(field, r or [], record)
>>   File "/home/www-data/web2py/gluon/sqlhtml.py", line 68, in represent
>>     return f(value)
>>   File "/home/www-data/web2py/gluon/packages/dal/pydal/helpers/methods.py", 
>> line 268, in __call__
>>     if isinstance(db._adapter, GoogleDatastoreAdapter):
>> TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and 
>> types
>>
>>
>> Frames
>>    
>>    - 
>>    
>>    *File /home/www-data/web2py/gluon/restricted.py in restricted at line 
>> 227* code arguments variables
>>    - 
>>    
>>    *File /home/www-data/web2py/applications/welcome/views/appadmin.html in 
>> <module> at line 175* code arguments variables
>>    - 
>>    
>>    *File /home/www-data/web2py/gluon/sqlhtml.py in __init__ at line 3253* 
>> code arguments variables
>>    - 
>>    
>>    *File /home/www-data/web2py/gluon/sqlhtml.py in represent at line 68* 
>> code arguments variables
>>    - 
>>    
>>    *File /home/www-data/web2py/gluon/packages/dal/pydal/helpers/methods.py 
>> in __call__ at line 268* code arguments variables
>>    Function argument list
>>    
>>    (self=<pydal.helpers.methods._repr_ref_list object>, value=[1L], row=None)
>>    Code listing
>>    
>>    263.
>>    264.
>>    265.
>>    266.
>>    267.
>>    268.
>>    
>>    269.
>>    270.
>>    271.
>>    272.
>>    
>>            if not value:
>>                return None
>>            from ..adapters import GoogleDatastoreAdapter
>>            refs = None
>>            db, id = self.ref._db, self.ref._id
>>            if isinstance(db._adapter, GoogleDatastoreAdapter):
>>    
>>                def count(values):
>>                    return db(id.belongs(values)).select(id)
>>                rx = range(0, len(value), 30)
>>                refs = reduce(lambda a, b: a & b, [count(value[i:i+30])
>>    
>>    Variablesbuiltinisinstance<built-in function 
>> isinstance>db._adapter<pydal.adapters.sqlite.SQLiteAdapter 
>>    object>db<DAL uri="sqlite://storage.sqlite">GoogleDatastoreAdapterNone
>>    
>>    
>> Thank you
>> Ariya
>>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to