[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, level)
ModuleNotFoundError: No module named 'test_callback'

the same code running well in python 2.7.10, btw python 3 installed in 
ampps and added to the $PATH
export PATH="/Applications/AMPPS/python/bin:$PATH"

best regards,
stifan

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 ticket for py3 soon. Thank you 
for looking into it!

On Sunday, May 6, 2018 at 10:59:04 AM UTC+8, Massimo Di Pierro wrote:
>
> 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 14, 2017 at 1:59:52 PM UTC+8, Massimo Di Pierro 
>> wrote:
>>>
>>> web2py 2.16.1 is OUT
>>>
>>> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, 
>>> Giovanni, and all those who contributed.
>>>
>>> the most visible changes are:
>>>
>>> - welcome now defaults to bootstrap 4
>>> - lots of cleanup in the welcome app and new examples in default.py
>>> - simplified layout.html
>>>
>>> Massimo 
>>>
>>>
>>>
>>>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 14, 2017 at 1:59:52 PM UTC+8, Massimo Di Pierro wrote:
>>
>> web2py 2.16.1 is OUT
>>
>> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, 
>> Giovanni, and all those who contributed.
>>
>> the most visible changes are:
>>
>> - welcome now defaults to bootstrap 4
>> - lots of cleanup in the welcome app and new examples in default.py
>> - simplified layout.html
>>
>> Massimo 
>>
>>
>>
>>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 by the community. Thanks Leonel, Paolo, 
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo 
>
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 is that it will be out dated which is not ideal, but might be
> better then having a broken app creation utility...
>
> I open an issue..
>
> Richard
>
> On Tue, Apr 24, 2018 at 11:09 AM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>> 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 definetly open an issue...
>>
>> Richard
>>
>> On Tue, Apr 24, 2018 at 8:51 AM, Carlos Cesar Caballero Díaz <
>> carlos.caball...@cfg.jovenclub.cu> wrote:
>>
>>> 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:
>>>
>>> error removing 'NEWINSTALL' file
>>>
>>>
>>> Greetings.
>>>
>>> El 23/04/18 a las 13:33, Richard Vézina escribió:
>>>
>>> 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 app...
>>>
>>> I guess it wouldn't be a good solution to track this NEWINSTALL file in
>>> the repo, as it could trigger some other issue... But at the same time, if
>>> you manage your web2py install with git, it might just make sens that
>>> whenever you update your local repo, that this file get recreated and the
>>> template being updated??
>>>
>>> Richard
>>>
>>> On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina <
>>> ml.richard.vez...@gmail.com> wrote:
>>>
 I guess we could had a simple "try" there...

 Richard

 On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina <
 ml.richard.vez...@gmail.com> 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 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:
>
>> 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 directory: 'NEWINSTALL'
>> 
>>
>> 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 <
>> 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 :
>>>
>>> w2p_pack('welcome.w2p', 'applications/welcome')
>>>
>>> By
>>>
>>> w2p_pack('welcome.w2p', 'applications', 'welcome')
>>>
>>> And report here if it help...
>>>
>>> Richard
>>>
>>> On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
>>> carlos.caball...@cfg.jovenclub.cu> wrote:
>>>
 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 https://github.com/web2py/web2py.git

 Then

 cd web2py
 python3 web2py.py

 Enter password


 Richard

 On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
 ml.richard.vez...@gmail.com> wrote:

> Can you open an issue?
>
> I think it related to this : https://github.com/web2py/we

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 is that it will be out dated which is not ideal, but might be
better then having a broken app creation utility...

I open an issue..

Richard

On Tue, Apr 24, 2018 at 11:09 AM, Richard Vézina <
ml.richard.vez...@gmail.com> wrote:

> 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 definetly open an issue...
>
> Richard
>
> On Tue, Apr 24, 2018 at 8:51 AM, Carlos Cesar Caballero Díaz <
> carlos.caball...@cfg.jovenclub.cu> wrote:
>
>> 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:
>>
>> error removing 'NEWINSTALL' file
>>
>>
>> Greetings.
>>
>> El 23/04/18 a las 13:33, Richard Vézina escribió:
>>
>> 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 app...
>>
>> I guess it wouldn't be a good solution to track this NEWINSTALL file in
>> the repo, as it could trigger some other issue... But at the same time, if
>> you manage your web2py install with git, it might just make sens that
>> whenever you update your local repo, that this file get recreated and the
>> template being updated??
>>
>> Richard
>>
>> On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina <
>> ml.richard.vez...@gmail.com> wrote:
>>
>>> I guess we could had a simple "try" there...
>>>
>>> Richard
>>>
>>> On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina <
>>> ml.richard.vez...@gmail.com> 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 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:

> 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 directory: 'NEWINSTALL'
> 
>
> 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 <
> 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 :
>>
>> w2p_pack('welcome.w2p', 'applications/welcome')
>>
>> By
>>
>> w2p_pack('welcome.w2p', 'applications', 'welcome')
>>
>> And report here if it help...
>>
>> Richard
>>
>> On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
>> carlos.caball...@cfg.jovenclub.cu> wrote:
>>
>>> 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 https://github.com/web2py/web2py.git
>>>
>>> Then
>>>
>>> cd web2py
>>> python3 web2py.py
>>>
>>> Enter password
>>>
>>>
>>> Richard
>>>
>>> On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
>>> ml.richard.vez...@gmail.com> wrote:
>>>
 Can you open an issue?

 I think it related to this : https://github.com/web2py/we
 b2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fil
 eutils.py#L269

 Path string that has to be manipulated differently in python 3

 Explanation

 https://www.scivision.co/python-idiomatic-pathlib-use/

 On Fri, Apr 

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 definetly open an issue...

Richard

On Tue, Apr 24, 2018 at 8:51 AM, Carlos Cesar Caballero Díaz <
carlos.caball...@cfg.jovenclub.cu> wrote:

