Open source examples of good practice for sizable web2py projects

144 views
Skip to first unread message

pa...@cancamusa.net

unread,
Jun 29, 2014, 5:09:34 AM6/29/14
to web...@googlegroups.com
Hello:
I'm about to start my next sprint with my project karakolas, and this time the main goal is to clean, refactor, tidy...
I've read the web2py book, but I need advice about good practice when a web2py project starts to become too complicated.
I don't have time to use a frontend framework, thought I definitely have to use bootstrap better. However, my main concerns are:
 - where to place and how to organize the tests
 - read batteries of tests that other people have written to make sure I test all that can be tested
 - when to use a model, or a module, or a conditional model
 - any caveat in using lazy tables all the time?
 - where to place files generated by an external program
 - version upgrades, and specifically if an upgrade of your app goes hand-in-hand with an upgrade of web2py (should I release the app bundled with web2py to solve that?)
...that sort of thing.
I also have to put some functionality into plugins, but I know where to find theory and examples for that. I just want to wait till I get the rest right, so that making a plugin doesn't spoil the rest.
So I ask either for references or for open source web2py apps of great size and complexity.
Performance is not as important as order.
Thanks

Carlos Zenteno

unread,
Jun 29, 2014, 5:20:06 PM6/29/14
to web...@googlegroups.com
Maybe check Sahana.org

Niphlod

unread,
Jun 29, 2014, 5:25:20 PM6/29/14
to web...@googlegroups.com


On Sunday, June 29, 2014 11:09:34 AM UTC+2, pa...@cancamusa.net wrote:
Hello:
I'm about to start my next sprint with my project karakolas, and this time the main goal is to clean, refactor, tidy...
I've read the web2py book, but I need advice about good practice when a web2py project starts to become too complicated.
I don't have time to use a frontend framework, thought I definitely have to use bootstrap better. However, my main concerns are:
 - where to place and how to organize the tests
 
a few slices and projects exist on testing web2py. Unfortunately there's yet no "recommended way" officially proposed by web2py

 - read batteries of tests that other people have written to make sure I test all that can be tested
 - when to use a model, or a module, or a conditional model

model: when you change often things and use base "methods" for lots of things
module: when the underlying "API" of your site standardizes itself, move models to modules
conditional model: when you have a nicely structured project (it can very well not happen) and different features among controllers
 
 - any caveat in using lazy tables all the time?

it never had to me.
 
 - where to place files generated by an external program

the private folder
 
 - version upgrades, and specifically if an upgrade of your app goes hand-in-hand with an upgrade of web2py (should I release the app bundled with web2py to solve that?)

you upgrade web2py to benefit from fixed bugs and new features. As long as your app can accomodate for those, I don't see a real reason why NOT upgrade .
 

pa...@cancamusa.net

unread,
Jun 30, 2014, 2:37:17 AM6/30/14
to web...@googlegroups.com


El domingo, 29 de junio de 2014 23:25:20 UTC+2, Niphlod escribió:
 - where to place and how to organize the tests
 
a few slices and projects exist on testing web2py. Unfortunately there's yet no "recommended way" officially proposed by web2py


So some examples would be nice 
 
 - version upgrades, and specifically if an upgrade of your app goes hand-in-hand with an upgrade of web2py (should I release the app bundled with web2py to solve that?)

you upgrade web2py to benefit from fixed bugs and new features. As long as your app can accomodate for those, I don't see a real reason why NOT upgrade .

I remember one upgrade of web2py that required some tweaking of the app, so I don't want the users to upgrade web2py whenever they want. But my repo contains only the app, so from time to time it would be nice if they upgrade.

pa...@cancamusa.net

unread,
Jun 30, 2014, 2:40:15 AM6/30/14
to web...@googlegroups.com
El domingo, 29 de junio de 2014 23:20:06 UTC+2, Carlos Zenteno escribió:
Maybe check Sahana.org

Sorry, but that's a joomla site and I don't see how that's related to web2py... did you mispell

Robby O'Connor

unread,
Jun 30, 2014, 2:41:50 AM6/30/14
to web...@googlegroups.com

Sahana eden http://eden.sahanafoundation.org

--Rob
Sent from my phone...excuse any typos please!

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Jun 30, 2014, 8:19:40 AM6/30/14
to web...@googlegroups.com
sahana eden is one of the largest web2py base projects.
Reply all
Reply to author
Forward
0 new messages