Is there a summary anywhere of how to extend/subclass gluon modules?
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
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:
>
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
4 matches
Mail list logo