I forgot route.py! thats interesting
I will look into it!
On Sat, Feb 11, 2012 at 7:40 PM, Anthony wrote:
> Look interesting but that would make the service URLs a bit ugly . i would
>> prefer each UI having its own service URL not generic single method.
>>
>> What i want is like this :
>>
>> /
>
> Look interesting but that would make the service URLs a bit ugly . i would
> prefer each UI having its own service URL not generic single method.
>
> What i want is like this :
>
> /controllers/services/case.py
> /controllers/services/dashboard.py
> /controllers/services/result_grid.py
> /con
Thanks, Yeah thats a lot better.
I would change naming sheme that way , but still would be good to be able
to use folders.
On Sat, Feb 11, 2012 at 7:07 PM, LightDot wrote:
> Always when I deal with big projects, the first thing I do is organize a
> strict file structure. Not just web2py, I do s
Always when I deal with big projects, the first thing I do is organize a
strict file structure. Not just web2py, I do similar things with photoshop
layers, files on my computer, etc. It just makes life that much easier.
For now, I would just reorganize your file names a bit...
ie.:
/controller
On Sat, Feb 11, 2012 at 2:07 AM, howesc wrote:
> one option working with the framework as is:
>
> - make a controller called jsonrpc with 1 method
> - use the first arg from the request.args to select the module to call
> - create a directory in modules and put all your calls in there.
> - im
Sorry for my bad english and rushed post coz i am in car back to home.
What i want to say is i now have 20 JSONRPC methods and going to grow to
100 or more when project is done. ,I want to separate them into each
controller file , less than 20 each.
On Sat, Feb 11, 2012 at 12:02 AM, Jonathan Lund
one option working with the framework as is:
- make a controller called jsonrpc with 1 method
- use the first arg from the request.args to select the module to call
- create a directory in modules and put all your calls in there.
- import and invoke the modules as needed by the controller (pas
On Feb 10, 2012, at 4:57 AM, Phyo Arkar wrote:
> On one application , i have 20 JSON RPC methods , separated by each
> controller. It going to be more than 100 JSORPC methods within 1 year for
> whole project.
>
Out of curiosity: why only one method per controller?
>
> but this project which i doing alone now , with a team with different
> people , which going to grow soon to 15 members thats become big problem.
* correction * Which i was doing alone "Before" , now I am with a team of
different programming background.
On Fri, Feb 10, 2012 at 7:27 PM, Phyo
ofcoz i put all the reusable code inside modules and such. and most are
object oriented.
But that is not a choice WHEN you want to separate Controllers thats going
to serve ONLY JSONRPC and controller for HTML only.Folder becomes only
necessary choice.
On one application , i have 20 JSON RPC me
The main problem is the routing, web2py routes the second arg in url to the
function, how would web2py knows if it has to be a function or a subfolder?
IMO, controllers have to be small, less code, only code which decide the
workflow, the long code I prefer to put in modules, and there I can have
11 matches
Mail list logo