> 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:
>
> error removing 'NEWINSTALL' file
>
>
> Greetings.
>
> El 23/04/18 a las 13:33, Richard Vézina escribió:
>
> 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
> app...
>
> I guess it wouldn't be a good solution to track this NEWINSTALL file in
> the repo, as it could trigger some other issue... But at the same time, if
> you manage your web2py install with git, it might just make sens that
> whenever you update your local repo, that this file get recreated and the
> template being updated??
>
> Richard
>
> On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>> I guess we could had a simple "try" there...
>>
>> Richard
>>
>> On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina <
>> ml.richard.vez...@gmail.com> 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 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:
>>>
 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 directory: 'NEWINSTALL'
 

 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 <
 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 :
>
> w2p_pack('welcome.w2p', 'applications/welcome')
>
> By
>
> w2p_pack('welcome.w2p', 'applications', 'welcome')
>
> And report here if it help...
>
> Richard
>
> On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
> carlos.caball...@cfg.jovenclub.cu> wrote:
>
>> 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 https://github.com/web2py/web2py.git
>>
>> Then
>>
>> cd web2py
>> python3 web2py.py
>>
>> Enter password
>>
>>
>> Richard
>>
>> On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
>> ml.richard.vez...@gmail.com> wrote:
>>
>>> Can you open an issue?
>>>
>>> I think it related to this : https://github.com/web2py/we
>>> b2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fil
>>> eutils.py#L269
>>>
>>> Path string that has to be manipulated differently in python 3
>>>
>>> Explanation
>>>
>>> https://www.scivision.co/python-idiomatic-pathlib-use/
>>>
>>> On Fri, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:
>>>
 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 python server and restart with python2 or python3,
 the error does not come up anymore.




 On Tuesday, November 14, 2017 at 1:59:52 PM UTC+8, Massimo Di
 Pierro wrote:
>

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:

    error removing 'NEWINSTALL' file


Greetings.


El 23/04/18 a las 13:33, Richard Vézina escribió:
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 app...


I guess it wouldn't be a good solution to track this NEWINSTALL file 
in the repo, as it could trigger some other issue... But at the same 
time, if you manage your web2py install with git, it might just make 
sens that whenever you update your local repo, that this file get 
recreated and the template being updated??


Richard

On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina 
> wrote:


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 is that I didn't have the issue...

Richard

On Mon, Apr 23, 2018 at 12:39 PM, Carlos Cesar Caballero Díaz
> wrote:

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 directory:
'NEWINSTALL'


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
> 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 :

w2p_pack('welcome.w2p', 'applications/welcome')

By

w2p_pack('welcome.w2p', 'applications', 'welcome')

And report here if it help...

Richard

On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar
Caballero Díaz > wrote:

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
https://github.com/web2py/web2py.git


Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina
> wrote:

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, Apr 20, 2018 at 9:15 PM, lyn2py
>
wrote:

I just git 

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
app...

I guess it wouldn't be a good solution to track this NEWINSTALL file in the
repo, as it could trigger some other issue... But at the same time, if you
manage your web2py install with git, it might just make sens that whenever
you update your local repo, that this file get recreated and the template
being updated??

Richard

On Mon, Apr 23, 2018 at 1:28 PM, Richard Vézina  wrote:

> I guess we could had a simple "try" there...
>
> Richard
>
> On Mon, Apr 23, 2018 at 1:26 PM, Richard Vézina <
> ml.richard.vez...@gmail.com> 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 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:
>>
>>> 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 directory: 'NEWINSTALL'
>>> 
>>>
>>> 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 <
>>> 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 :

 w2p_pack('welcome.w2p', 'applications/welcome')

 By

 w2p_pack('welcome.w2p', 'applications', 'welcome')

 And report here if it help...

 Richard

 On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
 carlos.caball...@cfg.jovenclub.cu> wrote:

> 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 https://github.com/web2py/web2py.git
>
> Then
>
> cd web2py
> python3 web2py.py
>
> Enter password
>
>
> Richard
>
> On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>> Can you open an issue?
>>
>> I think it related to this : https://github.com/web2py/we
>> b2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fil
>> eutils.py#L269
>>
>> Path string that has to be manipulated differently in python 3
>>
>> Explanation
>>
>> https://www.scivision.co/python-idiomatic-pathlib-use/
>>
>> On Fri, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:
>>
>>> 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 python server and restart with python2 or python3,
>>> the error does not come up anymore.
>>>
>>>
>>>
>>>
>>> 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 by the community. Thanks Leonel,
 Paolo, Giovanni, and all those who contributed.

 the most visible changes are:

 - welcome now defaults to bootstrap 4
 - lots of cleanup in the welcome app and new examples in default.py
 - simplified layout.html

 Massimo



 --
>>> 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)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
> --

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 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:
>
>> 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 directory: 'NEWINSTALL'
>> 
>>
>> 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 <
>> 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 :
>>>
>>> w2p_pack('welcome.w2p', 'applications/welcome')
>>>
>>> By
>>>
>>> w2p_pack('welcome.w2p', 'applications', 'welcome')
>>>
>>> And report here if it help...
>>>
>>> Richard
>>>
>>> On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
>>> carlos.caball...@cfg.jovenclub.cu> wrote:
>>>
 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 https://github.com/web2py/web2py.git

 Then

 cd web2py
 python3 web2py.py

 Enter password


 Richard

 On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
 ml.richard.vez...@gmail.com> wrote:

