46 | | |
47 | | === Web2Py === |
48 | | This is an [http://en.wikipedia.org/wiki/Model-view-controller MVC] environment (like [http://web2py.com/AlterEgo/default/show/103 Rails] & [http://web2py.com/AlterEgo/default/show/101 Django]. [http://vimeo.com/6507384 Django polls tutorial conversion course]). |
49 | | |
50 | | Web2Py can work at several different levels of abstraction.[[BR]] |
51 | | The Sahana Eden framework (S3) is built on Web2Py's !Auth/Crud classes in {{{tools.py}}} (with some remnants of the older T2), however sometimes we need more control therefore need to drop down a level or two. |
52 | | * Web2Py recommends the [http://web2py.com/book official book]) |
53 | | |
54 | | Recommend using the CLI to try out code snippets in the Web2Py environment (gluon, Model): |
55 | | {{{ |
56 | | python web2py.py -S eden -M |
57 | | }}} |
58 | | |
59 | | Can execute a controller to be able to access its functions using: |
60 | | {{{ |
61 | | execfile("applications/eden/controllers/mycontroller.py", globals()) |
62 | | }}} |
63 | | |
64 | | Web2Py can be extended through [http://www.web2py.com/plugins Plugins] & also has a [http://web2pyslices.com recipes site]. |
65 | | |
66 | | * [http://web2py.com/book Web2py Book] |