On Wednesday, October 19, 2016 at 7:34:40 AM UTC-4, Mirek Zvolský wrote:
>
> I think in the alphabetically first model I will use
>
> if request.controller == '':
>response.models_to_run = ...
>
>
Are you saying you will specifically use the value '' for
request.controller? Your code should
On Wednesday, October 19, 2016 at 5:26:18 AM UTC-4, Nico de Groot wrote:
>
> 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.
Making an empty model folder
*e.g.*
*models/db.py*
if request.function == 'user' :
response.models_to_run = ['db_schema_0_auth.py', 'db_schema_1_test.py',
'menu.py']
elif 'order' in request.function :
response.models_to_run = ['db_schema_0_auth.py', 'db_schema_1_test.py',
'menu.py']
elif request.controller == 'settings' :
I think in the alphabetically first model I will use
if request.controller == '':
response.models_to_run = ...
On Wednesday, 19 October 2016 08:52:08 UTC+2, Mirek Zvolský wrote:
>
> Hi,
> I am trying implement fine-uploader for upload files (used in import from
> other software).
>
>
Great !!!
Thanks.
On Wednesday, 19 October 2016 11:26:18 UTC+2, Nico de Groot wrote:
>
> 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
>
5 matches
Mail list logo