[web2py] Re: Display uploaded file

2016-10-19 Thread Mirek Zvolský
Upload size: In Javascript it is possible read the height/width/size of the image and if they are to large, then you can resize them. No special library is needed. This can be done using html5 canvas. Here is my code. The first line of code is from work with js cropper https://fengyuanchen.githu

[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://w

[web2py] Re: run controller function and ommit models?

2016-10-19 Thread Mirek Zvolský
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 > http://www.we

[web2py] Re: run controller function and ommit models?

2016-10-19 Thread Mirek Zvolský
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). > > Fine-

[web2py] Re: Login - message "invalid email" - on mobil

2016-10-19 Thread Beat Kohler
Hi Massimo Thanks for your response. But I not understand your answer. Perhaps my question was not clear. Login with the email address works fine on a desktop. Same URL - same login procedure on a smartphone I get the message "invalid email" and this as mentioned on an pythomanywhere publish

[web2py] insert list of dictionary

2016-10-19 Thread Tribo Eila
Hi, supposed: db.define_table('color', Field('blue'),Field('yellow'),Field('red')) COLORED_THINGS = { 'blue': ['sky', 'jeans', 'powerline insert mode'], 'yellow': ['sun', 'banana', 'phone book/monitor stand'], 'red': ['blood', 'tomato', 'test failure']} using db.c

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-19 Thread icodk
You might be right, How can I change it ? However running the following commands tells me that python 2.7 is the default: $ python --version Python 2.7.12 $python Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license"

[web2py] Re: run controller function and ommit models?

2016-10-19 Thread 黄祥
*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' : re

Re: [web2py] Best way to start new project?

2016-10-19 Thread António Ramos
this starter is awsome. https://github.com/mjbeller/web2py-starter The code is very well written. 2016-10-18 22:46 GMT+01:00 Marco Mansilla : > I'm used to: > > $python web2py.py -S newapp > > There are very few things I do outside the console, so this method feels > comfortable. > > El 18 oct.

[web2py] web2py_osx on Sierra (OSX 10.12)

2016-10-19 Thread Scott Hunter
When I download & run a fresh copy of the web2py_osx app, I get the usual warnings about it not being from a known source (b/c it is unsigned, I presume). In previous versions, when I told the Security System Preference panel to open it anyway, it did, and all was well. But now, soon after it

[web2py] Re: problem with start_time of the scheduler

2016-10-19 Thread Martin Weissenboeck
2016-10-17 21:11 GMT+02:00 Niphlod : > BTW: please start adapting your code to use mysched.queue_task() > instead of db.scheduler_task.insert(...) . > Next releases could change the format of the scheduler_task table and only > the queue_task method is the supported one (i.e. will handle event

[web2py] Most "proper way" to configure web2py in pycharm

2016-10-19 Thread Ty oc
Hi there, I know I can debug web2py from pycharm (but sometimes a little slow response time). It also include a nice git interface... so. Thought I will like more intellisense help or jump to definition (because some things in web2py are global), setting some folders to ignore and other to sour

[web2py] Re: Most "proper way" to configure web2py in pycharm

2016-10-19 Thread Willoughby
http://www.jetbrains.com/help/pycharm/2016.2/web2py.html On Wednesday, October 19, 2016 at 1:37:48 PM UTC-4, Ty oc wrote: > > Hi there, I know I can debug web2py from pycharm (but sometimes a little > slow response time). It also include a nice git interface... so. > > Thought I will like more in

[web2py] Re: run controller function and ommit models?

2016-10-19 Thread Anthony
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 associat

[web2py] Re: run controller function and ommit models?

2016-10-19 Thread Anthony
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 lo

[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread PRACHI VAKHARIA
The goals is learning – to see and understand the process and working happening in the background to make everything work – to see the web2py in action from inside. Currently, web2py works so well that one does not need to worry about things like that, which is great, but it also hides the wor

[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread PRACHI VAKHARIA
> See http://web2py.com/books/default/chapter/29/04/the-core#Logging. Note, > the framework itself will only issue a limited number of INFO logs, so you > won't have much visibility into the framework. > > You can also set up profiling and logging of the HTTP requests (i.e., a > list of each h

[web2py] How to create a front end for an external API?

2016-10-19 Thread greenpoise
First, I am new to API. I did read and went through the web2py book section of API but I am still a bit lost. Is there a good example for this? Am I asking/searching the right way? thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web

[web2py] Re: Cannot import module 'applications.welcome.modules.pytz'

2016-10-19 Thread icodk
problem solved by simple use another ec2 instance with ubuntu version 10.04 ubuntu-trusty-14.04-amd64-server-20160714 Then I strictly followed the book, and with a few small issues I could google myself I could make it work. I used the scripts/setup-web2py-nginx-uwsgi-ubuntu.sh This script crea

[web2py] Re: How to create a front end for an external API?

2016-10-19 Thread greenpoise
RESTFUL API I meant to write On Wednesday, October 19, 2016 at 2:42:52 PM UTC-7, greenpoise wrote: > > First, I am new to API. I did read and went through the web2py book > section of API but I am still a bit lost. Is there a good example for this? > Am I asking/searching the right way? > >

[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread Anthony
On Wednesday, October 19, 2016 at 5:04:24 PM UTC-4, PRACHI VAKHARIA wrote: > > > The goals is learning – to see and understand the process and working > happening in the background to make everything work – to see the web2py in > action from inside. > > Currently, web2py works so well that one do

[web2py] Re: web2py + cordova + APIs

2016-10-19 Thread greenpoise
I tried cloning this to try it out (it might be the answer to my API question) but it did not work and there is no w2p extension file. How can I install to try it? thanks On Friday, October 14, 2016 at 10:41:25 AM UTC-7, Massimo Di Pierro wrote: > > So I made this: > > https://github.com

[web2py] Re: What is Web2Py Doing in Background? — How To See Web2py WorkFlow When The Server is Active?

2016-10-19 Thread Anthony
On Wednesday, October 19, 2016 at 7:56:55 PM UTC-4, Anthony wrote: > > On Wednesday, October 19, 2016 at 5:04:24 PM UTC-4, PRACHI VAKHARIA wrote: >> >> >> The goals is learning – to see and understand the process and working >> happening in the background to make everything work – to see the web2p

[web2py] temporary storage

2016-10-19 Thread Jaimee S
Hello all, I have a list of users on my page. I'm trying to click one user and add that user to a list. After that, I'm trying to loop though each and display their username in html. I can't seem to get the code one hundred percent right. Any help would be appreciated! Here is my code: def

[web2py] temporary storage

2016-10-19 Thread Jaimee S
Also, I plan on emptying the list after I cycle through by the way -- 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 a