Re: [web2py] Re: Possible problem with loading and installing compiled applications in web2py

2017-09-13 Thread Ben N
Many thanks Anthony I really do appreciate your input (and efforts) and thank you for submitting a pull request to fix it. Kind Regards Ben On 13 September 2017 at 16:58, Anthony wrote: > OK, it's a bug. I have submitted a pull request to fix it: >

[web2py] DAL changes in 2.15.4 regarding Postgres - upper case table names

2017-09-13 Thread Alex Glaros
migrated from 2.14 to 2.15.4 not sure if I can explain correctly but in 2.14, DAL took my upper case table names, created lower case Postgres equivalents and could translate between them. Now I pack the exact same app in 2.14, and when Upload-and-install packed application into 2.15, it no

[web2py] Python3 compatibility issue

2017-09-13 Thread Gabor Nyul
Hi, I suggest to replace all print command to python 3 compatible syntax: print ("blah blah") I've seen this for the moment in anyserver.py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Possible problem with loading and installing compiled applications in web2py

2017-09-13 Thread Anthony
OK, it's a bug. I have submitted a pull request to fix it: https://github.com/web2py/web2py/pull/1763. For now, "Pack compiled" will not work because compiled views will not be executed in apps containing only compiled files. As a temporary workaround, you can compile an app and then pack the

[web2py] caching variable data sample

2017-09-13 Thread Pierre
purpose is to keep a single renewable pseudo-random data sample live the w2p books describes a situation of a constant query : http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=caching+selects#Caching-selects def cache_db_select(): logs =

[web2py] Re: Rocket logs and server crash

2017-09-13 Thread Dave S
On Friday, September 1, 2017 at 4:07:33 PM UTC-7, Dave S wrote: > > > > On Thursday, August 31, 2017 at 3:05:56 PM UTC-7, Massimo Di Pierro wrote: >> >> Can you tell us more about your setup? >> >> > > AWS Linux, Python=2.7.12, web2py-shake-the-box: webp2y (2.14.6) + Rocket > + Sqlite. > >

[web2py] Re: DAL changes in 2.15.4 regarding Postgres - upper case table names

2017-09-13 Thread Dave S
On Wednesday, September 13, 2017 at 9:07:48 PM UTC-7, Alex Glaros wrote: > > lower case with underscores is PEP 8 recommended so I'll rename all tables > and my question becomes moot > But is this post from the 2.15.0b1 thread relevant?

Re: [web2py] Re: web2py 2.15.4 is OUT

2017-09-13 Thread 黄祥
trying to run 2.15.4 app in 2.14.6 machine return an error : Traceback (most recent call last): File "/home/test/web2py/gluon/main.py", line 445, in wsgibase serve_controller(request, response, session) File "/home/test/web2py/gluon/main.py", line 165, in serve_controller environment =

[web2py] Get Row Count in Restful Web Services

2017-09-13 Thread Carlos A. Armenta Castro
Hi folks I want to get the total rows (count) of a query (get request) in a Restful Web Services ( parse_as_rest ). Is it possible? Or I need to construct my own custom method for this purpose? I know I can limit the number of records by specifying a limit and offset GET variables

[web2py] Re: DAL changes in 2.15.4 regarding Postgres - upper case table names

2017-09-13 Thread Alex Glaros
lower case with underscores is PEP 8 recommended so I'll rename all tables and my question becomes moot -- 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: Possible problem with loading and installing compiled applications in web2py

2017-09-13 Thread benjaminato097
Hi Anthony Many thanks for your response. As I mentioned to Dave S above, I deliberately (and specifically) chose this example of downloading the MacOs version (for Normal Users) directly from the web2py website and compiling - and then reloading - the 'Welcome' application to demonstrate the

[web2py] Re: Possible problem with loading and installing compiled applications in web2py

2017-09-13 Thread benjaminato097
Hi Dave Firstly many thanks for your response. When I reviewed the files in the new (or 're-born') compiled 'Welcome' app *both* the view (*views.default.index.html.pyc*) AND its associated controller (*controllers.default.index.pyc*) *correctly exist* in the *'compiled'* folder. (Obviously

[web2py] @auth.requires(True, requires_login=not request.is_local) forces to login ???

2017-09-13 Thread António Ramos
this code forces to login when enter via browser or with pytest @auth.requires(True, requires_login=not request.is_local) Is this correct or is there other alternative? regards António -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Exception during password reset

2017-09-13 Thread tomasz bandura
Hello, My web2py version:' 2.15.4-stable+timestamp.2017.09.02.04.02.22' When I try reset password application raises exception: 'ascii' codec can't decode byte 0xc5 in position 9: ordinal not in range(128) (...) Function argument list (obj=, charset='utf-8', errors='strict') It looks the