[web2py] run controller function and ommit models?

2016-10-19 Thread Nico de Groot
You could use conditional models. Just make an empty folder in /models with the 
name of a (new) controller. Put the functions that don't need any models inside 
that controller.

See http://www.web2py.com/books/default/search/29?search=Conditional+models 

Nico de Groot 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] run controller function and ommit models?

2016-10-19 Thread Mirek Zvolský
Hi,
I am trying implement fine-uploader for upload files (used in import from 
other software).

Fine-uploader generates lot of ajax calls with each chunk of each imported 
file.
These Ajax calls just need read and save the chunk (or join chunks with the 
last call).
They don't need any model.

I have no problem to have overhead with running of models.
However I am curious, if Web2py has the possibility skip models for some 
(Ajax) calls.
Or if other frameworks (Django?) give such possibility.

When I think about my use-case, it looks like it could be useful sometimes.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.