[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Joe
Yes, this is how the structure should look like, but it seems pythonanywhere doesn't allow me to setup the structure this way. If I try to use this path to install a new app: /home/username/web2py/applications I get this pythonanywhere error msg during the process: Enter the path for a new

[web2py] Re: Setting a header

2017-11-02 Thread Dave S
On Thursday, November 2, 2017 at 5:03:34 PM UTC-7, Dave S wrote: [...] > I was able to add this to layout.html (after line 33 in my 2.14.6 copy) > and get expected results: > > {{ if "lsrefresh" in globals():}} > > {{else:}} > {{pass}} > > I tried using CAT to wrap the strings, but

[web2py] Re: Setting a header

2017-11-02 Thread Dave S
On Thursday, November 2, 2017 at 12:52:40 PM UTC-7, Anthony wrote: > > > If I put that print statement in my view, the result is None. >> > >>> Note that putting a print statement in a view will have no effect. >>> >> >> It makes the console a little more cluttered. >> > > Right, it will

[web2py] Re: Setting a header

2017-11-02 Thread Anthony
> If I put that print statement in my view, the result is None. > >> Note that putting a print statement in a view will have no effect. >> > > It makes the console a little more cluttered. > Right, it will print to the console -- I just meant it won't add anything to the HTML

[web2py] Re: [ISSUE] can't see db from database administration menu

2017-11-02 Thread Marcelo Huerta
The error message seems to indicate that you're using web2py with Python 3. This seems to be a remaining issue pending the full compatibility of web2py with Py3: unicode is a builtin function of Python 2. El miércoles, 1 de noviembre de 2017, 20:59:32 (UTC-3), Арслан Ибатуллин escribió: > >

[web2py] Re: updating to 2.15.4 from 2.9.11, is it possible ?

2017-11-02 Thread Leonel Câmara
Yep that confirms it was a problem with the pickle format of your table files, you are probably fine now since we try really hard not to break backwards compatibility. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Setting a header

2017-11-02 Thread Dave S
On Thursday, November 2, 2017 at 8:15:31 AM UTC-7, Anthony wrote: > > On Thursday, November 2, 2017 at 12:19:14 AM UTC-4, Dave S wrote: >> >> >> >> On Wednesday, November 1, 2017 at 7:15:11 PM UTC-7, Anthony wrote: >>> >>> It's response.headers. >>> >> >> Indeed, but that isn't a sufficient

[web2py] Re: Data Representation SQLFORM.factory /linked tables

2017-11-02 Thread Anthony Smith
Thanks Anthony As usual something I never thought of. Always looking for my mistakes.lol cheers Anthony On Thursday, 2 November 2017 13:19:35 UTC+11, Anthony wrote: > > db.define_table('drench', >> Field('status', requires=IS_IN_SET(STATUSES), >>

[web2py] Re: updating to 2.15.4 from 2.9.11, is it possible ?

2017-11-02 Thread Pierre
Le lundi 30 octobre 2017 11:14:32 UTC-4, Pierre a écrit : > > Good day, > > current environment : python 2.7.6.1 and web2py 2.9.11 > updating to : python 2.7.6.1 and web2py 2.15.4 > > Does the older version of python could be creating the following error : >

[web2py] Re: updating to 2.15.4 from 2.9.11, is it possible ?

2017-11-02 Thread Pierre
Problem not realy identified, but the source is in the "auth" requirement starting reference in line 51 of db. It seems to inhibit the migration process, and i'm always getting a pickle ticket. My solution for the moment: - emptied the folder "database" - run the application and let all

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Anthony
On Thursday, November 2, 2017 at 5:54:41 AM UTC-4, Joe wrote: > > In pythonanywhere you have to create a folder first before you install the > app. > So you mean, it should be* /web2py/applications/my_app_directory/init* > No -- the folder structure is: /web2py /applications /init

[web2py] Re: Setting a header

2017-11-02 Thread Anthony
On Thursday, November 2, 2017 at 12:19:14 AM UTC-4, Dave S wrote: > > > > On Wednesday, November 1, 2017 at 7:15:11 PM UTC-7, Anthony wrote: >> >> It's response.headers. >> > > Indeed, but that isn't a sufficient correction. > > /dps > > >> >> Anthony >> >> On Wednesday, November 1, 2017 at

[web2py] Re: Make a form and edit multiple rows in web2py

2017-11-02 Thread Joilson Quinteiro
Thank you all, I'll study about it!!! Em quarta-feira, 25 de outubro de 2017 10:15:08 UTC-3, Joilson Quinteiro escreveu: > > > Hi all, > > Anyone can help me this question? ? > > its very importante to me. > > Give me one example please. > -- Resources: - http://web2py.com -

Re: [web2py] Re: ERROR : ImportError: No module named gluon.utils in websocket_messaging.py after upgrade to 2.15.4

2017-11-02 Thread Luciano Bovio
El 01/11/17 a las 20:57, Massimo Di Pierro escribió: make sure web2py is in PYTHON_PATH On Wednesday, 1 November 2017 08:19:02 UTC-5, Omicron VT wrote: El miércoles, 1 de noviembre de 2017, 9:17:45 (UTC-3), Omicron VT escribió: I have been using websocket_messaging.py

[web2py] Re: How to get rid if the /init/default/ in the URL?

2017-11-02 Thread Joe
In pythonanywhere you have to create a folder first before you install the app. So you mean, it should be* /web2py/applications/my_app_directory/init* On Thursday, November 2, 2017 at 10:05:13 AM UTC+8, Anthony wrote: > > In any case, can you advise me on how to fix this problem? My directory