> Can you open an issue?
>
> I think it related to this : https://github.com/web2py/we
> b2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fil
> eutils.py#L269
>
> Path string that has to be manipulated differently in python 3
>
> Explanation
>
> https://www.scivision.co/python-idiomatic-pathlib-use/
>
> On Fri, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:
>
>> 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 python server and restart with python2 or python3,
>> the error does not come up anymore.
>>
>>
>>
>>
>> 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 by the community. Thanks Leonel,
>>> Paolo, Giovanni, and all those who contributed.
>>>
>>> the most visible changes are:
>>>
>>> - welcome now defaults to bootstrap 4
>>> - lots of cleanup in the welcome app and new examples in default.py
>>> - simplified layout.html
>>>
>>> Massimo
>>>
>>>
>>>
>>> --
>> 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)
>> ---
>> You received this message because you are subscribed to the Google
>> Groups "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
 --
 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)
 ---
 You received this message because you are subscribed to the Google
 Groups "web2py-users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


 --
 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)
 ---
 You received this message because you are subscribed to the Google
 Groups "web2py-users" group.

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:

> 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 directory: 'NEWINSTALL'
> 
>
> 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 <
> 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 :
>>
>> w2p_pack('welcome.w2p', 'applications/welcome')
>>
>> By
>>
>> w2p_pack('welcome.w2p', 'applications', 'welcome')
>>
>> And report here if it help...
>>
>> Richard
>>
>> On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
>> carlos.caball...@cfg.jovenclub.cu> wrote:
>>
>>> 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 https://github.com/web2py/web2py.git
>>>
>>> Then
>>>
>>> cd web2py
>>> python3 web2py.py
>>>
>>> Enter password
>>>
>>>
>>> Richard
>>>
>>> On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
>>> ml.richard.vez...@gmail.com> wrote:
>>>
 Can you open an issue?

 I think it related to this : https://github.com/web2py/we
 b2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fil
 eutils.py#L269

 Path string that has to be manipulated differently in python 3

 Explanation

 https://www.scivision.co/python-idiomatic-pathlib-use/

 On Fri, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:

> 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 python server and restart with python2 or python3, the
> error does not come up anymore.
>
>
>
>
> 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 by the community. Thanks Leonel,
>> Paolo, Giovanni, and all those who contributed.
>>
>> the most visible changes are:
>>
>> - welcome now defaults to bootstrap 4
>> - lots of cleanup in the welcome app and new examples in default.py
>> - simplified layout.html
>>
>> Massimo
>>
>>
>>
>> --
> 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)
> ---
> You received this message because you are subscribed to the Google
> Groups "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


>>> --
>>> 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)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> 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)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - 

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 directory: 'NEWINSTALL'


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 
> 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 :

w2p_pack('welcome.w2p', 'applications/welcome')

By

w2p_pack('welcome.w2p', 'applications', 'welcome')

And report here if it help...

Richard

On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz
> wrote:

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 https://github.com/web2py/web2py.git


Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina
> wrote:

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, Apr 20, 2018 at 9:15 PM, lyn2py > wrote:

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:Newinstallation error:unable to create
welcome.w2p file
|

When I quit the python server and restart with
python2 or python3, the error does not come up anymore.




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 by the community.
Thanks Leonel, Paolo, Giovanni, and all those who
contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new
examples in default.py
- simplified layout.html

Massimo



-- 
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)
---
You received this message because you are subscribed
to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
web2py+unsubscr...@googlegroups.com
.
For more options, visit
https://groups.google.com/d/optout
.



-- 
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)
---
You received this 

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 
> 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 :

w2p_pack('welcome.w2p', 'applications/welcome')

By

w2p_pack('welcome.w2p', 'applications', 'welcome')

And report here if it help...

Richard

On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz
> wrote:

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 https://github.com/web2py/web2py.git


Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina
> wrote:

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, Apr 20, 2018 at 9:15 PM, lyn2py > wrote:

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:Newinstallation error:unable to create
welcome.w2p file
|

When I quit the python server and restart with
python2 or python3, the error does not come up anymore.




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 by the community.
Thanks Leonel, Paolo, Giovanni, and all those who
contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new
examples in default.py
- simplified layout.html

Massimo



-- 
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)
---
You received this message because you are subscribed
to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving
emails from it, send an email to
web2py+unsubscr...@googlegroups.com
.
For more options, visit
https://groups.google.com/d/optout
.



-- 
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)
---
You received this message because you are subscribed to the
Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to web2py+unsubscr...@googlegroups.com

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 :
>
> w2p_pack('welcome.w2p', 'applications/welcome')
>
> By
>
> w2p_pack('welcome.w2p', 'applications', 'welcome')
>
> And report here if it help...
>
> Richard
>
> On Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
> carlos.caball...@cfg.jovenclub.cu> wrote:
>
>> 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 https://github.com/web2py/web2py.git
>>
>> Then
>>
>> cd web2py
>> python3 web2py.py
>>
>> Enter password
>>
>>
>> Richard
>>
>> On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
>> ml.richard.vez...@gmail.com> wrote:
>>
>>> Can you open an issue?
>>>
>>> I think it related to this : https://github.com/web2py/we
>>> b2py/blob/fb4c114d85494ad6d79d69539adaae103d76e5ce/gluon/fil
>>> eutils.py#L269
>>>
>>> Path string that has to be manipulated differently in python 3
>>>
>>> Explanation
>>>
>>> https://www.scivision.co/python-idiomatic-pathlib-use/
>>>
>>> On Fri, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:
>>>
 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 python server and restart with python2 or python3, the
 error does not come up anymore.




 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 by the community. Thanks Leonel, Paolo,
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo
>
>
>
> --
 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)
 ---
 You received this message because you are subscribed to the Google
 Groups "web2py-users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>> --
>> 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)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Mon, Apr 23, 2018 at 11:42 AM, Carlos Cesar Caballero Díaz <
carlos.caball...@cfg.jovenclub.cu> wrote:

