[web2py] websocket_messaging.py error on multiple connections

2017-01-23 Thread Omicron VT
Following the example in websocket_messaging.py i have this config: A tv.html view that refresh its content when an event on client.html sends a message to group1 All of this works fine if tv.html is opened only 1 time. When i open tv.html more than one time when first message is sended, tv.h

[web2py] Re: Encrypting/decrypting db values

2017-01-23 Thread Alex Glaros
is this correct: I need roughly 44 characters generated by my password generator (no human/dictionary words) to contain about 256 bits of randomness to obtain an AES 256-bit key? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sourc

[web2py] Re: Best way to display results on a new page?

2017-01-23 Thread Dave S
On Monday, January 23, 2017 at 2:48:21 PM UTC-8, Jim S wrote: > > I'd build the url using URL and then redirect to the controller page to > build the results page. > > http://web2py.com/books/default/chapter/29/04#markmin_URL > > http://web2py.com/books/default/chapter/29/04/the-core?search=redi

[web2py] Re: Best way to display results on a new page?

2017-01-23 Thread Jim S
I'd build the url using URL and then redirect to the controller page to build the results page. http://web2py.com/books/default/chapter/29/04#markmin_URL http://web2py.com/books/default/chapter/29/04/the-core?search=redirect#HTTP-and-redirect -Jim On Monday, January 23, 2017 at 3:53:07 PM UTC

[web2py] Best way to display results on a new page?

2017-01-23 Thread Reed Crowe
Seems like a simple thing. I have a simple search form with three fields on it. The information entered helps tailor the DB query. I have it working where it displays the data on the same form page, but I want it to display on a separate page. What is the best way to do this? I have tried to us

[web2py] Is it possible to share cache between two differente web2py applications?

2017-01-23 Thread Lisandro
I'm using RedisCache, and I've seen that web2py adds a prefix to all the keys I store in the cache. For example, if I have an application called "master" and I do this: config = cache.redis('config', lambda: initialize_config(), time_expire= 999) ... then the actual key used to store the dat

[web2py] Re: Store dates in UTC format across all tables

2017-01-23 Thread Dave S
On Saturday, January 21, 2017 at 4:26:02 AM UTC-8, Gaurav Vichare wrote: > > I want to store created_on and modified_on values of all tables in UTC > format. Audit fields are added using > db._common_fields.append(auth.signature) and in auth.signature default > value for created_on and modifie

Re: [web2py] Re: Form field defaults the second time through

2017-01-23 Thread Val K
yes, self-redirection restart controller in 'request fresh form' mode, but usually your have to re-pass to URL() args/vars which don't have relation to the form to provide expecting behaviour - just keep in mind this. 2017-01-23 4:11 GMT+03:00 Dave S : > On Sunday, January 22, 2017 at 2:56:07 PM

[web2py] Re: DAL Query string for MariaDB

2017-01-23 Thread Jorrit
Did you try it to see what happens? On Friday, January 20, 2017 at 11:43:40 PM UTC+1, SR wrote: > > What will be DAL Query string in db.py for MariaDB database in my Centos 7 > machine? > Is this right? > db = DAL('mysql://root:password@localhost/db_name’) > -- Resources: - http://web2py.com -