[web2py] Re: Private Controller Functions

2017-05-07 Thread Anthony
>From this section: http://web2py.com/books/default/chapter/29/04/the-core#Dispatching *Functions that take arguments or start with a double underscore are not > publicly exposed and can only be called by other functions.* > Anthony On Sunday, May 7, 2017 at 5:53:29 PM UTC-4, Matt Bockman

Re: [web2py] Re: encoding form fields when registering user - bug or feature?

2017-05-07 Thread Anthony
On Sunday, May 7, 2017 at 11:17:40 AM UTC-4, Yebach wrote: > > I ment send in storage for form variables. I know it is not stored but in > case of safety this could be an issue. Or not? I might be just overreacting > :) > The form.vars Storage object is held only in memory, and only for the

Re: [web2py] Re: lack of documentation

2017-05-07 Thread Kiran Subbaraman
There is another piece of documentation that you may find useful: http://web2py.readthedocs.io/en/latest/ ... this is the API documentation. It hasn't been updated in a while, but holds good for most of the APIs. You could also open up a ipython console, and use the python `dir` function, or

Re: [web2py] Web2py and WebRTC?

2017-05-07 Thread Ron Chatterjee
If someone has experience implementing webrtc there is a paid project would like to discuss with. Drop me a line private -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: Private Controller Functions

2017-05-07 Thread Matt Bockman
When trying to figure out how to create a private function in a controller I first searched the web2py book and I spent a good amount of time looking for this. I eventually decided to search the Google group with success. My ability to search/browse the web2py book is getting better but I'm

[web2py] Re: Saving to database random type data

2017-05-07 Thread Scorpa
Any suggestions, anyone ? How to extract data from BLOB ? среда, 3 мая 2017 г., 22:02:12 UTC+3 пользователь Scorpa написал: > > Hello folks ! > > I have database that's have BLOB type to store any kind of data (it's > should be binary ?): > > Field('f_blob', type='blob', > label=T('blob

[web2py] Re: Displaying images

2017-05-07 Thread Matt Bockman
How big is your application/user base? Is sqlite not sufficient? I unwittingly thought sqlite was kind of a toy until I did a little more research to find out that it is actually very capable and used in a lot of applications. Based on this: https://www.sqlite.org/whentouse.html Seems like

[web2py] Re: lack of documentation

2017-05-07 Thread Matt Bockman
I'm also new to web2py and I have trouble with the documentation. I'm fairly green with python itself so maybe there are better ways to use the documentation or look for things. Sometimes I don't know what things are called or how to search for them. One thing I liked about developing in C++

Re: [web2py] Re: encoding form fields when registering user - bug or feature?

2017-05-07 Thread Vid Ogris
I ment send in storage for form variables. I know it is not stored but in case of safety this could be an issue. Or not? I might be just overreacting :) On May 7, 2017 15:11, "Anthony" wrote: What do you mean by "stored"? web2py does not store password_two -- it simply

[web2py] Re: Html helper module?

2017-05-07 Thread Anthony
On Sunday, May 7, 2017 at 4:44:07 AM UTC-4, Pierre wrote: > > I just repeated what's written in the web2py book : > > > For example a model could do > > auth = Auth(db) > from gluon import current > current.auth = auth > current.db = db #not needed in this case but useful > > and now all modules

[web2py] Re: flash message gets lost

2017-05-07 Thread Anthony
Are you successfully able to show any flash messages (i.e., simply set response.flash within any action and see if it shows up on the page)? Is the appropriate DIV in the layout.html? Note, by the time you are in the index function, session.flash is not expected to be there any longer, as the

[web2py] Re: encoding form fields when registering user - bug or feature?

2017-05-07 Thread Anthony
What do you mean by "stored"? web2py does not store password_two -- it simply compares it to the first password entry to make sure they match. Only one copy of the password is stored in db.auth_user, and it is hashed. Anthony On Sunday, May 7, 2017 at 5:28:38 AM UTC-4, Yebach wrote: > > Hello

[web2py] Re: Problem after git pull with sqlrow

2017-05-07 Thread Anthony
What did you git pull? The web2py repo? If so, note that you probably did not get the updated DAL, as that is now a git submodule. Anthony On Sunday, May 7, 2017 at 7:56:20 AM UTC-4, brushek wrote: > > I found that it looks like for problem in SQLTABLE: > {{ >

[web2py] Re: Problem after git pull with sqlrow

2017-05-07 Thread brushek
I found that it looks like for problem in SQLTABLE: {{ =SQLTABLE(table,_id="gpon_lista",_style="width: 850px; text-align: center; align: center;") }} after commenting this line out error didn't show, but of course this not proper solution for me... Please advice, becouse I don't want to mess

[web2py] Problem after git pull with sqlrow

2017-05-07 Thread brushek
Hello, I have recently did git pull for some old web2py powered project, after that I get: 'Rows' object has no attribute 'fields' Version web2py™ Version 2.14.6-stable+timestamp.2016.05.09.19.18.48 Python Python 2.7.6: /usr/local/bin/uwsgi (prefix: /usr) Traceback 1. 2. 3. 4. 5. 6. 7. 8.

[web2py] encoding form fields when registering user - bug or feature?

2017-05-07 Thread Yebach
Hello I just discovered the following behavior when user fills the user registration form in my form i have confirm password. and in storage the following values are stored , 'email': 'test_m...@gmail.com'}> as you can see the password_two is not encrypted. In case i forgot to set the

[web2py] flash message gets lost

2017-05-07 Thread Yebach
Hello After redirecting user after registriation the flash message is not shown. if I print session the message gets lost --> flash is none I inserted print session in my user function in default.py controller and in index function This is the print result session index session index

[web2py] Re: convert virtual field in grid to another language

2017-05-07 Thread Andrea Fae'
Anthony, you are a guru of web2py! Il giorno sabato 6 maggio 2017 15:50:52 UTC+2, Anthony ha scritto: > > On Saturday, May 6, 2017 at 4:50:47 AM UTC-4, Andrea Fae' wrote: >> >> Solution: >> db.evento.giorno_inizio.represent = lambda giorno_inizio, row: >> T(giorno_inizio) >> >> But I don't know

[web2py] Re: Html helper module?

2017-05-07 Thread Pierre
I just repeated what's written in the web2py book : For example a model could do auth = Auth(db) from gluon import current current.auth = auth current.db = db #not needed in this case but useful and now all modules imported can access current.auth. current and import create a powerful