> 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 https://github.com/web2py/web2py.git
>
> Then
>
> cd web2py
> python3 web2py.py
>
> Enter password
>
>
> Richard
>
> On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina <
> ml.richard.vez...@gmail.com> wrote:
>
>> Can you open an issue?
>>
>> I think it related to this : https://github.com/web2py/we
>> b2py/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, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:
>>
>>> 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 python server and restart with python2 or python3, the
>>> error does not come up anymore.
>>>
>>>
>>>
>>>
>>> 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 by the community. Thanks Leonel, Paolo,
 Giovanni, and all those who contributed.

 the most visible changes are:

 - welcome now defaults to bootstrap 4
 - lots of cleanup in the welcome app and new examples in default.py
 - simplified layout.html

 Massimo



 --
>>> 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)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
> --
> 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)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 https://github.com/web2py/web2py.git

Then

cd web2py
python3 web2py.py

Enter password


Richard

On Sat, Apr 21, 2018 at 8:01 AM, Richard Vézina 
> wrote:


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, Apr 20, 2018 at 9:15 PM, lyn2py > wrote:

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:Newinstallation error:unable to create welcome.w2p file
|

When I quit the python server and restart with python2 or
python3, the error does not come up anymore.




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 by the community. Thanks
Leonel, Paolo, Giovanni, and all those who contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new examples in
default.py
- simplified layout.html

Massimo



-- 
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)
---
You received this message because you are subscribed to the
Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to web2py+unsubscr...@googlegroups.com
.
For more options, visit https://groups.google.com/d/optout
.



--
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)
---
You received this message because you are subscribed to the Google 
Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to web2py+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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)
--- 
You received this message because you are subscribed to the Google Groups "web2py-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, Richard Vézina  wrote:

> 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, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:
>
>> 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 python server and restart with python2 or python3, the
>> error does not come up anymore.
>>
>>
>>
>>
>> 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 by the community. Thanks Leonel, Paolo,
>>> Giovanni, and all those who contributed.
>>>
>>> the most visible changes are:
>>>
>>> - welcome now defaults to bootstrap 4
>>> - lots of cleanup in the welcome app and new examples in default.py
>>> - simplified layout.html
>>>
>>> Massimo
>>>
>>>
>>>
>>> --
>> 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)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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, Apr 20, 2018 at 9:15 PM, lyn2py  wrote:

> 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 python server and restart with python2 or python3, the
> error does not come up anymore.
>
>
>
>
> 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 by the community. Thanks Leonel, Paolo,
>> Giovanni, and all those who contributed.
>>
>> the most visible changes are:
>>
>> - welcome now defaults to bootstrap 4
>> - lots of cleanup in the welcome app and new examples in default.py
>> - simplified layout.html
>>
>> Massimo
>>
>>
>>
>> --
> 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)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 python server and restart with python2 or python3, the 
error does not come up anymore.




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 by the community. Thanks Leonel, Paolo, 
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo 
>
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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. Thanks Leonel, Paolo, 
>> Giovanni, and all those who contributed.
>>
>> the most visible changes are:
>>
>> - welcome now defaults to bootstrap 4
>> - lots of cleanup in the welcome app and new examples in default.py
>> - simplified layout.html
>>
>> Massimo 
>>
>>
>>
>>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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. Thanks Leonel, Paolo, 
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo 
>
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
(linux nginx etc)

On Tuesday, November 14, 2017 at 6:59:52 AM UTC+1, Massimo Di Pierro wrote:
>
> web2py 2.16.1 is OUT
>
> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, 
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo 
>
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: web2py 2.16.1 is OUT

2017-11-17 Thread Daniel Vogel








New web2py (2.16.1) installation on Ubuntu 16.04 with Firefox 57.0.
Rendering issues:
- Picture 1 no action with mouse click
- Picture 2 missing + -


On Tuesday, November 14, 2017 at 6:59:52 AM UTC+1, Massimo Di Pierro wrote:
>
> web2py 2.16.1 is OUT
>
> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, 
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo 
>
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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*.
>
> 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 version there was change, I believe the problem is there. In
> custom form, compute field is not a gluon component, but a string.
>
> edit record1:
> [image: Imagem inline 2]
> error on submit:
>
> in console: print form.errors
> ​[image: Imagem inline 1]
>
> mysum is a compute Field
>
> my model:
>
> def mysum(a,b):
> a=int(a)
> b=int(b)
> return a+b
> db.define_table('mytable',
> Field('number1','integer'),
> Field('number2','integer'),
> Field('mysum', 'integer', compute=lambda row:
> mysum(row['number1'], row['number2']))
> )
>
> my controller:
>
> def index():
> if request.args(0):
> form=SQLFORM(db.mytable, request.args(0)).process()
> else:
> form=SQLFORM(db.mytable).process()
> if form.accepted:
> response.flash="Ok"
> else:
> print form.errors
> response.falsh=form.errors
> return dict(form=form)
>
> my view:
>
> {{extend 'layout.html'}}
>
> {{block header}}
> 
>   /{{=request.application}}/{{=request.controller}}/{{=
> request.function}}
> 
> {{end}}
>
> {{=form.custom.begin}}
> Number1
> {{=form.custom.widget.number1}}
> 
> Number2
> {{=form.custom.widget.number2}}
> 
> {{=form.custom.submit}}
> {{=form.custom.end}}
>
> 2017-11-16 14:29 GMT-03:00 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 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:
>> > >
>> > > db.define_table(
>> > > 'producto',
>> > > Field('nombre', 'string', length=50, unique=True,
>> > > label='Nombre:'),
>> > > Field('tipo_producto_id', 'reference tipo_producto',
>> > > label='Tipo:'),
>> > > Field('precio', 'float', label='Precio:'),
>> > > Field('descripcion', 'text', length=1250,
>> > > label='Descripción:'), Field('imagen', 'upload', label='Imagen:'),
>> > > Field('thumb', 'upload', writable=False, readable=False),
>> > > format='%(nombre)s')
>> > >
>> > > The test will fail for db.tipo_producto_id allowing not in db
>> > > referenceuntil i got the to the code and explicity put the
>> > > validator:
>> > >
>> > > db.producto.tipo_producto_id.requires = IS_IN_DB(
>> > > db, 'tipo_producto.id', '%(nombre)s'
>> > > )
>> > >
>> > > idk what was that about... other models defined on the app and not
>> > > defining explicid validator work as usual.
>> > >
>> > > 2017-11-14 10:01 GMT-05:00 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
>> > > >> exec(ccode, environment)
>> > > >>   File
>> > > >>
>> > > "/Users/MacBookPro/project/python/web2py/applications/test/
>> views/default/index.html",
>> > >
>> > > >> line 60, in 
>> > > >>   File "/Users/MacBookPro/project/python/web2py/gluon/html.py",
>> > > >> line
>> > > 783,
>> > > >> in __getitem__
>> > > >> return self.components[i]
>> > > >> IndexError: list index out of range
>> > > >>
>> > > >> views/default/index.html
>> > > >> {{extend 'layout.html'}}
>> > > >> {{include 'templates/index/index.html'}}
>> > > >>
>> > > >> views/templates/index/index.html
>> > > >> {{=H1(T('Test'), _align = 'Center' ) }}
>> > > >>
>> > > >> code in traceback line 60 is italic and bold:
>> > > >> for _item in response.menu or []:
>> > > >> response.write('\n  ', escape=False)
>> > > >> if len(_item)<4 or not _item[3]:
>> > > >> response.write('\n  \n> > > >> href="', escape=False)
>> > > >> response.write(_item[2])
>> > > >> response.write('">', escape=False)
>> > > >> 

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 version there was change, I believe the problem is there. In custom
form, compute field is not a gluon component, but a string.

