Hi to all,

i moved an app from  2.8.2 (on win2003 32bit, mysql 5.1.50, rocket 1.2.6) 
to 2.11.2 (on ubuntu 15.4 64bit, mysql5.6.24, behind apache 2).
After that the app goes on error.

DB is something like this:

-------------------------------------------   DB  
-------------------------------------------
db.define_table('azienda',
    Field('nome', 'string', default='', notnull=True ),
    Field('descrizione', 'string', default='', notnull=True ),
    Field('pbx', 'reference pbx', ondelete="NO ACTION" ),    
    migrate=True,
    format='%(nome)s')

db.define_table('ivr',
    Field('nome', 'string', default='', notnull=True ),
    Field('descrizione', 'string', default='', notnull=True ),
    Field('scelta', 'string', default='0', notnull=True ),
    Field('azienda', 'reference azienda', ondelete="NO ACTION" ),
    Field('area', 'reference area', ondelete="NO ACTION" ),
    migrate=True,
    format='%(nome)s')

-------------------------------------------   /DB  
-------------------------------------------


 This errors 


 File "/home/www-data/web2py/gluon/packages/dal/pydal/objects.py", line 91, in 
__eq__
    return self.as_dict() == other.as_dict()
TypeError: 'NoneType' object is not callable




occours when i compare:
-------------------------------------------   CODE  
-------------------------------------------
app=db.ivr(1)
if app.azienda==db.azienda(1).id:
        pass
-------------------------------------------   /CODE  
-------------------------------------------

In the previous version this working perfectly.


Please help me!!!



-- 
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.

Reply via email to