[web2py] Re: web2py 2.16.1 is OUT

2018-05-16 Thread 黄祥
test in web2py source 2.16.1-stable+timestamp.2017.11.14.05.54.25 (Running on Rocket 1.2.6, Python 3.6.2) Traceback (most recent call last): File "/Users/sugizo/python/web2py/gluon/custom_import.py", line 77, in custom_importer return NATIVE_IMPORTER(oname, globals, locals, fromlist,

[web2py] Re: web2py 2.16.1 is OUT

2018-05-06 Thread lyn2py
Hi Massimo, I explained with some examples over at: https://groups.google.com/forum/#!topic/web2py/tNmfCY5nxHM I tried to fiddle with gluon/restricted.py but not knowing what the functions / methods are for, I gave up after some hours and used a quick fix for now, in hope of a proper traceback

[web2py] Re: web2py 2.16.1 is OUT

2018-05-05 Thread Massimo Di Pierro
can you show an example of what you mean? On Friday, 27 April 2018 21:21:47 UTC-5, lyn2py wrote: > > Hello, > > The traceback for Python 3 is not like the ones in Python 2 and it can get > difficult to debug the program, is it possible to see a fix soon? > > Thank you! > > On Tuesday, November

[web2py] Re: web2py 2.16.1 is OUT

2018-04-27 Thread lyn2py
Hello, The traceback for Python 3 is not like the ones in Python 2 and it can get difficult to debug the program, is it possible to see a fix soon? Thank you! On Tuesday, November 14, 2017 at 1:59:52 PM UTC+8, Massimo Di Pierro wrote: > > web2py 2.16.1 is OUT > > Lots of bugs fixes contributed

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Richard Vézina
Here : https://github.com/web2py/web2py/issues/1911 On Tue, Apr 24, 2018 at 11:20 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > Also, to my understanding it only log an error, it no big deal, as long as > the welcome app package is there... What we could do it to log an error > when

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Richard Vézina
Also, to my understanding it only log an error, it no big deal, as long as the welcome app package is there... What we could do it to log an error when there is actually no welcome app pacakge as it break web2py functionality other then that as long as the welcome package is there the only issue

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Richard Vézina
Yes but even then, in the end you don't want to create a new welcome package if it not a new install as it gonna slow things down... So it will end slow down thing and always create an new welcome package, no?? I would leave it like that and add a NEWINSTALL empty file in the repository... We

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-24 Thread Carlos Cesar Caballero Díaz
I think we should check if the file exists before try to delete it. or move the unlik() function to a new "try-except" block, something like: if welcome.w2p is correctly created:     try:     os.unlink('NEWINSTALL')     except FileNotFoundError:     nothing to do     except:   

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
Actually it already inside a try... And it only logging an error... Should this be an error or a warning?? I guess this is done for the appadmin to allow it to create new app as it base on welcome... The welcome template is provision at first web2py run once install and derived from the welcome

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
I guess we could had a simple "try" there... Richard On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina wrote: > Yeah this file is not there when we clone web2py... But I just check and > it's there when you download web2py build from web2py.com... > > What's weird

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
Yeah this file is not there when we clone web2py... But I just check and it's there when you download web2py build from web2py.com... What's weird is that I didn't have the issue... Richard On Mon, Apr 23, 2018 at 12:39 PM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote:

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz
Ok, I have found the issue: Traceback (most recent call last):   File "/home/carlos.caballero/test/w2ptest/gluon/fileutils.py", line 270, in create_welcome_w2p     os.unlink('NEWINSTALL') FileNotFoundError: [Errno 2] No such file or

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz
Hi, after replacing there are no changes, the message appears again. I have also noted that in my system is happening with python 2.7 too. El 23/04/18 a las 11:48, Richard Vézina escribió: In gluon/fileutil.py Richard On Mon, Apr 23, 2018 at 11:47 AM, Richard Vézina

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
In gluon/fileutil.py Richard On Mon, Apr 23, 2018 at 11:47 AM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > The python3 welcome.w2p creation issue?? > > I think it a dependency issue that might be obufuscated by _compat.py > > You can try to replace this line : > >

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Richard Vézina
The python3 welcome.w2p creation issue?? I think it a dependency issue that might be obufuscated by _compat.py You can try to replace this line : w2p_pack('welcome.w2p', 'applications/welcome') By w2p_pack('welcome.w2p', 'applications', 'welcome') And report here if it help... Richard On

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-23 Thread Carlos Cesar Caballero Díaz
I have the same issue, using the current master branch in Ubuntu. Greetings. El 21/04/18 a las 08:21, Richard Vézina escribió: Actually I can't reproduced... It could it be a permission error?? Try to clone it fresh some where you have full access with this command : git clone --recursive

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
Actually I can't reproduced... It could it be a permission error?? Try to clone it fresh some where you have full access with this command : git clone --recursive https://github.com/web2py/web2py.git Then cd web2py python3 web2py.py Enter password Richard On Sat, Apr 21, 2018 at 8:01 AM,

Re: [web2py] Re: web2py 2.16.1 is OUT

2018-04-21 Thread Richard Vézina
Can you open an issue? I think it related to this : https://github.com/web2py/web2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fileutils.py#L269 Path string that has to be manipulated differently in python 3 Explanation https://www.scivision.co/python-idiomatic-pathlib-use/ On Fri,

[web2py] Re: web2py 2.16.1 is OUT

2018-04-20 Thread lyn2py
I just git cloned the latest web2py and started it up with *python3* Version 2.16.1-stable+timestamp.2018.03.08.10.23.01 Database drivers available: sqlite3, imaplib, pymysql, pyodbc I got this error in console ERROR:root:New installation error: unable to create welcome.w2p file When I quit the

[web2py] Re: web2py 2.16.1 is OUT

2018-01-04 Thread tim . nyborg
My interim solution for computed fields is to set writable=False. It's fixed problems with form submission. On Tuesday, 2 January 2018 19:02:30 UTC, José Leite wrote: > > It seems that compute fields are not working anymore with web2py 2.16.1. > Can not generate thumbnails anymore. > > Is there

[web2py] Re: web2py 2.16.1 is OUT

2018-01-02 Thread José Leite
It seems that compute fields are not working anymore with web2py 2.16.1. Can not generate thumbnails anymore. Is there a fix for that? terça-feira, 14 de Novembro de 2017 às 05:59:52 UTC, Massimo Di Pierro escreveu: > > web2py 2.16.1 is OUT > > Lots of bugs fixes contributed by the community.

[web2py] Re: web2py 2.16.1 is OUT

2017-11-26 Thread icodk
I have a compute field (from the web2py book): Field('full_name',compute=lambda r: r['first_name']+' '+r['last_name']), as an extra field in the auth.settings.extra_fields['auth_user'] This worked fine in 2.14.06 but in version 2.16.1 it prevents the profile form to be submitted Any idea

[web2py] Re: web2py 2.16.1 is OUT

2017-11-17 Thread Daniel Vogel

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-16 Thread Junior Phanter
Sorry, the problem also occurs in the new appdmin. [image: Imagem inline 1] after submit: [image: Imagem inline 2] after refresh: [image: Imagem inline 3] 2017-11-16 19:01 GMT-03:00 Junior Phanter : > problem on *edit record* using *custom forms* and *compute field*. >

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-16 Thread Junior Phanter
problem on *edit record* using *custom forms* and *compute field*. In old appadmin there is the same problem, however, just replace the old appadmin with the new one and it works. In the old version of appadmin, in one edition, the value of the compute field was not shown, and in the current

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-16 Thread Yoel Benítez Fonseca
Massimo, i have tried but can't reproduce the error, maybe this was my bad. Sorry for the trouble. On Tue, 14 Nov 2017 11:33:15 -0800 (PST) Massimo Di Pierro wrote: > Can you send me a simple app to reproduce the problem. > > On Tuesday, 14 November 2017 12:20:03

[web2py] Re: web2py 2.16.1 is OUT

2017-11-16 Thread Leonel Câmara
Bootstrap 4 dropped the bootstrap 3 included glyphicons. You need to use fontawesome or something like that and give a ui dict to grid with the proper classes to use. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: web2py 2.16.1 is OUT

2017-11-16 Thread 黄祥
just want to have access key like in previous version, now i used the default welcome menu btw just tested grid and smartgrid, showbuttontext = False, the icon is disappear *controllers/default.py* @auth.requires_login() def manage_users(): grid = SQLFORM.grid(db.auth_user, showbuttontext =

[web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Leonel Câmara
You can use this to render the menu, just put the function in a model (or in a module and import it in the model) and replace line 43-60 of layout.html with {{=BS4MENU(response.menu)}} It changes your LI(_class='divider') to LI(_class='dropdown-divider') to work with BS4 def BS4MENU(data,

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread 黄祥
yes, comment or delete the LI(_class = "divider") solve the problem, thank you massimo in previous version the menu can be created with *models/menu.py* if auth.user: response.menu += [ (SPAN(T('Settings'), _title = T('Settings') ), False, URL('settings', 'index'), [

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Alfonso de la Guarda
El 14 nov. 2017 2:05 AM, "Massimo Di Pierro" escribió: > I suspect you have two web2py running. Or maybe on update it did not > correctly unzip. Can you try kill all and restart? > > On Tuesday, 14 November 2017 00:15:12 UTC-6, Kiran Subbaraman wrote: >> >> Thanks for

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Massimo Di Pierro
Can you send me a simple app to reproduce the problem. On Tuesday, 14 November 2017 12:20:03 UTC-6, Yoel Benitez Fonseca wrote: > > Got some strange result after the updates... im ussing pytest for > testing and the was a test for a submit form with was working últil > the update, the model: >

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Yoel Benitez Fonseca
Got some strange result after the updates... im ussing pytest for testing and the was a test for a submit form with was working últil the update, the model: db.define_table( 'producto', Field('nombre', 'string', length=50, unique=True, label='Nombre:'),

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread Massimo Di Pierro
check your models/menu.py you may have separators in the menu. The new layout does not support them. On Tuesday, 14 November 2017 02:22:51 UTC-6, 黄祥 wrote: > > *Traceback (most recent call last):* > File "/Users/MacBookPro/project/python/web2py/gluon/restricted.py", line > 219, in restricted

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread 黄祥
*Traceback (most recent call last):* File "/Users/sugizo/project/python/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/Users/sugizo/project/python/web2py/applications/test/controllers/install_demo.py", line 490, in File

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-14 Thread 黄祥
*Traceback (most recent call last):* File "/Users/MacBookPro/project/python/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/Users/MacBookPro/project/python/web2py/applications/test/views/default/index.html", line 60, in File

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread 黄祥
forget it, just the variable name, old version use myconf, while in the recent version use configuration for appconfig best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread 黄祥
Traceback (most recent call last): File "/Users/MacBookPro/project/python/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/Users/MacBookPro/project/python/web2py/applications/test/views/default/user.html", line 129, in NameError: name

Re: [web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread Kiran Subbaraman
I don't have any other web2py instance running, or in the same path. I tried this with the web2py Windows installer (web2py_win, web2py.exe), and see the same issue. When I try to start web2py again, I see this error `ERROR:root:New installation error: unable to create welcome.w2p file`, and

[web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread Massimo Di Pierro
I suspect you have two web2py running. Or maybe on update it did not correctly unzip. Can you try kill all and restart? On Tuesday, 14 November 2017 00:15:12 UTC-6, Kiran Subbaraman wrote: > > Thanks for the new version. > > Downloaded web2py_src from web2py.com, for Windows. Extracted, and ran

[web2py] Re: web2py 2.16.1 is OUT

2017-11-13 Thread Kiran Subbaraman
Thanks for the new version. Downloaded web2py_src from web2py.com, for Windows. Extracted, and ran `python web2py.py`. In the browser see this message *"Requires web2py 2.15.5 or newer" . *Not sure what the issue is? Python 2.7.12 Windows 10 web2py Web Framework Created by Massimo Di Pierro,