edit record1:
[image: Imagem inline 2]
error on submit:

in console: print form.errors
​[image: Imagem inline 1]

mysum is a compute Field

my model:

def mysum(a,b):
a=int(a)
b=int(b)
return a+b
db.define_table('mytable',
Field('number1','integer'),
Field('number2','integer'),
Field('mysum', 'integer', compute=lambda row:
mysum(row['number1'], row['number2']))
)

my controller:

def index():
if request.args(0):
form=SQLFORM(db.mytable, request.args(0)).process()
else:
form=SQLFORM(db.mytable).process()
if form.accepted:
response.flash="Ok"
else:
print form.errors
response.falsh=form.errors
return dict(form=form)

my view:

{{extend 'layout.html'}}

{{block header}}


/{{=request.application}}/{{=request.controller}}/{{=request.function}}

{{end}}

{{=form.custom.begin}}
Number1
{{=form.custom.widget.number1}}

Number2
{{=form.custom.widget.number2}}

{{=form.custom.submit}}
{{=form.custom.end}}

2017-11-16 14:29 GMT-03:00 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 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:
> > >
> > > db.define_table(
> > > 'producto',
> > > Field('nombre', 'string', length=50, unique=True,
> > > label='Nombre:'),
> > > Field('tipo_producto_id', 'reference tipo_producto',
> > > label='Tipo:'),
> > > Field('precio', 'float', label='Precio:'),
> > > Field('descripcion', 'text', length=1250,
> > > label='Descripción:'), Field('imagen', 'upload', label='Imagen:'),
> > > Field('thumb', 'upload', writable=False, readable=False),
> > > format='%(nombre)s')
> > >
> > > The test will fail for db.tipo_producto_id allowing not in db
> > > referenceuntil i got the to the code and explicity put the
> > > validator:
> > >
> > > db.producto.tipo_producto_id.requires = IS_IN_DB(
> > > db, 'tipo_producto.id', '%(nombre)s'
> > > )
> > >
> > > idk what was that about... other models defined on the app and not
> > > defining explicid validator work as usual.
> > >
> > > 2017-11-14 10:01 GMT-05:00 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
> > > >> exec(ccode, environment)
> > > >>   File
> > > >>
> > > "/Users/MacBookPro/project/python/web2py/applications/
> test/views/default/index.html",
> > >
> > > >> line 60, in 
> > > >>   File "/Users/MacBookPro/project/python/web2py/gluon/html.py",
> > > >> line
> > > 783,
> > > >> in __getitem__
> > > >> return self.components[i]
> > > >> IndexError: list index out of range
> > > >>
> > > >> views/default/index.html
> > > >> {{extend 'layout.html'}}
> > > >> {{include 'templates/index/index.html'}}
> > > >>
> > > >> views/templates/index/index.html
> > > >> {{=H1(T('Test'), _align = 'Center' ) }}
> > > >>
> > > >> code in traceback line 60 is italic and bold:
> > > >> for _item in response.menu or []:
> > > >> response.write('\n  ', escape=False)
> > > >> if len(_item)<4 or not _item[3]:
> > > >> response.write('\n  \n > > >> href="', escape=False)
> > > >> response.write(_item[2])
> > > >> response.write('">', escape=False)
> > > >> response.write(_item[0])
> > > >> response.write('\n  \n  ',
> > > escape=False)
> > > >> else:
> > > >> response.write('\n  \n  > > >> aria-haspopup="true" aria-expanded="false">', escape=False)
> > > >> response.write(_item[0])
> > > >> response.write('\n > > >> class="dropdown-menu">\n ', escape=False)
> > > >> for _subitem in _item[3]:
> > > >> 

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 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: 
> >
> > db.define_table( 
> > 'producto', 
> > Field('nombre', 'string', length=50, unique=True, 
> > label='Nombre:'), 
> > Field('tipo_producto_id', 'reference tipo_producto', 
> > label='Tipo:'), 
> > Field('precio', 'float', label='Precio:'), 
> > Field('descripcion', 'text', length=1250,
> > label='Descripción:'), Field('imagen', 'upload', label='Imagen:'), 
> > Field('thumb', 'upload', writable=False, readable=False), 
> > format='%(nombre)s') 
> >
> > The test will fail for db.tipo_producto_id allowing not in db 
> > referenceuntil i got the to the code and explicity put the 
> > validator: 
> >
> > db.producto.tipo_producto_id.requires = IS_IN_DB( 
> > db, 'tipo_producto.id', '%(nombre)s' 
> > ) 
> >
> > idk what was that about... other models defined on the app and not 
> > defining explicid validator work as usual. 
> >
> > 2017-11-14 10:01 GMT-05:00 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 
> > >> exec(ccode, environment) 
> > >>   File 
> > >>   
> > "/Users/MacBookPro/project/python/web2py/applications/test/views/default/index.html",
> >  
> >  
> > >> line 60, in  
> > >>   File "/Users/MacBookPro/project/python/web2py/gluon/html.py",
> > >> line   
> > 783,   
> > >> in __getitem__ 
> > >> return self.components[i] 
> > >> IndexError: list index out of range 
> > >> 
> > >> views/default/index.html 
> > >> {{extend 'layout.html'}} 
> > >> {{include 'templates/index/index.html'}} 
> > >> 
> > >> views/templates/index/index.html 
> > >> {{=H1(T('Test'), _align = 'Center' ) }} 
> > >> 
> > >> code in traceback line 60 is italic and bold: 
> > >> for _item in response.menu or []: 
> > >> response.write('\n  ', escape=False) 
> > >> if len(_item)<4 or not _item[3]: 
> > >> response.write('\n  \n > >> href="', escape=False) 
> > >> response.write(_item[2])   
> > >> response.write('">', escape=False)   
> > >> response.write(_item[0]) 
> > >> response.write('\n  \n  ',   
> > escape=False)   
> > >> else: 
> > >> response.write('\n  \n  > >> aria-haspopup="true" aria-expanded="false">', escape=False) 
> > >> response.write(_item[0]) 
> > >> response.write('\n > >> class="dropdown-menu">\n ', escape=False) 
> > >> for _subitem in _item[3]: 
> > >> response.write('\n   > >> class="dropdown-item" href="', escape=False) 
> > >> response.write(_subitem[2])   
> > >> response.write('">', escape=False)   
> > >> response.write(_subitem[0]) 
> > >> response.write('\n  ', escape=False) 
> > >> pass 
> > >> response.write('\n\n  \n 
> > >> ', escape=False) 
> > >> pass 
> > >> response.write('\n  ', escape=False) 
> > >> pass   
> > > 
> > > -- 
> > > 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) 
> > > --- 
> > > You received this message because you are subscribed to the
> > > Google   
> > Groups   
> > > "web2py-users" group. 
> > > To unsubscribe from this group and stop receiving emails from it,
> > > send   
> > an   
> > > email to web2py+unsubscr...@googlegroups.com. 
> > > For more options, visit https://groups.google.com/d/optout.   
> >
> >
> >
> > -- 
> > Msc. Yoel Benítez Fonseca 
> > Dpto. Informática. Redacción Adelante 
> > http://www.adelante.cu/ 
> >  
> 

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, 

