[web2py] Re: Virtual Fields. Strange behavior when saving db result sets Build in types

2011-08-15 Thread Massimo Di Pierro
For the time being you can use this syntax: db=DAL() db.define_table('a',Field('b','integer')) for i in range(10): db.a.insert(b=i) def lazy(f): def g(self,f=f): import copy self=copy.copy(self) return lambda *a,**b: f(self,*a,**b) return g class Scale:

[web2py] Re: Virtual Fields. Strange behavior when saving db result sets Build in types

2011-08-14 Thread Santiago Gilabert
anyone? I found that someone else asked about the same issue 5 month ago but there are no comments about it. http://groups.google.com/group/web2py/browse_thread/thread/845e6cdef5de4e92/4ace7b81d9e239c3?lnk=gstq=Virtual+fieldspli=1 Thanks Santiago On Sat, Aug 13, 2011 at 7:07 PM, Santiago

[web2py] Re: Virtual Fields. Strange behavior when saving db result sets Build in types

2011-08-14 Thread Michael Toomim
I don't have a direct solution, but FYI I added this info to a bug report on a related topic. http://code.google.com/p/web2py/issues/detail?id=374 Thanks for pointing out the problem. On Aug 14, 8:57 am, Santiago Gilabert santiagogilab...@gmail.com wrote: anyone? I found that someone else