[web2py] Re: An error occured, please reload the page

2016-08-21 Thread mweissen
What I have done: db.define_tabel("mytable", Field("message")) "message" is not allowed as name for a field and I get "An error occured, please reload the page" Now I reload db.py and I want to change "message" to "mymessage". But I cann't: the error message appears faster than I could edit db

[web2py] Re: static asset management

2016-08-21 Thread T.R.Rajkumar
I hope the question is not clear. The purpose is to reduce band with by making the browser store the static css, js files and use them in further calls to the page. When version number is changed the browser will again fetch the new static files and store them. This is in the book by the captio

[web2py] How to invoke recurring Scheduler task

2016-08-21 Thread Scott Hunter
The book seems pretty clear about the call to use to start a recurring task. What I am not clear on is the best way to invoke this code so that only one copy of the task is created (assuming the scheduler machinery will handle making sure that it keeps recurring). - Scott -- Resources: - h

[web2py] Manual Form Input for drop down menu

2016-08-21 Thread Ron Chatterjee
Question, how to get the list of drop down menu from request.vars using manual form as in the book example (chapter 7) below. If I do the followiing. I get the input values via request.vars but it doesn't work for the drop down. All Option 1 Option 2 Option 3 Option 4

[web2py] Re: Strange error with cookies (to the same domain) accesed through the same router

2016-08-21 Thread cem
Really weird. I have reproduced the problem from Turkey too. I am no network expert but they would better check security / firewall software running at any tier if applicable. Good luck. On Wednesday, August 17, 2016 at 2:08:00 AM UTC+3, Lisandro wrote: > > I'm having this strange problem, and I

[web2py] Re: response.flash is not displayed

2016-08-21 Thread Gael Princivalle
Thank you Anthony, that was the problem. Il giorno domenica 21 agosto 2016 16:10:51 UTC+2, Anthony ha scritto: > > If you have updated the web2py.js file along with your framework update, > then note that the new flash class is "w2p_flash", not just "flash". > > Anthony > > On Saturday, August 20

[web2py] Re: response.flash is not displayed

2016-08-21 Thread Anthony
If you have updated the web2py.js file along with your framework update, then note that the new flash class is "w2p_flash", not just "flash". Anthony On Saturday, August 20, 2016 at 9:58:10 AM UTC-4, Gael Princivalle wrote: > > Hello. > > I would like to have more info about how web2py add the i

[web2py] Re: Authentication without password or blank password

2016-08-21 Thread Anthony
This may be tricky, as the Auth system is designed assuming passwords will be used. You'll probably have to create your own login and registration actions instead of using those provided by Auth. You can use auth.login_bare instead to log someone in, though you may need to give everyone a non-e

[web2py] Re: restrict direct access to .load component views views

2016-08-21 Thread Anthony
Why does it matter? Most likely the user wouldn't know to go to the .load URL, and even if they did, they will simply view a poorly formatted version of what they can already see elsewhere. If the action needs to be protected via authentication, then decorate it with an Auth decorator, as any ot

[web2py] Bootstrap 3 datepicker

2016-08-21 Thread Gael Princivalle
Hello. I'm trying to use Bootstrap 3 datepicker. http://eonasdan.github.io/bootstrap-datetimepicker/ Edward have already use it: https://groups.google.com/d/topic/web2py/ZRS6PN-Ais4/discussion I use it for datetime, the result in the input is like: 03/09/2016 14:00 The form returns me an error a

[web2py] Re: [SOLVED] Re: How to disable the calendar widget?

2016-08-21 Thread Gael Princivalle
Hi Edward. I'm trying also to use Bootstrap 3 datepicker. http://eonasdan.github.io/bootstrap-datetimepicker/ I use it for datetime, the result in the input is like: 03/09/2016 14:00 The form returns me an error as it need also the seconds like: 03/09/2016 14:00:00 The seconds for this applicati

[web2py] Re: How to ensure that the upload field only accepts .jpg or .png files?

2016-08-21 Thread 黄祥
still on the same page of the web2py book requires = IS_UPLOAD_FILENAME(extension='pdf') best regards, stifan -- 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)

[web2py] Re: Form custom input errors

2016-08-21 Thread Gael Princivalle
Yes. Ok adding this code it works: {{if form_new_event.errors.event_datetime:}} {{=form_new_event.errors.event_datetime}} {{pass}} If it's not ne

[web2py] Re: How to ensure that the upload field only accepts .jpg or .png files?

2016-08-21 Thread Steve Joe
Thank you Annet. What should I do for pdf? On Saturday, August 20, 2016 at 5:53:18 PM UTC+5:30, Annet wrote: > > Use the IS_IMAGE() validator > > http://web2py.com/books/default/chapter/29/07/forms-and-validators#IS_IMAGE > > > requires = IS_IMAGE(extensions=('jpg', 'png')) > > > > > Kind regards,

[web2py] How do I send a pdf as json object saved in the web2py db?

2016-08-21 Thread Steve Joe
How would you do it? -- 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-us

[web2py] question on how to use pdfinvoice

2016-08-21 Thread Vic Ding
Hi all, I am trying to generate pdf using pdfinvoice. The invoice is being generated and presented in the view. I am wondering, how can I customise the layout of the invoice? Is the layout linked with generic.pdf or some other template? What's the best way to make a better layout? Can I use a ht

[web2py] restrict direct access to .load component views views

2016-08-21 Thread Kirill Shatalaev
Hello. In the book we see: We can access it at the URL 1 http://127.0.0.1:8000/test/comments/post.load But in production I do not want user to access this directly! It must be callable only from template {{=LOAD}} How must I restrict this, by webserver (apache deny, for example) rules? Or