[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)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 = False)
#grid = SQLFORM.smartgrid(db.auth_user, showbuttontext = False)
return locals()

*inspect in browser (icon disappear but the html code have class 
glyphicon):*




best regards,
stifan

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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, id_prefix='main'):
"""
Used to build menus
"""
from gluon.html import XmlComponent
ul = UL(_class='navbar-nav')
for i, item in enumerate(data):
(name, active, link) = item[:3]
if link:
li = LI(A(name, _href=link, _class='nav-link', _id=
'%s-menu-link-%d' % (id_prefix, i)), _class='nav-item')
else:
li = LI(A(name, _href='#', _class='nav-link', _id=
'%s-menu-link-%d' % (id_prefix, i)), _class='nav-item')
if len(item) > 3 and item[3]:
li['_class'] += ' dropdown'
a = li[0]
a['_class'] += ' dropdown-toggle'
a['_data-toggle'] = 'dropdown'
a['_role'] = 'button'
a['_aria-haspopup'] = 'true'
a['_aria_expanded'] = 'false'
div = DIV(_class='dropdown-menu dropdown-menu-right')
div['_aria-labelledby'] = '%s-menu-link-%d' % (id_prefix, i)
for j, subitem in enumerate(item[3]):
if isinstance(subitem, XmlComponent):
if '_class' in subitem and 'divider' in subitem['_class'
]:
div.append(DIV(_class='dropdown-divider'))
continue

(name, active, link) = subitem[:3]
if link:
a = A(name, _href=link, _class='dropdown-item', _id=
'%s-menu-link-%d-%d' % (id_prefix, i, j))
else:
a = A(name, _href='#', _class='dropdown-item', _id=
'%s-menu-link-%d-%d' % (id_prefix, i, j))
if active:
a['_class'] + ' active'
div.append(a)
li.append(div)

if active:
  li['_class'] += ' active' 
ul.append(li)
return ul



-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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'), [
test_menu.menu_0('Language', '4', 'settings', 'language'),
] ), 
]

*modules/test_menu.py*
from gluon import *
menu_0 = lambda title, accesskey, controller, function: \
('', False, A(current.T(title), _title = current.T('%s (%s)' % (title, 
accesskey) ), 
  _href = URL(controller, function), _accesskey = accesskey) )

result in web browser for menu element in recent version:
Language
expected result like in previous version:
Language

is there any way to achieve it using web2py in recent version?

thanks and best regards,
stifan

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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, Copyright 2007-2017
>> Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
>> Database drivers available: psycopg2, pymysql, imaplib, sqlite3, pg8000,
>> pyodbc, mysqlconnector
>> please visit:
>>  http://127.0.0.1:8000/
>> starting browser...
>>
>>
>>
>>
>> On Tuesday, November 14, 2017 at 11:29:52 AM UTC+5:30, Massimo Di Pierro
>> wrote:
>>>
>>> web2py 2.16.1 is OUT
>>>
>>> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo,
>>> Giovanni, and all those who contributed.
>>>
>>> the most visible changes are:
>>>
>>> - welcome now defaults to bootstrap 4
>>> - lots of cleanup in the welcome app and new examples in default.py
>>> - simplified layout.html
>>>
>>> Massimo
>>>
>>>
>>>
>>> --
> 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)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: 
>
> db.define_table( 
> 'producto', 
> Field('nombre', 'string', length=50, unique=True, 
> label='Nombre:'), 
> Field('tipo_producto_id', 'reference tipo_producto', 
> label='Tipo:'), 
> Field('precio', 'float', label='Precio:'), 
> Field('descripcion', 'text', length=1250, label='Descripción:'), 
> Field('imagen', 'upload', label='Imagen:'), 
> Field('thumb', 'upload', writable=False, readable=False), 
> format='%(nombre)s') 
>
> The test will fail for db.tipo_producto_id allowing not in db 
> referenceuntil i got the to the code and explicity put the 
> validator: 
>
> db.producto.tipo_producto_id.requires = IS_IN_DB( 
> db, 'tipo_producto.id', '%(nombre)s' 
> ) 
>
> idk what was that about... other models defined on the app and not 
> defining explicid validator work as usual. 
>
> 2017-11-14 10:01 GMT-05:00 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 
> >> exec(ccode, environment) 
> >>   File 
> >> 
> "/Users/MacBookPro/project/python/web2py/applications/test/views/default/index.html",
>  
>
> >> line 60, in  
> >>   File "/Users/MacBookPro/project/python/web2py/gluon/html.py", line 
> 783, 
> >> in __getitem__ 
> >> return self.components[i] 
> >> IndexError: list index out of range 
> >> 
> >> views/default/index.html 
> >> {{extend 'layout.html'}} 
> >> {{include 'templates/index/index.html'}} 
> >> 
> >> views/templates/index/index.html 
> >> {{=H1(T('Test'), _align = 'Center' ) }} 
> >> 
> >> code in traceback line 60 is italic and bold: 
> >> for _item in response.menu or []: 
> >> response.write('\n  ', escape=False) 
> >> if len(_item)<4 or not _item[3]: 
> >> response.write('\n  \n', escape=False) 
> >> response.write(_item[0]) 
> >> response.write('\n  \n  ', 
> escape=False) 
> >> else: 
> >> response.write('\n  \n 
> >>  >> aria-expanded="false">', escape=False) 
> >> response.write(_item[0]) 
> >> response.write('\n\n 
> >> ', escape=False) 
> >> for _subitem in _item[3]: 
> >> response.write('\n   >> href="', escape=False) 
> >> response.write(_subitem[2]) 
> >> response.write('">', escape=False) 
> >> response.write(_subitem[0]) 
> >> response.write('\n  ', escape=False) 
> >> pass 
> >> response.write('\n\n  \n 
> >> ', escape=False) 
> >> pass 
> >> response.write('\n  ', escape=False) 
> >> pass 
> > 
> > -- 
> > 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) 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "web2py-users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to web2py+unsubscr...@googlegroups.com. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Msc. Yoel Benítez Fonseca 
> Dpto. Informática. Redacción Adelante 
> http://www.adelante.cu/ 
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:'),
Field('tipo_producto_id', 'reference tipo_producto', label='Tipo:'),
Field('precio', 'float', label='Precio:'),
Field('descripcion', 'text', length=1250, label='Descripción:'),
Field('imagen', 'upload', label='Imagen:'),
Field('thumb', 'upload', writable=False, readable=False),
format='%(nombre)s')

The test will fail for db.tipo_producto_id allowing not in db
referenceuntil i got the to the code and explicity put the
validator:

db.producto.tipo_producto_id.requires = IS_IN_DB(
db, 'tipo_producto.id', '%(nombre)s'
)

idk what was that about... other models defined on the app and not
defining explicid validator work as usual.

2017-11-14 10:01 GMT-05:00 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
>> exec(ccode, environment)
>>   File
>> "/Users/MacBookPro/project/python/web2py/applications/test/views/default/index.html",
>> line 60, in 
>>   File "/Users/MacBookPro/project/python/web2py/gluon/html.py", line 783,
>> in __getitem__
>> return self.components[i]
>> IndexError: list index out of range
>>
>> views/default/index.html
>> {{extend 'layout.html'}}
>> {{include 'templates/index/index.html'}}
>>
>> views/templates/index/index.html
>> {{=H1(T('Test'), _align = 'Center' ) }}
>>
>> code in traceback line 60 is italic and bold:
>> for _item in response.menu or []:
>> response.write('\n  ', escape=False)
>> if len(_item)<4 or not _item[3]:
>> response.write('\n  \n', escape=False)
>> response.write(_item[0])
>> response.write('\n  \n  ', escape=False)
>> else:
>> response.write('\n  \n
>> > aria-expanded="false">', escape=False)
>> response.write(_item[0])
>> response.write('\n\n
>> ', escape=False)
>> for _subitem in _item[3]:
>> response.write('\n  > href="', escape=False)
>> response.write(_subitem[2])
>> response.write('">', escape=False)
>> response.write(_subitem[0])
>> response.write('\n  ', escape=False)
>> pass
>> response.write('\n\n  \n
>> ', escape=False)
>> pass
>> response.write('\n  ', escape=False)
>> pass
>
> --
> 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)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Msc. Yoel Benítez Fonseca
Dpto. Informática. Redacción Adelante
http://www.adelante.cu/

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
> exec(ccode, environment)
>   File 
> "/Users/MacBookPro/project/python/web2py/applications/test/views/default/index.html",
>  
> line 60, in 
>   File "/Users/MacBookPro/project/python/web2py/gluon/html.py", line 783, 
> in __getitem__
> return self.components[i]
> IndexError: list index out of range
>
> *views/default/index.html*
> {{extend 'layout.html'}}
> {{include 'templates/index/index.html'}}
>
> *views/templates/index/index.html*
> {{=H1(T('Test'), _align = 'Center' ) }}
>
> *code in traceback line 60 is italic and bold:*
> for _item in response.menu or []:
> response.write('\n  ', escape=False)
> if len(_item)<4 or not _item[3]:
> response.write('\n  \n', escape=False)
> response.write(_item[0])
> response.write('\n  \n  ', escape=False)
> else:
> response.write('\n  \n  
>aria-expanded="false">', escape=False)
> response.write(_item[0])
> response.write('\n\n
>   ', escape=False)
> for _subitem in _item[3]:
> response.write('\n   href="', escape=False)
> response.write(_subitem[2])
> response.write('">', escape=False)
> response.write(_subitem[0])
> response.write('\n  ', escape=False)
> pass
> response.write('\n\n  \n  
> ', escape=False)
> pass
> response.write('\n  ', escape=False)
> pass
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 "/Users/sugizo/project/python/web2py/gluon/globals.py", line 419, in 

self._caller = lambda f: f()
  File 
"/Users/sugizo/project/python/web2py/applications/test/controllers/install_demo.py",
 
line 205, in index
redemption_unit_plan = 0)
  File 
"/Users/sugizo/project/python/web2py/gluon/packages/dal/pydal/objects.py", 
line 750, in insert
row = self._fields_and_values_for_insert(fields)
  File 
"/Users/sugizo/project/python/web2py/gluon/packages/dal/pydal/objects.py", 
line 728, in _fields_and_values_for_insert
'Table: missing required field: %s' % name)
RuntimeError: Table: missing required field: supplier

old problem in 2.15.x before insert can't execute with required = True 
(2.14.x version is fine for before insert callback to work with required = 
True)
temporary solution is set required = False, is this the solution for the 
future ?

best regards,
stifan

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 "/Users/MacBookPro/project/python/web2py/gluon/html.py", line 783, 
in __getitem__
return self.components[i]
IndexError: list index out of range

*views/default/index.html*
{{extend 'layout.html'}}
{{include 'templates/index/index.html'}}

*views/templates/index/index.html*
{{=H1(T('Test'), _align = 'Center' ) }}

*code in traceback line 60 is italic and bold:*
for _item in response.menu or []:
response.write('\n  ', escape=False)
if len(_item)<4 or not _item[3]:
response.write('\n  \n', escape=False)
response.write(_item[0])
response.write('\n  \n  ', escape=False)
else:
response.write('\n  \n
', escape=False)
response.write(_item[0])
response.write('\n\n
  ', escape=False)
for _subitem in _item[3]:
response.write('\n  ', escape=False)
response.write(_subitem[0])
response.write('\n  ', escape=False)
pass
response.write('\n\n  \n  ', 
escape=False)
pass
response.write('\n  ', escape=False)
pass

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 'configuration' is not defined

*line 129 on traceback code 
file 
/Users/MacBookPro/project/python/web2py/applications/test/views/default/user.html:*
response.write(response.toolbar() if configuration.get('app.toolbar') else 
'')

best regards,
stifan

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 then the 
usual web2py start message. Followed by the error in the browser.


I'll see if I can try this on a different windows box, later today.


Kiran Subbaraman
http://subbaraman.wordpress.com/about/

On 14-Nov-17 12:35 PM, Massimo Di Pierro wrote:
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 `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 WebFramework
CreatedbyMassimoDiPierro,Copyright2007-2017
Version2.16.1-stable+timestamp.2017.11.14.05.54.25
Databasedrivers
available:psycopg2,pymysql,imaplib,sqlite3,pg8000,pyodbc,mysqlconnector
please visit:
         http://127.0.0.1:8000/ 
starting browser...
|




On Tuesday, November 14, 2017 at 11:29:52 AM UTC+5:30, Massimo Di
Pierro wrote:

web2py 2.16.1 is OUT

Lots of bugs fixes contributed by the community. Thanks
Leonel, Paolo, Giovanni, and all those who contributed.

the most visible changes are:

- welcome now defaults to bootstrap 4
- lots of cleanup in the welcome app and new examples in
default.py
- simplified layout.html

Massimo



--
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)
---
You received this message because you are subscribed to the Google 
Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to web2py+unsubscr...@googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
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)
--- 
You received this message because you are subscribed to the Google Groups "web2py-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
> `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, Copyright 2007-2017
> Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
> Database drivers available: psycopg2, pymysql, imaplib, sqlite3, pg8000, 
> pyodbc, mysqlconnector
> please visit:
>  http://127.0.0.1:8000/
> starting browser...
>
>
>
>
> On Tuesday, November 14, 2017 at 11:29:52 AM UTC+5:30, Massimo Di Pierro 
> wrote:
>>
>> web2py 2.16.1 is OUT
>>
>> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, 
>> Giovanni, and all those who contributed.
>>
>> the most visible changes are:
>>
>> - welcome now defaults to bootstrap 4
>> - lots of cleanup in the welcome app and new examples in default.py
>> - simplified layout.html
>>
>> Massimo 
>>
>>
>>
>>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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, Copyright 2007-2017
Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
Database drivers available: psycopg2, pymysql, imaplib, sqlite3, pg8000, 
pyodbc, mysqlconnector
please visit:
 http://127.0.0.1:8000/
starting browser...




On Tuesday, November 14, 2017 at 11:29:52 AM UTC+5:30, Massimo Di Pierro 
wrote:
>
> web2py 2.16.1 is OUT
>
> Lots of bugs fixes contributed by the community. Thanks Leonel, Paolo, 
> Giovanni, and all those who contributed.
>
> the most visible changes are:
>
> - welcome now defaults to bootstrap 4
> - lots of cleanup in the welcome app and new examples in default.py
> - simplified layout.html
>
> Massimo 
>
>
>
>

-- 
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)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.