Re: [web2py] Common controller functionality

2012-05-13 Thread Sebastian E. Ovide
what about using modules ? you can create as many classes as you want and
then just use them.

On Sun, May 13, 2012 at 5:31 PM, Yarin  wrote:

> I've always liked the idea of controllers as classes, allowing for
> subclassing of controllers, and thereby providing an easy means of handling
> common controller functionality. I'm curious as to why web2py didn't follow
> this approach? Is there a recommended way of handling code that is common
> to a group of controllers (besides sticking it at the top of a controller
> file)?




-- 
Sebastian E. Ovide


[web2py] Common controller functionality

2012-05-13 Thread Yarin
I've always liked the idea of controllers as classes, allowing for 
subclassing of controllers, and thereby providing an easy means of handling 
common controller functionality. I'm curious as to why web2py didn't follow 
this approach? Is there a recommended way of handling code that is common 
to a group of controllers (besides sticking it at the top of a controller 
file)?