[web2py] Re: Splitting controllers?

2011-12-05 Thread Alan Etkin
I think that large python files turn difficult to read (specially if you are contributing to the code) Here are some recommendations for big sites/apps (in spanish) by Martín Mulone: http://www.slideshare.net/martinpm/web2py-pensando-en-grande-9448110 On Dec 5, 4:57 am, Ryan DowlingSoka

Re: [web2py] Re: Splitting controllers?

2011-12-05 Thread Angelo Compagnucci
These slides are really intresting, an english version sould be a must! 2011/12/5 Alan Etkin spame...@gmail.com: I think that large python files turn difficult to read (specially if you are contributing to the code) Here are some recommendations for big sites/apps (in spanish) by Martín

[web2py] Re: Splitting controllers?

2011-12-05 Thread Anthony
I don't see any problem with breaking up your controller if you find it more manageable. Note, if you have utility functions that are needed by multiple controllers, you can also put them in a model file. Or if you prefer modules but want to make your db and auth instances more easily

[web2py] Re: Splitting controllers?

2011-12-05 Thread Ryan DowlingSoka
Yes it was! Thanks. The site is largely remaining the same, just with improvements and cleaner code, it was mostly developed over 4 weeks last year so shortcuts are numerous and terrifying. One of the main problems I'm having with splitting the code is the utility functions needing access to auth

[web2py] Re: Splitting controllers?

2011-12-05 Thread Anthony
On Monday, December 5, 2011 4:34:16 PM UTC-5, Ryan DowlingSoka wrote: So to clarify, is there something fundamentally wrong with having utility (non-view) functions defined in a controller? I don't think there's anything fundamentally wrong with that, if it works for you.

[web2py] Re: Splitting controllers?

2011-12-05 Thread Ryan DowlingSoka
Alright I have another question. I'm bashing my head against the wall- I've started by defining those earlier utility functions I talked about in a model- and want to be able to access it in layout.html - possible? On Dec 5, 5:31 pm, Anthony abasta...@gmail.com wrote: On Monday, December 5, 2011

[web2py] Re: Splitting controllers?

2011-12-05 Thread Anthony
On Monday, December 5, 2011 11:01:54 PM UTC-5, Ryan DowlingSoka wrote: Alright I have another question. I'm bashing my head against the wall- I've started by defining those earlier utility functions I talked about in a model- and want to be able to access it in layout.html - possible? Yes,

[web2py] Re: Splitting controllers?

2011-12-05 Thread Ryan DowlingSoka
Thanks! Turns out the reason I thought that wasn't working, was because I'm an idiot- and was uploading the wrong file, as in the one I wasn't updating... Again thanks. On Dec 5, 11:25 pm, Anthony abasta...@gmail.com wrote: On Monday, December 5, 2011 11:01:54 PM UTC-5, Ryan DowlingSoka wrote: