Re: [web2py] Re: What is the right way to specialize an application?

2013-01-30 Thread Anthony
I see. I thought you were referring specifically to the admin app controller as magic, but its really the entire web2py concept of a controller being executed in a global environment rather than imported. On Wednesday, January 30, 2013 3:09:18 AM UTC-5, Paul Whipp wrote: > > For me, magic is any

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-30 Thread Paul Whipp
For me, magic is anything that supplies context or functionality that is not visible in the usual python manner. For example where the default.py controller file looks like normal python and mostly behaves that way but has a whole lot of magic going on in terms of variables it can access. On 30 Ja

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Anthony
And how do you define "magic" in this case? On Wednesday, January 30, 2013 12:38:25 AM UTC-5, Paul Whipp wrote: > > A very fair question. > > I'd like to define a class that inherits from the controller class set up > in the magic stuff. In that class I'd define the replacement edit method. > I'

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Paul Whipp
A very fair question. I'd like to define a class that inherits from the controller class set up in the magic stuff. In that class I'd define the replacement edit method. I'd then have some code indicating that the files for the specialised app are to be searched for in the source app folders and i

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Anthony
What sort of solution do you envision? On Tuesday, January 29, 2013 11:02:36 PM UTC-5, Paul Whipp wrote: > > Thanks for that. > > If I use a plug in I can replace the default.py controller file in admin > in its entirety, if my reading of that section is correct, a plugin > solution still involv

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Paul Whipp
Thanks for that. If I use a plug in I can replace the default.py controller file in admin in its entirety, if my reading of that section is correct, a plugin solution still involves a lot of repetition (although at least we're down to one file) and a hole in future update behaviour. On 30 January

[web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Anthony
Maybe look into plugins: http://web2py.com/books/default/chapter/29/12#Plugins On Tuesday, January 29, 2013 6:39:44 PM UTC-5, Paul Whipp wrote: > > I'm new to web2py but not to Python or web application frameworks. > > I love the dry pythonic nature of web2py. I'm less enamoured by its use of >