[web2py] Web2py Separating Controller and View Layer

2014-02-17 Thread Juslin Guo
Hi All, I making the switch from cakephp to web2py, one of the things i struggle with is the form module... Is there a way i could override it without having to touch the controller. This requires the controller to know the css class.. form = SQLFORM(db.post,_class=form-horizontal bucket-form,

[web2py] Re: GAE localhost mysql instance

2014-02-17 Thread Juslin Guo
to dev_appserver to tell it to load and connect to mysql for local emulation of google cloud sql. i haven't done it for a while so i don't remember the exact magic incantations cfh On Wednesday, February 12, 2014 3:53:56 AM UTC-8, Juslin Guo wrote: Hi, Can anyone point me to any

[web2py] GAE localhost mysql instance

2014-02-14 Thread Juslin Guo
Hi, Can anyone point me to any resource that show me how to use CloudSQL+GAE together with a local mysql development environment on mac..It can't seem to connect to the local mysql for development purposes. I did this: if not request.env.web2py_runtime_gae: db =

[web2py] New to Web2Py: Large Model

2014-02-14 Thread Juslin Guo
Hi, I have an application in PHP with 500 over tables, what's the best way to managed them in Web2Py, without repeating model definitions nor loading them all. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Large Number of Models in Web2py

2014-02-14 Thread Juslin Guo
Hi All, I new to Web2py, comtemplating shifting a 500 over tables PHP Application over... Do you all know where i can learn how to optimize Web2py for large number of models. Is there a way i could define them without having to repeat it, at the same time, not loading all the models. [Sorry if

[web2py] web2py large model

2014-02-14 Thread Juslin Guo
Hi, Can anyone advise on this. We have an application on PHP with 500 over tables. Is there any strategy we can adopt when using web2py to manage the models? Coz it seems too much for web2py models structure to chew. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation)