Re: [web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread pbreit
Is there a summary anywhere of how to extend/subclass gluon modules?

Re: [web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread Carlos
Hi Jonathan, I can't subclass because I'm adding methods to lots of web2py classes, including: And I believe web2py can't support subclasses for all of the above (plus more) because of the direct instantiations web2py does?. For reference see Massimo's post: https://groups.google

Re: [web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread Jonathan Lundell
On Aug 17, 2011, at 10:14 AM, Carlos wrote: > What would be the best way to extend (add methods, not subclass) web2py > classes?. > > For reference if I want to add the method 'test' to db (DAL class)?. > > I was doing something automated, but basically the following as a specific > example: >

[web2py] extend (add methods, not subclass) web2py classes

2011-08-17 Thread Carlos
Hi, What would be the best way to extend (add methods, not subclass) web2py classes?. For reference if I want to add the method 'test' to db (DAL class)?. I was doing something automated, but basically the following as a specific example: def test(self): return 'test from DAL' import gl