I also get the error but from a different line in dal.py. Could you send me your patch so that I can see if I'm experiencing the same issue? Or has it already been implemented in the web2py source (I didn't see a reference to it in the bugs list)?
running: * Python 2.7.3 (c13457babbfb, Apr 22 2013, 17:59:01) [PyPy 2.0.0-beta2 with GCC 4.8.0] * 2.4.6-stable+timestamp.2013.04.06.17.37.38 (Running on Rocket 1.2.6) Could you send me the On Sunday, April 7, 2013 3:26:13 PM UTC-4, Niphlod wrote: > > you're right, there's a typo in dal.py. > Patch sent to Massimo. > > On Sunday, April 7, 2013 8:54:51 PM UTC+2, Alfonso de la Guarda Reyes > wrote: >> >> Hi, >> >> Well i get an error >> <type 'exceptions.TypeError'> unbound method __setattr__() must be called >> with int instance as first argument (got Reference instance instead) >> >> 1. >> 2. >> 3. >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> 10. >> 11. >> 12. >> 13. >> 14. >> 15. >> 16. >> 17. >> 18. >> 19. >> 20. >> 21. >> 22. >> 23. >> 24. >> 25. >> 26. >> 27. >> 28. >> 29. >> 30. >> 31. >> 32. >> >> Traceback (most recent call last): >> File "/home/alfonsodg/Devel/web2py/gluon/restricted.py", line 212, in >> restricted >> >> >> exec ccode in environment >> File >> "/home/alfonsodg/Dropbox/Devel/web2py/applications/social_mapper/controllers/default.py" >> >> <http://localhost:8000/admin/default/edit/social_mapper/controllers/default.py>, >> line 43, in <module> >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/globals.py", line 194, in <lambda> >> >> >> self._caller = lambda f: f() >> >> >> File >> "/home/alfonsodg/Dropbox/Devel/web2py/applications/social_mapper/controllers/default.py" >> >> <http://localhost:8000/admin/default/edit/social_mapper/controllers/default.py>, >> line 8, in user >> >> >> return dict(form=auth()) >> File "/home/alfonsodg/Devel/web2py/gluon/tools.py", line 1245, in __call__ >> >> >> return getattr(self, args[0])() >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/tools.py", line 2142, in login >> >> >> self.login_user(user) >> File "/home/alfonsodg/Devel/web2py/gluon/tools.py", line 1817, in >> login_user >> >> >> self.update_groups() >> File "/home/alfonsodg/Devel/web2py/gluon/tools.py", line 2895, in >> update_groups >> >> >> table_membership.user_id == self.user.id).select() >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 9810, in select >> >> >> return adapter.select(self.query,fields,attributes) >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 1676, in select >> >> >> return self._select_aux(sql,fields,attributes) >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 1657, in _select_aux >> >> >> return processor(rows,fields,self._colnames,cacheable=cacheable) >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 2028, in parse >> >> >> value = self.parse_value(value,ft,blob_decode) >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 1876, in parse_value >> >> >> return self.parsemap[key](value,field_type) >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 1882, in >> parse_reference >> >> >> value._table, value._record = self.db[referee], None >> >> >> File "/home/alfonsodg/Devel/web2py/gluon/dal.py", line 8007, in __setattr__ >> >> >> int.__setattr__(self, key, value) >> >> TypeError: unbound method __setattr__() must be called with int instance as >> first argument (got Reference instance instead) >> >> >> comes from dal.py >> >> >> Saludos, >> >> -------------------------------- >> Alfonso de la Guarda >> Twitter: @alfonsodg >> Redes sociales: alfonsodg >> Telef. 991935157 >> 1024D/B23B24A4 >> 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 >> >> >> On Sun, Apr 7, 2013 at 1:17 PM, David Marko <dma...@tiscali.cz> wrote: >> >>> Is there anyone testing Pyp with web2py. Is it usable now or in future >>> as faster plarfotm? >>> >>> http://morepypy.blogspot.cz/2013/04/pypy-20-beta-2-released.html >>> >>> -- >>> >>> --- >>> 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+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- --- 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/groups/opt_out.