Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread Massimo Di Pierro
Not yet. Will create one eventually but want to finish a couple of features 
with support with this community

On Monday, 12 August 2019 07:38:46 UTC-7, En Ware wrote:
>
> Is there an IRC channel for py4web yet ? or an official group ? 
>
> On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di Pierro wrote:
>>
>> to be clear... most of the docs is backported by web2py + explanation of 
>> sessions and @action decorator.
>> Most of the new features are still undocumented or poorly documented 
>> unfortunately. Namely pydal.restapi, auth plugins, Form,  and 
>> 
>> Will try my best in the next few days.
>>
>> On Monday, 29 July 2019 02:36:40 UTC-7, Jose C wrote:
>>>
>>> Darn, I hunted around but didn't see it.  Thanks for the link...
>>>
>>>
>>>
>>> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:

 Hi Jose,

 the documentation is already on GitHub 
 
  , 
 and PR are always welcome ;-)

 Nico

 Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  
 ha scritto:

> Looks promising... some questions:
>
> 1) Have spotted many typos in docs but can't find docs for py4web on 
> github.  If docs are on there, like web2py book, people can submit pull 
> requests and help massage the docs into shape.
> 2) Should there be a new official group created for py4web (or some 
> other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in 
> the 
> web2py group and B) also make it easier to find py4web related stuff?  
> 3) When are you aiming for the first "stable" release?  
>
> Rgds,
>
>
> -- 
> 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 web...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
>  
> 
> .
>


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/587bfd5f-9387-4552-ab6d-2c008ffd417d%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-08-12 Thread En Ware
Is there an IRC channel for py4web yet ? or an official group ? 

On Tuesday, July 30, 2019 at 1:38:05 AM UTC-5, Massimo Di Pierro wrote:
>
> to be clear... most of the docs is backported by web2py + explanation of 
> sessions and @action decorator.
> Most of the new features are still undocumented or poorly documented 
> unfortunately. Namely pydal.restapi, auth plugins, Form,  and 
> 
> Will try my best in the next few days.
>
> On Monday, 29 July 2019 02:36:40 UTC-7, Jose C wrote:
>>
>> Darn, I hunted around but didn't see it.  Thanks for the link...
>>
>>
>>
>> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>>>
>>> Hi Jose,
>>>
>>> the documentation is already on GitHub 
>>> 
>>>  , 
>>> and PR are always welcome ;-)
>>>
>>> Nico
>>>
>>> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  
>>> ha scritto:
>>>
 Looks promising... some questions:

 1) Have spotted many typos in docs but can't find docs for py4web on 
 github.  If docs are on there, like web2py book, people can submit pull 
 requests and help massage the docs into shape.
 2) Should there be a new official group created for py4web (or some 
 other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the 
 web2py group and B) also make it easier to find py4web related stuff?  
 3) When are you aiming for the first "stable" release?  

 Rgds,


 -- 
 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 web...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
  
 
 .

>>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b7a007b1-f12a-440a-915b-455515883a21%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-30 Thread villas
On Tuesday, 30 July 2019 07:35:08 UTC+1, Massimo Di Pierro wrote:
>
> I did not know about this. It has a cost. I'd rather not pay for it.
>

1. Just so you know, from GitBook Pricing  
page: 

> GitBook is free for open-source & non-profit teams 
>

2. Markdown instead of Markmin +1

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/66294a20-ba3c-4451-a978-2aba062914b6%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Massimo Di Pierro
to be clear... most of the docs is backported by web2py + explanation of 
sessions and @action decorator.
Most of the new features are still undocumented or poorly documented 
unfortunately. Namely pydal.restapi, auth plugins, Form,  and 

Will try my best in the next few days.

On Monday, 29 July 2019 02:36:40 UTC-7, Jose C wrote:
>
> Darn, I hunted around but didn't see it.  Thanks for the link...
>
>
>
> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>>
>> Hi Jose,
>>
>> the documentation is already on GitHub 
>> 
>>  , 
>> and PR are always welcome ;-)
>>
>> Nico
>>
>> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  
>> ha scritto:
>>
>>> Looks promising... some questions:
>>>
>>> 1) Have spotted many typos in docs but can't find docs for py4web on 
>>> github.  If docs are on there, like web2py book, people can submit pull 
>>> requests and help massage the docs into shape.
>>> 2) Should there be a new official group created for py4web (or some 
>>> other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the 
>>> web2py group and B) also make it easier to find py4web related stuff?  
>>> 3) When are you aiming for the first "stable" release?  
>>>
>>> Rgds,
>>>
>>>
>>> -- 
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/eb571255-436d-4f2c-9a8f-d39fcb095276%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Massimo Di Pierro
*from pydal.restapi import RestAPI, Policy*

On Monday, 29 July 2019 14:13:50 UTC-7, Tito Garrido wrote:
>
> I am trying to reproduce the RestAPI example:
>
>
>
> *>>> print (pydal.__version__)19.05.11>>> from pydal.dbapi import RestAPI, 
> Policy*
> Traceback (most recent call last):
>   File "", line 1, in 
> ModuleNotFoundError: No module named 'pydal.dbapi'
>
> What am I missing?
>
>
> On Mon, Jul 29, 2019 at 10:43 AM António Ramos  
> wrote:
>
>> Why not using gitbook to create the documentation ???
>> repos already using gitbook...
>>
>> https://guide.elm-lang.org/  
>> https://docs.feathersjs.com/#  
>>
>> etc
>>
>> Em seg, 29 de jul de 2019 às 10:36, Jose C  
>> escreveu:
>>
>>> Darn, I hunted around but didn't see it.  Thanks for the link...
>>>
>>>
>>>
>>> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:

 Hi Jose,

 the documentation is already on GitHub 
 
  , 
 and PR are always welcome ;-)

 Nico

 Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  
 ha scritto:

> Looks promising... some questions:
>
> 1) Have spotted many typos in docs but can't find docs for py4web on 
> github.  If docs are on there, like web2py book, people can submit pull 
> requests and help massage the docs into shape.
> 2) Should there be a new official group created for py4web (or some 
> other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in 
> the 
> web2py group and B) also make it easier to find py4web related stuff?  
> 3) When are you aiming for the first "stable" release?  
>
> Rgds,
>
>
> -- 
> 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 web...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
>  
> 
> .
>
 -- 
>>> 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.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/05415021-9b4a-41bb-ab6e-2c9c3648dad0%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/CAEM0BxMNf%2BDKcKqU-GsdT7JZX%3DEWoKzT7aPQBieGiDb3dhd5Yg%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3acf9f67-2921-41d2-893c-a10c38de351f%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Massimo Di Pierro
I did not know about this. It has a cost. I'd rather not pay for it.
But I am thinking that perhaps we should move away from markmin and use 
markdown. Markmin is better but if we follow a more established standard we 
can use more tools. Also the book chapters can be used as README.md for the 
components.

On Monday, 29 July 2019 06:43:13 UTC-7, Ramos wrote:
>
> Why not using gitbook to create the documentation ???
> repos already using gitbook...
>
> https://guide.elm-lang.org/  
> https://docs.feathersjs.com/#  
>
> etc
>
> Em seg, 29 de jul de 2019 às 10:36, Jose C  
> escreveu:
>
>> Darn, I hunted around but didn't see it.  Thanks for the link...
>>
>>
>>
>> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>>>
>>> Hi Jose,
>>>
>>> the documentation is already on GitHub 
>>> 
>>>  , 
>>> and PR are always welcome ;-)
>>>
>>> Nico
>>>
>>> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  
>>> ha scritto:
>>>
 Looks promising... some questions:

 1) Have spotted many typos in docs but can't find docs for py4web on 
 github.  If docs are on there, like web2py book, people can submit pull 
 requests and help massage the docs into shape.
 2) Should there be a new official group created for py4web (or some 
 other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the 
 web2py group and B) also make it easier to find py4web related stuff?  
 3) When are you aiming for the first "stable" release?  

 Rgds,


 -- 
 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 web...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
  
 
 .

>>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/05415021-9b4a-41bb-ab6e-2c9c3648dad0%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b1a5b93d-b1f0-4610-b9ce-f035efd24136%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Tito Garrido
I am trying to reproduce the RestAPI example:



*>>> print (pydal.__version__)19.05.11>>> from pydal.dbapi import RestAPI,
Policy*
Traceback (most recent call last):
  File "", line 1, in 
ModuleNotFoundError: No module named 'pydal.dbapi'

What am I missing?


On Mon, Jul 29, 2019 at 10:43 AM António Ramos  wrote:

> Why not using gitbook to create the documentation ???
> repos already using gitbook...
>
> https://guide.elm-lang.org/
> https://docs.feathersjs.com/#
>
> etc
>
> Em seg, 29 de jul de 2019 às 10:36, Jose C 
> escreveu:
>
>> Darn, I hunted around but didn't see it.  Thanks for the link...
>>
>>
>>
>> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>>>
>>> Hi Jose,
>>>
>>> the documentation is already on GitHub
>>> 
>>>  ,
>>> and PR are always welcome ;-)
>>>
>>> Nico
>>>
>>> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C 
>>> ha scritto:
>>>
 Looks promising... some questions:

 1) Have spotted many typos in docs but can't find docs for py4web on
 github.  If docs are on there, like web2py book, people can submit pull
 requests and help massage the docs into shape.
 2) Should there be a new official group created for py4web (or some
 other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the
 web2py group and B) also make it easier to find py4web related stuff?
 3) When are you aiming for the first "stable" release?

 Rgds,


 --
 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 web...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
 
 .

>>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/05415021-9b4a-41bb-ab6e-2c9c3648dad0%40googlegroups.com
>> 
>> .
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/CAEM0BxMNf%2BDKcKqU-GsdT7JZX%3DEWoKzT7aPQBieGiDb3dhd5Yg%40mail.gmail.com
> 
> .
>


-- 

Linux User #387870
.
 _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAL67CHH%2BXnje7hmQ4Pt0HX%3DH%2BmczFcitZC3A9rzAs5K-b4rUsw%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread António Ramos
Why not using gitbook to create the documentation ???
repos already using gitbook...

https://guide.elm-lang.org/
https://docs.feathersjs.com/#

etc

Em seg, 29 de jul de 2019 às 10:36, Jose C 
escreveu:

> Darn, I hunted around but didn't see it.  Thanks for the link...
>
>
>
> On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>>
>> Hi Jose,
>>
>> the documentation is already on GitHub
>> 
>>  ,
>> and PR are always welcome ;-)
>>
>> Nico
>>
>> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C 
>> ha scritto:
>>
>>> Looks promising... some questions:
>>>
>>> 1) Have spotted many typos in docs but can't find docs for py4web on
>>> github.  If docs are on there, like web2py book, people can submit pull
>>> requests and help massage the docs into shape.
>>> 2) Should there be a new official group created for py4web (or some
>>> other repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the
>>> web2py group and B) also make it easier to find py4web related stuff?
>>> 3) When are you aiming for the first "stable" release?
>>>
>>> Rgds,
>>>
>>>
>>> --
>>> 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 web...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/05415021-9b4a-41bb-ab6e-2c9c3648dad0%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxMNf%2BDKcKqU-GsdT7JZX%3DEWoKzT7aPQBieGiDb3dhd5Yg%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Jose C
Darn, I hunted around but didn't see it.  Thanks for the link...



On Monday, 29 July 2019 10:06:42 UTC+1, Nico Zanferrari wrote:
>
> Hi Jose,
>
> the documentation is already on GitHub 
> 
>  , 
> and PR are always welcome ;-)
>
> Nico
>
> Il giorno lun 29 lug 2019 alle ore 10:14 Jose C  > ha scritto:
>
>> Looks promising... some questions:
>>
>> 1) Have spotted many typos in docs but can't find docs for py4web on 
>> github.  If docs are on there, like web2py book, people can submit pull 
>> requests and help massage the docs into shape.
>> 2) Should there be a new official group created for py4web (or some other 
>> repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the web2py 
>> group and B) also make it easier to find py4web related stuff?  
>> 3) When are you aiming for the first "stable" release?  
>>
>> Rgds,
>>
>>
>> -- 
>> 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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/05415021-9b4a-41bb-ab6e-2c9c3648dad0%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-29 Thread Nico Zanferrari
Hi Jose,

the documentation is already on GitHub

,
and PR are always welcome ;-)

Nico

Il giorno lun 29 lug 2019 alle ore 10:14 Jose C 
ha scritto:

> Looks promising... some questions:
>
> 1) Have spotted many typos in docs but can't find docs for py4web on
> github.  If docs are on there, like web2py book, people can submit pull
> requests and help massage the docs into shape.
> 2) Should there be a new official group created for py4web (or some other
> repo of Q&A knowledge, StackExchange?)   A) to minimize noise in the web2py
> group and B) also make it easier to find py4web related stuff?
> 3) When are you aiming for the first "stable" release?
>
> Rgds,
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/0693c615-1283-413e-b976-91c238da8384%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAE8D_Agv2W1PskLrNCwtWqCs1mYbtESU%2BN2yz8HHguvSNNwhg%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
http://py4web.com/_documentation/static/index.html#chapter-06

Em qua, 24 de jul de 2019 às 12:28, Kevin Keller 
escreveu:

> Which file Antonio?
>
> I found what seems an Oauth2 server py and pyjwt in core.
>
> So I suppose OAuth2 + OpenID Restful API can be done with web4py already..
> just need to find in the docs..
>
> By the way.. happy to contribute to the docs.
>
>
>
> On Wed, Jul 24, 2019 at 1:21 PM António Ramos 
> wrote:
>
>>
>> Found a typo RestPI instead of RestAPI
>>
>> Regardsdef api():
>> return RestPI(db, policy)(request.method, request.args(0), 
>> request.args(1),
>>  request.get_vars, request.post_vars)
>>
>>
>> Em qua, 24 de jul de 2019 às 12:17, António Ramos 
>> escreveu:
>>
>>> - Great documentation layout
>>> - A litle bette name (Py4Web)
>>> - But the dashboard and the running circle and colours chosen are
>>> completely out of order in my opinion if it matters. Where is the logo ?
>>> will it have a logo ? what colour scheme will it use ?
>>>
>>> Regards
>>>
>>> Em qua, 24 de jul de 2019 às 09:44, Kevin Keller 
>>> escreveu:
>>>
 Would live to try it today.

 Is there documentation how I can enable to require auth and use JWT for
 the PyDal REST API?

 On Wednesday, 24 July 2019 07:40:27 UTC+2, Massimo Di Pierro wrote:
>
> OK. I know. I am not good with names.
> But there are lots of requirements to be fulfilled.
> py4web.com was available and the pypi package was available.
> Here is running on google cloud:
> http://py4web.com/
>
> Ducking...
>
> --
 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.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/web2py/f481ba65-8026-46a9-a230-77e8edda9e37%40googlegroups.com
 
 .

>>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/CAEM0BxNz%2BhEcVhzgTeVU3s-1-z1MgsunXv%2Bgm1sonjdmFEBcQA%40mail.gmail.com
>> 
>> .
>>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/CADHCKLRXX4Mh%2B%3DxsM-30pBDiH5emECwFx8zBxxdDGX_i%3DZegmA%40mail.gmail.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxNSJ4ZO-NNc6j5HJDJOUFpX%2BAh6By-nFpFgSbYdGkU5Ew%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Kevin Keller
Which file Antonio?

I found what seems an Oauth2 server py and pyjwt in core.

So I suppose OAuth2 + OpenID Restful API can be done with web4py already..
just need to find in the docs..

By the way.. happy to contribute to the docs.



On Wed, Jul 24, 2019 at 1:21 PM António Ramos  wrote:

>
> Found a typo RestPI instead of RestAPI
>
> Regardsdef api():
> return RestPI(db, policy)(request.method, request.args(0), 
> request.args(1),
>  request.get_vars, request.post_vars)
>
>
> Em qua, 24 de jul de 2019 às 12:17, António Ramos 
> escreveu:
>
>> - Great documentation layout
>> - A litle bette name (Py4Web)
>> - But the dashboard and the running circle and colours chosen are
>> completely out of order in my opinion if it matters. Where is the logo ?
>> will it have a logo ? what colour scheme will it use ?
>>
>> Regards
>>
>> Em qua, 24 de jul de 2019 às 09:44, Kevin Keller 
>> escreveu:
>>
>>> Would live to try it today.
>>>
>>> Is there documentation how I can enable to require auth and use JWT for
>>> the PyDal REST API?
>>>
>>> On Wednesday, 24 July 2019 07:40:27 UTC+2, Massimo Di Pierro wrote:

 OK. I know. I am not good with names.
 But there are lots of requirements to be fulfilled.
 py4web.com was available and the pypi package was available.
 Here is running on google cloud:
 http://py4web.com/

 Ducking...

 --
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/f481ba65-8026-46a9-a230-77e8edda9e37%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/CAEM0BxNz%2BhEcVhzgTeVU3s-1-z1MgsunXv%2Bgm1sonjdmFEBcQA%40mail.gmail.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CADHCKLRXX4Mh%2B%3DxsM-30pBDiH5emECwFx8zBxxdDGX_i%3DZegmA%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
Found a typo RestPI instead of RestAPI

Regardsdef api():
return RestPI(db, policy)(request.method, request.args(0), request.args(1),
 request.get_vars, request.post_vars)


Em qua, 24 de jul de 2019 às 12:17, António Ramos 
escreveu:

> - Great documentation layout
> - A litle bette name (Py4Web)
> - But the dashboard and the running circle and colours chosen are
> completely out of order in my opinion if it matters. Where is the logo ?
> will it have a logo ? what colour scheme will it use ?
>
> Regards
>
> Em qua, 24 de jul de 2019 às 09:44, Kevin Keller 
> escreveu:
>
>> Would live to try it today.
>>
>> Is there documentation how I can enable to require auth and use JWT for
>> the PyDal REST API?
>>
>> On Wednesday, 24 July 2019 07:40:27 UTC+2, Massimo Di Pierro wrote:
>>>
>>> OK. I know. I am not good with names.
>>> But there are lots of requirements to be fulfilled.
>>> py4web.com was available and the pypi package was available.
>>> Here is running on google cloud:
>>> http://py4web.com/
>>>
>>> Ducking...
>>>
>>> --
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/f481ba65-8026-46a9-a230-77e8edda9e37%40googlegroups.com
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxNz%2BhEcVhzgTeVU3s-1-z1MgsunXv%2Bgm1sonjdmFEBcQA%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread António Ramos
- Great documentation layout
- A litle bette name (Py4Web)
- But the dashboard and the running circle and colours chosen are
completely out of order in my opinion if it matters. Where is the logo ?
will it have a logo ? what colour scheme will it use ?

Regards

Em qua, 24 de jul de 2019 às 09:44, Kevin Keller 
escreveu:

> Would live to try it today.
>
> Is there documentation how I can enable to require auth and use JWT for
> the PyDal REST API?
>
> On Wednesday, 24 July 2019 07:40:27 UTC+2, Massimo Di Pierro wrote:
>>
>> OK. I know. I am not good with names.
>> But there are lots of requirements to be fulfilled.
>> py4web.com was available and the pypi package was available.
>> Here is running on google cloud:
>> http://py4web.com/
>>
>> Ducking...
>>
>> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/f481ba65-8026-46a9-a230-77e8edda9e37%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxOGjB4y03pO_5sKasjKX4tOAPQx9gnLyEKBQAC3taKGew%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Nico Zanferrari
Pretty awesome ;-)

By the way, the box where you write the password should be enlarged a
little on the right...

[image: image.png]

Il giorno mer 24 lug 2019 alle ore 10:09 Massimo Di Pierro <
massimo.dipie...@gmail.com> ha scritto:

> Dashboard now partially works on GAE in demo mode.
> http://py4web.com/_dashboard
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/41fb7ab5-546f-4332-b316-ef960255eb02%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAE8D_A_biRZOS5PdOC%3D_xkxDC2sWLwRD-3-3VNJfswDtjGenw%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Massimo Di Pierro
Dashboard now partially works on GAE in demo mode. 
http://py4web.com/_dashboard

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/41fb7ab5-546f-4332-b316-ef960255eb02%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-24 Thread Nico Zanferrari
Excellent!


Il giorno mer 24 lug 2019 alle ore 08:17 Massimo Di Pierro <
massimo.dipie...@gmail.com> ha scritto:

>
> Notice the time to serve this page (
> https://github.com/web2py/py4web/blob/master/apps/_default/templates/index.html)
> which is a template, is ~7ms. In web2py it was 100-200ms.
>
>
>
> On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote:
>>
>> Absolutely Great!!
>>
>> But
>> http://py4web.com/_documentation/static/  though 404
>>
>>
>>
>> On Wed, Jul 24, 2019 at 11:28 AM Dave S  wrote:
>>
>>>
>>>
>>> On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, Massimo Di Pierro wrote:

 OK. I know. I am not good with names.
 But there are lots of requirements to be fulfilled.
 py4web.com was available and the pypi package was available.
 Here is running on google cloud:
 http://py4web.com/

 Ducking...


>>> Thumbs up!
>>>
>>> (But _dashboard was 404)
>>>
>>> /dps
>>>
>>>
>>> --
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/b8951d9f-f7d3-49ed-9c95-5f85b71657b3%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/3ecf82dc-fa2c-423b-b96a-815342eab58a%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAAE8D_BwoycvcyfRn4PWwSpNVpFSm-Y5uCjehmvagyr6WfPoJA%40mail.gmail.com.


Re: [web2py] Re: web3py -> py4web

2019-07-23 Thread Massimo Di Pierro

Notice the time to serve this page 
(https://github.com/web2py/py4web/blob/master/apps/_default/templates/index.html)
 
which is a template, is ~7ms. In web2py it was 100-200ms.



On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote:
>
> Absolutely Great!!
>
> But
> http://py4web.com/_documentation/static/  though 404 
>
>
>
> On Wed, Jul 24, 2019 at 11:28 AM Dave S  wrote:
>
>>
>>
>> On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, Massimo Di Pierro wrote:
>>>
>>> OK. I know. I am not good with names. 
>>> But there are lots of requirements to be fulfilled.
>>> py4web.com was available and the pypi package was available.
>>> Here is running on google cloud:
>>> http://py4web.com/
>>>
>>> Ducking...
>>>
>>>
>> Thumbs up!
>>
>> (But _dashboard was 404)
>>
>> /dps
>>  
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/b8951d9f-f7d3-49ed-9c95-5f85b71657b3%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3ecf82dc-fa2c-423b-b96a-815342eab58a%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-23 Thread Massimo Di Pierro
The dashboard does not work on GAE

http://py4web.com/_documentation/static/ is not a valid URL 
http://py4web.com/_documention  is

On Tuesday, 23 July 2019 23:03:08 UTC-7, sandeep patel wrote:
>
> Absolutely Great!!
>
> But
> http://py4web.com/_documentation/static/  though 404 
>
>
>
> On Wed, Jul 24, 2019 at 11:28 AM Dave S  wrote:
>
>>
>>
>> On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, Massimo Di Pierro wrote:
>>>
>>> OK. I know. I am not good with names. 
>>> But there are lots of requirements to be fulfilled.
>>> py4web.com was available and the pypi package was available.
>>> Here is running on google cloud:
>>> http://py4web.com/
>>>
>>> Ducking...
>>>
>>>
>> Thumbs up!
>>
>> (But _dashboard was 404)
>>
>> /dps
>>  
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/b8951d9f-f7d3-49ed-9c95-5f85b71657b3%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b757e019-50fd-4589-ae19-b105af9de281%40googlegroups.com.


Re: [web2py] Re: web3py -> py4web

2019-07-23 Thread sandeep patel
Absolutely Great!!

But
http://py4web.com/_documentation/static/  though 404



On Wed, Jul 24, 2019 at 11:28 AM Dave S  wrote:

>
>
> On Tuesday, July 23, 2019 at 10:40:27 PM UTC-7, Massimo Di Pierro wrote:
>>
>> OK. I know. I am not good with names.
>> But there are lots of requirements to be fulfilled.
>> py4web.com was available and the pypi package was available.
>> Here is running on google cloud:
>> http://py4web.com/
>>
>> Ducking...
>>
>>
> Thumbs up!
>
> (But _dashboard was 404)
>
> /dps
>
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/b8951d9f-f7d3-49ed-9c95-5f85b71657b3%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CA%2BvcePXU4sB4qfNLMUKgUhgSONiPCW83QNebBx_1_1jvbUWKew%40mail.gmail.com.


Re: [web2py] Re: Web3py

2019-06-16 Thread Massimo DiPierro
Not with the usual syntax. Looking for a way to allow this in the new form
api

On Sun, Jun 16, 2019, 09:51 Fekete Zoltán  wrote:

> Hi Massimo,
>
> In web2py I highly rely on dynamically modifiable forms. Based on
> calculations some fields are required or even hidden, others not.
>
> Will be possible to do so in web3py?
>
> Thank you,
>
> FeZ
>
> On 2019. június 15. 8:17:43 Massimo Di Pierro 
> wrote:
>
>> db.tablename.fieldname.readable = False # SAFE
>> def test():
>> db.tablename.fieldname.readable = False # NOT SAFE
>>
>> *models.py*
>> def on_define_tablename(table):
>> table.fieldname.readable = False # SAFE
>> db.define_table('tablename',
>> Field('fieldname'),
>> on_define = on_define_tablename)
>>
>> BUT things like on_define = on_define_tablename
>> are no longer necessary in web3py. Tables are defined when the files are
>> imported not at every request (like in web2py) and therefore you do not
>> need optimization tricks any more.
>>
>>
>> On Friday, 14 June 2019 22:03:04 UTC-7, 黄祥 wrote:
>>>
>>> Be careful that you can no longer change attributes everywhere you like
 as in:

 db.tablename.fieldname.readable = False

 In web2py this is ok. In web3py this is not safe. Attributes must be
 global. The state of fixtures must not be modified inside actions.

>>>
>>> is it mean in controller not safe, but in on_define, safe or not ?
>>> *e.g.*
>>> *controller.py*
>>> db.tablename.fieldname.readable = False # not safe in web3py
>>> def test():
>>> db.tablename.fieldname.readable = False # not safe in web3py
>>>
>>> *models.py*
>>> def on_define_tablename(table):
>>> table.fieldname.readable = False # safe or not ?
>>> db.define_table('tablename',
>>> Field('fieldname'),
>>> on_define = on_define_tablename)
>>>
>>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/82e955db-788c-4280-9504-0bbd242882eb%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAJYrZrnUquuSCkGkHYVPQ1CzQfZh2fsDLBKzZzQu1%3DjB2n6nYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py FORM referenced fields

2019-06-14 Thread Massimo Di Pierro
Thanks. That clarifies. Will fix later today.

On Wednesday, 12 June 2019 23:25:26 UTC-7, John Bannister wrote:
>
> Hi Massimo,
>
>  
>
> Issue is not the dropdown for referenced fields on an Add rec as  that 
> works fine. Issue is when you want to edit a record with a referenced field 
> so 
>
>  
>
> form=Form(db.order, record=id)
>
>  
>
> Referenced field is blank (although dropdown is available). All other 
> fields are populated with db values.
>
>  
>
> BR
>
> John
>
>  
>
>  
>
>  
>
> *From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On 
> Behalf Of *Massimo Di Pierro
> *Sent:* 13 June 2019 05:09
> *To:* web2py-users
> *Subject:* [web2py] Re: Web3py FORM referenced fields
>
>  
>
> I added an example that works for me.
>
> Maybe can help you debug the problem:
>
>  
>
> http://127.0.0.1:8000/examples/dbform2
>
>
> On Wednesday, 12 June 2019 04:02:18 UTC-7, John Bannister wrote:
>
> Hi All,
>
>  
>
> Does anyone have a working example of web3py Form using referenced fields?
>
>  
>
> I have created the standard person / pets tables with pets referencing 
> person as 'reference person' in the table definition.
>
>  
>
> Using form=Form(db.pet) I get the dropdown of persons for the add no 
> worries but on the form=Form(db.pet, record=id) for the edit form .. 
> neither the id of the person or the persons name (format='%(name)s' is 
> displayed even though I can still select from the dropdown list. The id is 
> definately stored in the db.
>
>  
>
> BR
>
> John
>
>  
>
>  
>
>  
>
>  
>
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/d40dcdf9-96c9-43a3-a9ab-d1c3090c7ed1%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0973acf7-c76b-4c8e-a5a3-4db3775e96b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web3py FORM referenced fields

2019-06-12 Thread John Bannister
Hi Massimo,

 

Issue is not the dropdown for referenced fields on an Add rec as  that works 
fine. Issue is when you want to edit a record with a referenced field so 

 

form=Form(db.order, record=id)

 

Referenced field is blank (although dropdown is available). All other fields 
are populated with db values.

 

BR

John

 

 

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Massimo Di Pierro
Sent: 13 June 2019 05:09
To: web2py-users
Subject: [web2py] Re: Web3py FORM referenced fields

 

I added an example that works for me.

Maybe can help you debug the problem:

 

http://127.0.0.1:8000/examples/dbform2


On Wednesday, 12 June 2019 04:02:18 UTC-7, John Bannister wrote:

Hi All,

 

Does anyone have a working example of web3py Form using referenced fields?

 

I have created the standard person / pets tables with pets referencing person 
as 'reference person' in the table definition.

 

Using form=Form(db.pet) I get the dropdown of persons for the add no worries 
but on the form=Form(db.pet, record=id) for the edit form .. neither the id of 
the person or the persons name (format='%(name)s' is displayed even though I 
can still select from the dropdown list. The id is definately stored in the db.

 

BR

John

 

 

 

 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d40dcdf9-96c9-43a3-a9ab-d1c3090c7ed1%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/005701d521b0%24c44dc750%244ce955f0%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-06-09 Thread Massimo Di Pierro
please try delete everything in apps/_scaffold/databases/* I was not able 
to reproduce after I did that

On Sunday, 9 June 2019 01:23:08 UTC-7, John Bannister wrote:
>
> I tried  both with and without. Same or very similar result. It is only 
> complaining about the auth_user_tag table which is defined in the auth 
> module.
>
>  
>
> *From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On 
> Behalf Of *Massimo Di Pierro
> *Sent:* 08 June 2019 07:19
> *To:* web2py-users
> *Subject:* [web2py] Re: Web3py
>
>  
>
> try a db.commit() after your define_table(s).
>
> On Monday, 3 June 2019 08:16:27 UTC-7, John Bannister wrote:
>
> Hi All,
>
>  
>
> Finally gotten round to playing again on the latest Web3py.
>
>  
>
> On _scaffold app .. if I add new tables to model file and then reload from 
> the dashboard .. I get errors as follows:-
>
> File "C:\Users\johhb\py3\lib\site-packages\pydal\base.py", line 581, in 
> define_table
>
> raise SyntaxError('table already defined: %s' % tablename)
>
>   File "", line None
>
> SyntaxError: table already defined: auth_user_tag_groups
>
> Only way around it seems to be to delete contents of database folder and 
> restart.
>
>  
>
> Dashboard app hangs on reload sometimes (I think it has to do the with 
> same issue above) and only way to get round it is to restart the server and 
> refresh the _dashboard app. 
>
>  
>
> I really want to start using it to create a few new apps I am due to start 
> working on shortly even though I am well aware that it is not yet 
> production ready so will keep testing and assist wherever I can. Thanks 
> again for all the hard work put in so far I am sure its gonna be a really 
> cool solution.
>
>  
>
> Best Regards
>
> John
>
>  
>
>  
>
> On Thursday, 16 May 2019 17:15:44 UTC+2, John Bannister wrote:
>
> Hi All,
>
>  
>
> Had a first real 'play' with web3py' today and have a few questions the 
> biggest of which I am hoping the gurus will be able to answer:-
>
>  
>
> 1: Is there any way to not to have to restart the app every time changes 
> are made to actions in the controller or new actions added etc? I 
> understand that controllers are basically being imported when the app fires 
> up but is any there any way to occasionally reload instead of having to 
> restart the app? This is a fairly big one for me as sometimes tweaks will 
> need to be made in production and restarting the web server is not really 
> an option so hopefully I am missing something really simple.
>
>  
>
> Thanks in advance
>
> John
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>   
>
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/33476d6d-05dd-4452-a67b-e919b06d08b6%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2f98fc4f-6d91-4393-bc33-5b2a82f57a7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web3py

2019-06-09 Thread John Bannister
I tried  both with and without. Same or very similar result. It is only 
complaining about the auth_user_tag table which is defined in the auth module.

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Massimo Di Pierro
Sent: 08 June 2019 07:19
To: web2py-users
Subject: [web2py] Re: Web3py

 

try a db.commit() after your define_table(s).

On Monday, 3 June 2019 08:16:27 UTC-7, John Bannister wrote:

Hi All,

 

Finally gotten round to playing again on the latest Web3py.

 

On _scaffold app .. if I add new tables to model file and then reload from the 
dashboard .. I get errors as follows:-

File "C:\Users\johhb\py3\lib\site-packages\pydal\base.py", line 581, in 
define_table
raise SyntaxError('table already defined: %s' % tablename)
  File "", line None
SyntaxError: table already defined: auth_user_tag_groups

Only way around it seems to be to delete contents of database folder and 
restart.

 

Dashboard app hangs on reload sometimes (I think it has to do the with same 
issue above) and only way to get round it is to restart the server and refresh 
the _dashboard app. 

 

I really want to start using it to create a few new apps I am due to start 
working on shortly even though I am well aware that it is not yet production 
ready so will keep testing and assist wherever I can. Thanks again for all the 
hard work put in so far I am sure its gonna be a really cool solution.

 

Best Regards

John

 

 

On Thursday, 16 May 2019 17:15:44 UTC+2, John Bannister wrote:

Hi All,

 

Had a first real 'play' with web3py' today and have a few questions the biggest 
of which I am hoping the gurus will be able to answer:-

 

1: Is there any way to not to have to restart the app every time changes are 
made to actions in the controller or new actions added etc? I understand that 
controllers are basically being imported when the app fires up but is any there 
any way to occasionally reload instead of having to restart the app? This is a 
fairly big one for me as sometimes tweaks will need to be made in production 
and restarting the web server is not really an option so hopefully I am missing 
something really simple.

 

Thanks in advance

John

 

 

 

 

 

 

  

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/33476d6d-05dd-4452-a67b-e919b06d08b6%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/00d501d51e9c%248f360030%24ada20090%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
in latest commit (116) 
for reload fixed:
- edit, add and delete function on controllers take effects after hit 
reload button
- route for  is refreshed after hit reload button (last reported 
dissapear in some webapp)

btw, the button said 'Reaload Apps' is it intention or correct one is 
'Reload Apps' typo problem no error occured

for recent tickets fixed:
- deleted recent tickets not shown after refresh 
the http://localhost:8000/_dashboard

but some is not fixed yet :
- still can edit and add new error ticket
- after hit reload button the error appears again

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/76d47077-fcfe-4af3-a801-015c7863f681%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
right we should not be able to edit those. Will fix.

On Sunday, 19 May 2019 03:49:22 UTC-7, 黄祥 wrote:
>
> tested latest commit (115) about recent tickets
> - recent tickets can be deleted but when refresh the browser, 
> http://localhost:8000/_dashboard it will appears again
> - recent tickets can be edited, not sure why the ticket can be edited ?
> - when click create, it show forms, but can't be saved, not sure, why the 
> button 'create' appears, should be tickets automatically generate when 
> error occured, can't be created manually
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2628e3d4-8d28-4277-8afc-12dff5f1ec46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
db.commit() is missing. fixing it later today.

On Sunday, 19 May 2019 03:56:19 UTC-7, 黄祥 wrote:
>
> after hit 'reload' affect the '_dashboard', when do crud for 'recent 
> tickets' (before hit 'reload', no error occured on terminal)
> [OK] reloaded _dashboard 
> [OK] reloaded _scaffold 
> [OK] reloaded examples 
> [OK] reloaded myapp 
> [OK] reloaded superheroes 
> [OK] reloaded todo 
> ERROR:root:Traceback (most recent call last):
>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 385, in 
> wrapper
> ret = func(*func_args, **func_kwargs)
>   File "/Users/sugizo/learn/python/web3py/apps/_dashboard/__init__.py", 
> line 145, in api
> data = RestAPI(db, ALLOW_ALL_POLICY)(request.method, args[2], id, 
> request.query, request.json)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/restapi.py"
> , line 27, in wrapper
> data = func(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/restapi.py"
> , line 170, in __call__
> deleted = self.db(table.id == id).delete()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/objects.py"
> , line 2422, in delete
> ret = db._adapter.delete(table, self.query)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/sqlite.py"
> , line 87, in delete
> counter = super(SQLite, self).delete(table, query)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
> , line 541, in delete
> self.execute(sql)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py"
> , line 67, in wrap
> return f(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
> , line 413, in execute
> rv = self.cursor.execute(command, *args[1:], **kwargs)
> sqlite3.OperationalError: database is locked
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8c630eb1-5cda-41dd-9d89-53cd852c3280%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-19 Thread Massimo Di Pierro
ok you are right. reloader it broken. Please try the latest version I 
posted. I dicthed reloader but we may have some side effects.

On Sunday, 19 May 2019 02:38:07 UTC-7, John Bannister wrote:
>
> Hi Guys,
>
> Couple of things. 
>
> 1: I added a print('Dependancies %s ' % reloader.get_dependencies(module)) 
> just before the output to console in web3py/core.py.
>
> Here is the output (not formatted):-
>
> Dashboard is at: http://127.0.0.1:8000/_dashboard
> [  ] loading examples ...
> Dependancies None
> [A[OK] loaded examples
> [  ] loading myapp ...
> Dependancies None
> [A[OK] loaded myapp
> [  ] loading superheroes ...
> Dependancies None
> [A[OK] loaded superheroes
> [  ] loading todo ...
> Dependancies None
> [A[OK] loaded todo
> [  ] loading _dashboard ...
> Dependancies None
> [A[OK] loaded _dashboard
> [  ] loading _scaffold ...
> Dependancies None
> [A[OK] loaded _scaffold
> Bottle v0.12.16 server starting up (using TornadoServer())...
> Listening on http://127.0.0.1:8010/
> Hit Ctrl-C to quit.
>
> As expected no dependancies on initial load
>
> After reload :-
>
> [  ] reloading examples ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
> , 
>  'C:\\Users\\johhb\\web3py\\web3py\\utils\\form.py'>,  'pydal.validators' from 
> 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\validators.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\yatl\\helpers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\drivers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\adapters\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\dialects\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\parsers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\representers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>]
> [A[OK] reloaded examples
> [  ] reloading myapp ...
> Dependancies [ 'C:\\Users\\johhb\\web3py\\apps\\myapp\\__init__.py'>,  from 'C:\\Users\\johhb\\web3py\\apps\\myapp\\__init__.py'>]
> [A[OK] reloaded myapp
> [  ] reloading superheroes ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
> , 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\drivers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\adapters\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\dialects\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\parsers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\representers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>]
> [A[OK] reloaded superheroes
> [  ] reloading todo ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
> , 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\drivers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\adapters\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\dialects\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\parsers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\representers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>]
> [A[OK] reloaded todo
> [  ] reloading _dashboard ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\datetime.py'>,
>  
> , 
> , 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\yatl\\helpers.py'>]
> [A[OK] reloaded _dashboard
> [  ] reloading _scaffold ...
> Dependancies [ 'C:\\Users\\johhb\\web3py\\apps\\_scaffold\\__init__.py'>,  'apps._scaffold.models' from 
> 'C:\\Users\\johhb\\web3py\\apps\\_s

Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
after hit 'reload' affect the '_dashboard', when do crud for 'recent 
tickets' (before hit 'reload', no error occured on terminal)
[OK] reloaded _dashboard 
[OK] reloaded _scaffold 
[OK] reloaded examples 
[OK] reloaded myapp 
[OK] reloaded superheroes 
[OK] reloaded todo 
ERROR:root:Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 385, in 
wrapper
ret = func(*func_args, **func_kwargs)
  File "/Users/sugizo/learn/python/web3py/apps/_dashboard/__init__.py", 
line 145, in api
data = RestAPI(db, ALLOW_ALL_POLICY)(request.method, args[2], id, 
request.query, request.json)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/restapi.py"
, line 27, in wrapper
data = func(*args, **kwargs)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/restapi.py"
, line 170, in __call__
deleted = self.db(table.id == id).delete()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/objects.py"
, line 2422, in delete
ret = db._adapter.delete(table, self.query)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/sqlite.py"
, line 87, in delete
counter = super(SQLite, self).delete(table, query)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
, line 541, in delete
self.execute(sql)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py"
, line 67, in wrap
return f(*args, **kwargs)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
, line 413, in execute
rv = self.cursor.execute(command, *args[1:], **kwargs)
sqlite3.OperationalError: database is locked

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/89e9300d-de70-47cf-936f-baf2410b071e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-19 Thread 黄祥
tested latest commit (115) about recent tickets
- recent tickets can be deleted but when refresh the 
browser, http://localhost:8000/_dashboard it will appears again
- recent tickets can be edited, not sure why the ticket can be edited ?
- when click create, it show forms, but can't be saved, not sure, why the 
button 'create' appears, should be tickets automatically generate when 
error occured, can't be created manually

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c8828397-e428-4844-b425-a5aaae1734b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
Just an update to the below.

It seems that the from . import 'whatever' is where the issue is with the 
reloader as if I do for example import os  or import datetime in the 
__init__.py they both show up in the list of dependencies. Anything with a 
from . import 'whatever'  just lists the apps/myapp as a dependency

BR
John

On Sunday, 19 May 2019 11:38:07 UTC+2, John Bannister wrote:
>
> Hi Guys,
>
> Couple of things. 
>
> 1: I added a print('Dependancies %s ' % reloader.get_dependencies(module)) 
> just before the output to console in web3py/core.py.
>
> Here is the output (not formatted):-
>
> Dashboard is at: http://127.0.0.1:8000/_dashboard
> [  ] loading examples ...
> Dependancies None
> [A[OK] loaded examples
> [  ] loading myapp ...
> Dependancies None
> [A[OK] loaded myapp
> [  ] loading superheroes ...
> Dependancies None
> [A[OK] loaded superheroes
> [  ] loading todo ...
> Dependancies None
> [A[OK] loaded todo
> [  ] loading _dashboard ...
> Dependancies None
> [A[OK] loaded _dashboard
> [  ] loading _scaffold ...
> Dependancies None
> [A[OK] loaded _scaffold
> Bottle v0.12.16 server starting up (using TornadoServer())...
> Listening on http://127.0.0.1:8010/
> Hit Ctrl-C to quit.
>
> As expected no dependancies on initial load
>
> After reload :-
>
> [  ] reloading examples ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
> , 
>  'C:\\Users\\johhb\\web3py\\web3py\\utils\\form.py'>,  'pydal.validators' from 
> 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\validators.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\yatl\\helpers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\drivers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\adapters\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\dialects\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\parsers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\representers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>]
> [A[OK] reloaded examples
> [  ] reloading myapp ...
> Dependancies [ 'C:\\Users\\johhb\\web3py\\apps\\myapp\\__init__.py'>,  from 'C:\\Users\\johhb\\web3py\\apps\\myapp\\__init__.py'>]
> [A[OK] reloaded myapp
> [  ] reloading superheroes ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
> , 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\drivers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\adapters\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\dialects\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\parsers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\representers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>]
> [A[OK] reloaded superheroes
> [  ] reloading todo ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
> , 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\drivers.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\adapters\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\dialects\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\parsers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\representers\\__init__.py'>,
>  
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\pydal\\base.py'>]
> [A[OK] reloaded todo
> [  ] reloading _dashboard ...
> Dependancies [ 'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\os.py'>, 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\datetime.py'>,
>  
> , 
> , 
>  'C:\\Users\\johhb\\AppData\\Local\\Programs\\Python\\Python3\\lib\\site-packages\\yatl\\helpers.py'>]
> [A[OK] 

Re: [web2py] Re: Web3py

2019-05-19 Thread John Bannister
Hi Guys,

Couple of things. 

1: I added a print('Dependancies %s ' % reloader.get_dependencies(module)) 
just before the output to console in web3py/core.py.

Here is the output (not formatted):-

Dashboard is at: http://127.0.0.1:8000/_dashboard
[  ] loading examples ...
Dependancies None
 [A[OK] loaded examples
[  ] loading myapp ...
Dependancies None
 [A[OK] loaded myapp
[  ] loading superheroes ...
Dependancies None
 [A[OK] loaded superheroes
[  ] loading todo ...
Dependancies None
 [A[OK] loaded todo
[  ] loading _dashboard ...
Dependancies None
 [A[OK] loaded _dashboard
[  ] loading _scaffold ...
Dependancies None
 [A[OK] loaded _scaffold
Bottle v0.12.16 server starting up (using TornadoServer())...
Listening on http://127.0.0.1:8010/
Hit Ctrl-C to quit.

As expected no dependancies on initial load

After reload :-

[  ] reloading examples ...
Dependancies [, 
, 
, ,
 
,
 
,
 
,
 
,
 
,
 
,
 
]
 [A[OK] reloaded examples
[  ] reloading myapp ...
Dependancies [, ]
 [A[OK] reloaded myapp
[  ] reloading superheroes ...
Dependancies [, 
, 
,
 
,
 
,
 
,
 
,
 
,
 
,
 
,
 
]
 [A[OK] reloaded superheroes
[  ] reloading todo ...
Dependancies [, 
, 
,
 
,
 
,
 
,
 
,
 
]
 [A[OK] reloaded todo
[  ] reloading _dashboard ...
Dependancies [, 
,
 
, 
, 
]
 [A[OK] reloaded _dashboard
[  ] reloading _scaffold ...
Dependancies [, ]
 [A[OK] reloaded _scaffold

I was actually expecting to see the models and controllers as dependancies 
as they are imported via __init__.py but they are not listed (dont know if 
this is taken care of by __init__.py. @Massimo ??

So for the sake of completeness I add a print() message to the last line of 
myapp/__init__.py and to controllers.py and on reload I see the output from 
__init__.py but not the print() I put in controllers.py which to me 
indicates that neither the controllers.py nor the models.py are being 
reloaded.

Hope this helps
BR
John



On Sunday, 19 May 2019 02:37:38 UTC+2, 黄祥 wrote:
>
> understood, my bad, just test it n report it what think related with the 
> problem
> @massimo
> should this thing address an issue in github, so that you can focus 
> release the first version of web3py ?
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0232fca6-1278-4ae7-9d16-271a44043355%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
understood, my bad, just test it n report it what think related with the 
problem
@massimo
should this thing address an issue in github, so that you can focus release 
the first version of web3py ?

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3dc93550-7913-4216-a306-51b605ff30d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
I do not think this helps. This would conflict with the fact web3py 
internally imports reloader.

On Saturday, 18 May 2019 05:43:22 UTC-7, 黄祥 wrote:
>
> already checked : https://pypi.org/project/reload
> did you test :
> reload ./web3py-start apps
> ?
>
> want to learning about reload, but not sure how to do it
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/581b115a-5b34-414a-a0f9-33e4b156ecc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
As mentioned before. Do not use the bottle built-in reloader. It is for a 
different use case. Also the reloader is not meant to with with gunicorn 
(because multiprocess). only this should work:

bottle.run(server='tornado', host=host, port=int(port))


On Saturday, 18 May 2019 04:49:41 UTC-7, 黄祥 wrote:
>
> test reload apps with gunicorn server and reloader=True, can run at first, 
> but when hit 'reload apps' it return an error on terminal
> *web3py/web3py/core.py*
> bottle.run(server='gunicorn', host=host, port=int(port), reloader=True)
>
> [2019-05-18 18:43:48 +0700] [47687] [INFO] Starting gunicorn 19.9.0
> [2019-05-18 18:43:48 +0700] [47687] [INFO] Listening at: http://
> 127.0.0.1:8000 (47687)
> [2019-05-18 18:43:48 +0700] [47687] [INFO] Using worker: sync
> [2019-05-18 18:43:48 +0700] [47691] [INFO] Booting worker with pid: 47691
> [2019-05-18 18:44:13 +0700] [47687] [INFO] Handling signal: int
> Traceback (most recent call last):
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/base.py"
> , line 190, in handle_quit
> time.sleep(0.1)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/hub.py"
> , line 159, in sleep
> hub.wait(t)
>   File "src/gevent/_hub_primitives.py", line 46, in gevent.
> __hub_primitives.WaitOperationsGreenlet.wait
>   File "src/gevent/_hub_primitives.py", line 55, in gevent.
> __hub_primitives.WaitOperationsGreenlet.wait
>   File "src/gevent/_waiter.py", line 151, in gevent.__waiter.Waiter.get
>   File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch
>   File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch
>   File "src/gevent/_greenlet_primitives.py", line 63, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch
>   File "src/gevent/_greenlet_primitives.py", line 66, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch_out
>   File "src/gevent/_greenlet_primitives.py", line 67, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch_out
> gevent.exceptions.BlockingSwitchOutError: Impossible to call blocking 
> function in the event loop callback
> 2019-05-18T11:44:13Z
> [2019-05-18 18:44:13 +0700] [47691] [ERROR] Exception in worker process
> Traceback (most recent call last):
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/arbiter.py"
> , line 583, in spawn_worker
> worker.init_process()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/base.py"
> , line 134, in init_process
> self.run()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/sync.py"
> , line 124, in run
> self.run_for_one(timeout)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/sync.py"
> , line 83, in run_for_one
> self.wait(timeout)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/sync.py"
> , line 35, in wait
> ret = select.select(self.wait_fds, [], [], timeout)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/select.py"
> , line 169, in select
> return result.select(rlist, wlist, timeout)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/select.py"
> , line 110, in select
> self.event.wait(timeout=timeout)
>   File "src/gevent/event.py", line 127, in gevent._event.Event.wait
>   File "src/gevent/_abstract_linkable.py", line 192, in gevent.
> __abstract_linkable.AbstractLinkable._wait
>   File "src/gevent/_abstract_linkable.py", line 165, in gevent.
> __abstract_linkable.AbstractLinkable._wait_core
>   File "src/gevent/_abstract_linkable.py", line 169, in gevent.
> __abstract_linkable.AbstractLinkable._wait_core
>   File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch
>   File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch
>   File "src/gevent/_greenlet_primitives.py", line 64, in gevent.
> __greenlet_primitives.SwitchOutGreenletWithLoop.switch
>   File "src/gevent/__greenlet_primitives.pxd", line 35, in gevent.
> __greenlet_primitives._greenlet_switch
> gevent.exceptions.BlockingSwitchOutError: Impossible to call blocking 
> function in the event loop callback
> [2019-05-18 18:44:13 +0700] [47691] [INFO] Worker exiting (pid: 47691)
> [2019-05-18 18:44:14 +0700] [47687] [INFO] Shutting down: Master
>
> 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 yo

Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
 Wait. You should not change that. Web3py does not uses the bottle bult-in 
reloader.  You should NOT have run(... reloader=True) I know that does not 
work well because of the order of imports.

Also reloader is not supposed to work if you set --number_workers. Could 
that be the problem?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/eb5606a7-be93-43fa-88a4-53bb89bd7cfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
No I initally tried from web3py folder to import apps.myapp.controllers.py 
but paths are relative and globals like evrirnment/gloabls like 
'WEB3PY_APPS_FOLDER' are not available in the shell. (also tried from apps 
and myapp folder but same). Probably need to write a little script.

So .. I literally created a example.py with a print statement .. loaded it, 
changed it and reloaded it .. changes were there which tends to indicate 
that reloader is working.

I am also not too familiar at all with reloader unfortunately but am sure 
we will find the solution.

BR
John


On Saturday, 18 May 2019 14:43:22 UTC+2, 黄祥 wrote:
>
> already checked : https://pypi.org/project/reload
> did you test :
> reload ./web3py-start apps
> ?
>
> want to learning about reload, but not sure how to do it
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2686d0f6-15b2-4919-aac2-71d8e8841274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
already checked : https://pypi.org/project/reload
did you test :
reload ./web3py-start apps
?

want to learning about reload, but not sure how to do it

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e671a7bb-d6fb-4a90-bc54-6a037651be9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Hi Stifan,

I basically followed the example on the PyPi site which works fine. NB I 
did not manage to reload the modules in apps/myapp manually (from shell).

Have not had too much time today to get into it deeply as have other 
commitments.

I did however try to force the load_app to load as opposed to reload when 
the button is clecked but still same result. 

Really weird.

BR
John


On Saturday, 18 May 2019 13:36:34 UTC+2, 黄祥 wrote:
>
> *web3py/web3py/core.py*
> tried
> bottle.run(server='tornado', host=host, port=int(port), reloader=True)
> and 
> bottle.run(host=host, port=int(port), reloader=True)
> got same result, edit and add new function, routes for  not work
>
> tested work for edit and add new function (but still routes for  
> still not work)
> *web3py/web3py/core.py*
> bottle.run(server='gevent', host=host, port=int(port), reloader=True)
>
> but the log run strangely (loaded web apps twice):
> $ ./web3py-start apps
>     __  __
> |  / / / / __ |/___ \/ __ \ \/ /
> | | / / /_  / /_/ /___/ / /_/ /\  /
> | | /| / / __/ / __  //__  / / / /
> | |/ |/ / /___/ /_/ /___/ / / / /
> |___/|_/_/_/_/_/ /_/
> It is still experimental...
>
> Dashboard is at: http://127.0.0.1:8000/_dashboard
> [OK] loaded _dashboard 
> [OK] loaded _scaffold 
> [OK] loaded examples 
> [OK] loaded myapp 
> [OK] loaded superheroes 
> [OK] loaded todo 
>  ___      __  __
> |  / / / / __ |/___ \/ __ \ \/ /
> | | / / /_  / /_/ /___/ / /_/ /\  /
> | | /| / / __/ / __  //__  / / / /
> | |/ |/ / /___/ /_/ /___/ / / / /
> |___/|_/_/_/_/_/ /_/
> It is still experimental...
>
> Dashboard is at: http://127.0.0.1:8000/_dashboard
> [OK] loaded _dashboard 
> [OK] loaded _scaffold 
> [OK] loaded examples 
> [OK] loaded myapp 
> [OK] loaded superheroes 
> [OK] loaded todo 
> Bottle v0.12.16 server starting up (using GeventServer())...
> Listening on http://127.0.0.1:8000/
> Hit Ctrl-C to quit.
>
> @john, perhaps you can share how to run reloader manually ?
>
> thx n 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/505119f8-1517-40bf-9c97-47155cc2c561%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
test reload apps with gunicorn server and reloader=True, can run at first, 
but when hit 'reload apps' it return an error on terminal
*web3py/web3py/core.py*
bottle.run(server='gunicorn', host=host, port=int(port), reloader=True)

[2019-05-18 18:43:48 +0700] [47687] [INFO] Starting gunicorn 19.9.0
[2019-05-18 18:43:48 +0700] [47687] [INFO] Listening at: http://127.0.0.1:8000 
(47687)
[2019-05-18 18:43:48 +0700] [47687] [INFO] Using worker: sync
[2019-05-18 18:43:48 +0700] [47691] [INFO] Booting worker with pid: 47691
[2019-05-18 18:44:13 +0700] [47687] [INFO] Handling signal: int
Traceback (most recent call last):
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/base.py"
, line 190, in handle_quit
time.sleep(0.1)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/hub.py"
, line 159, in sleep
hub.wait(t)
  File "src/gevent/_hub_primitives.py", line 46, in gevent.__hub_primitives.
WaitOperationsGreenlet.wait
  File "src/gevent/_hub_primitives.py", line 55, in gevent.__hub_primitives.
WaitOperationsGreenlet.wait
  File "src/gevent/_waiter.py", line 151, in gevent.__waiter.Waiter.get
  File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch
  File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch
  File "src/gevent/_greenlet_primitives.py", line 63, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch
  File "src/gevent/_greenlet_primitives.py", line 66, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch_out
  File "src/gevent/_greenlet_primitives.py", line 67, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch_out
gevent.exceptions.BlockingSwitchOutError: Impossible to call blocking 
function in the event loop callback
2019-05-18T11:44:13Z
[2019-05-18 18:44:13 +0700] [47691] [ERROR] Exception in worker process
Traceback (most recent call last):
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/arbiter.py"
, line 583, in spawn_worker
worker.init_process()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/base.py"
, line 134, in init_process
self.run()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/sync.py"
, line 124, in run
self.run_for_one(timeout)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/sync.py"
, line 83, in run_for_one
self.wait(timeout)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gunicorn/workers/sync.py"
, line 35, in wait
ret = select.select(self.wait_fds, [], [], timeout)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/select.py"
, line 169, in select
return result.select(rlist, wlist, timeout)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/gevent/select.py"
, line 110, in select
self.event.wait(timeout=timeout)
  File "src/gevent/event.py", line 127, in gevent._event.Event.wait
  File "src/gevent/_abstract_linkable.py", line 192, in gevent.
__abstract_linkable.AbstractLinkable._wait
  File "src/gevent/_abstract_linkable.py", line 165, in gevent.
__abstract_linkable.AbstractLinkable._wait_core
  File "src/gevent/_abstract_linkable.py", line 169, in gevent.
__abstract_linkable.AbstractLinkable._wait_core
  File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch
  File "src/gevent/_greenlet_primitives.py", line 60, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch
  File "src/gevent/_greenlet_primitives.py", line 64, in gevent.
__greenlet_primitives.SwitchOutGreenletWithLoop.switch
  File "src/gevent/__greenlet_primitives.pxd", line 35, in gevent.
__greenlet_primitives._greenlet_switch
gevent.exceptions.BlockingSwitchOutError: Impossible to call blocking 
function in the event loop callback
[2019-05-18 18:44:13 +0700] [47691] [INFO] Worker exiting (pid: 47691)
[2019-05-18 18:44:14 +0700] [47687] [INFO] Shutting down: Master

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8b14a7a9-7955-4c57-9a6d-b59d0e26244a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥

>
> What OS are you testing on?
>

mac, linux via docker (ubuntu, debian, centos or fedora) 
btw, seems not related with os, like root cause is in the web server module 
(parameter to run web server perhaps (not sure just guess) ), see previous 
message 

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/b5b6a714-fac9-4cf3-addb-dc708633f3f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread 黄祥
*web3py/web3py/core.py*
tried
bottle.run(server='tornado', host=host, port=int(port), reloader=True)
and 
bottle.run(host=host, port=int(port), reloader=True)
got same result, edit and add new function, routes for  not work

tested work for edit and add new function (but still routes for  
still not work)
*web3py/web3py/core.py*
bottle.run(server='gevent', host=host, port=int(port), reloader=True)

but the log run strangely (loaded web apps twice):
$ ./web3py-start apps
    __  __
|  / / / / __ |/___ \/ __ \ \/ /
| | / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / / / /
| |/ |/ / /___/ /_/ /___/ / / / /
|___/|_/_/_/_/_/ /_/
It is still experimental...

Dashboard is at: http://127.0.0.1:8000/_dashboard
[OK] loaded _dashboard 
[OK] loaded _scaffold 
[OK] loaded examples 
[OK] loaded myapp 
[OK] loaded superheroes 
[OK] loaded todo 
 ___      __  __
|  / / / / __ |/___ \/ __ \ \/ /
| | / / /_  / /_/ /___/ / /_/ /\  /
| | /| / / __/ / __  //__  / / / /
| |/ |/ / /___/ /_/ /___/ / / / /
|___/|_/_/_/_/_/ /_/
It is still experimental...

Dashboard is at: http://127.0.0.1:8000/_dashboard
[OK] loaded _dashboard 
[OK] loaded _scaffold 
[OK] loaded examples 
[OK] loaded myapp 
[OK] loaded superheroes 
[OK] loaded todo 
Bottle v0.12.16 server starting up (using GeventServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.

@john, perhaps you can share how to run reloader manually ?

thx n 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e14a41a8-406b-47f7-96e2-9811d0705c11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Hi Stifan,

 

What OS are you testing on?

 

BR

John

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of ??
Sent: 18 May 2019 08:14
To: web2py-users
Subject: Re: [web2py] Re: Web3py

 

Also, web3py uses this: 

https://pypi.org/project/reloader/

The docs have an example. Does this module work for you?

 

yes reloader already installed, since it's written on requirements.txt

git clone https://github.com/web2py/web3py
cd web3py
pip install -r requirements.txt

 

perhaps some files on your side not commited on github because of .gitignore
not sure just guess

 

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/46e203b8-b11d-4abd-96b9-99a26ef2b802%40googlegroups.com
 
<https://groups.google.com/d/msgid/web2py/46e203b8-b11d-4abd-96b9-99a26ef2b802%40googlegroups.com?utm_medium=email&utm_source=footer>
 .
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/01b401d50d6d%241ee6b490%245cb41db0%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Running reload manually works as advertised on PyPi


On Saturday, 18 May 2019 13:03:59 UTC+2, John Bannister wrote:
>
> Same result unfortunately
>
> On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote:
>>
>> what if you do not user tornado and replace
>>
>> bottle.run(server='tornado', host=host, port=int(port))
>>
>> with
>>
>> bottle.run(host=host, port=int(port))
>>
>> it is very strange. Please try test the reloader module on its own.
>>
>> On Friday, 17 May 2019 23:09:49 UTC-7, 黄祥 wrote:
>>>
>>> Does it print this when you press [reload]?

>>>
>>> yes it is
>>> $ ./web3py-start apps
>>>  ___      __  __ 
>>>
>>> |  / / / / __ |/___ \/ __ \ \/ / 
>>>
>>> | | / / /_  / /_/ /___/ / /_/ /\  / 
>>>
>>> | | /| / / __/ / __  //__  / / / / 
>>>
>>> | |/ |/ / /___/ /_/ /___/ / / / / 
>>>
>>> |___/|_/_/_/_/_/ /_/ 
>>>
>>> It is still experimental... 
>>>
>>> Dashboard is at: http://127.0.0.1:8000/_dashboard 
>>> [OK] loaded _dashboard  
>>> [OK] loaded _scaffold  
>>> [OK] loaded examples  
>>> [OK] loaded myapp  
>>> [OK] loaded superheroes  
>>> [OK] loaded todo  
>>> Bottle v0.12.16 server starting up (using TornadoServer())... 
>>> Listening on http://127.0.0.1:8000/ 
>>> Hit Ctrl-C to quit. 
>>>
>>> WARNING:tornado.access:404 GET /myapp/static/favicon.ico (127.0.0.1) 
>>> 2.32ms 
>>> WARNING:tornado.access:404 GET /examples/static/favicon.ico (127.0.0.1) 
>>> 2.35ms 
>>> WARNING:tornado.access:404 GET /todo/static/favicon.ico (127.0.0.1) 
>>> 2.07ms 
>>> WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 
>>> 1.89ms 
>>> WARNING:tornado.access:404 GET /superheroes/static/favicon.ico (127.0.
>>> 0.1) 1.65ms 
>>> WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 1.57ms 
>>> [OK] reloaded _dashboard  
>>> [OK] reloaded _scaffold  
>>> [OK] reloaded examples  
>>> [OK] reloaded myapp  
>>> [OK] reloaded superheroes  
>>> [OK] reloaded todo
>>>
>>>
>>> but 
>>> - 'routes for '
>>> - edit or add new function on web apps
>>> is not work
>>>
>>>
>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/dd678018-a959-4fa0-9b32-7af5b3bd51d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
Same result unfortunately

On Saturday, 18 May 2019 10:50:34 UTC+2, Massimo Di Pierro wrote:
>
> what if you do not user tornado and replace
>
> bottle.run(server='tornado', host=host, port=int(port))
>
> with
>
> bottle.run(host=host, port=int(port))
>
> it is very strange. Please try test the reloader module on its own.
>
> On Friday, 17 May 2019 23:09:49 UTC-7, 黄祥 wrote:
>>
>> Does it print this when you press [reload]?
>>>
>>
>> yes it is
>> $ ./web3py-start apps
>>  ___      __  __ 
>>
>> |  / / / / __ |/___ \/ __ \ \/ / 
>>
>> | | / / /_  / /_/ /___/ / /_/ /\  / 
>>
>> | | /| / / __/ / __  //__  / / / / 
>>
>> | |/ |/ / /___/ /_/ /___/ / / / / 
>>
>> |___/|_/_/_/_/_/ /_/ 
>>
>> It is still experimental... 
>>
>> Dashboard is at: http://127.0.0.1:8000/_dashboard 
>> [OK] loaded _dashboard  
>> [OK] loaded _scaffold  
>> [OK] loaded examples  
>> [OK] loaded myapp  
>> [OK] loaded superheroes  
>> [OK] loaded todo  
>> Bottle v0.12.16 server starting up (using TornadoServer())... 
>> Listening on http://127.0.0.1:8000/ 
>> Hit Ctrl-C to quit. 
>>
>> WARNING:tornado.access:404 GET /myapp/static/favicon.ico (127.0.0.1) 
>> 2.32ms 
>> WARNING:tornado.access:404 GET /examples/static/favicon.ico (127.0.0.1) 
>> 2.35ms 
>> WARNING:tornado.access:404 GET /todo/static/favicon.ico (127.0.0.1) 
>> 2.07ms 
>> WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 
>> 1.89ms 
>> WARNING:tornado.access:404 GET /superheroes/static/favicon.ico (127.0.0.1
>> ) 1.65ms 
>> WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 1.57ms 
>> [OK] reloaded _dashboard  
>> [OK] reloaded _scaffold  
>> [OK] reloaded examples  
>> [OK] reloaded myapp  
>> [OK] reloaded superheroes  
>> [OK] reloaded todo
>>
>>
>> but 
>> - 'routes for '
>> - edit or add new function on web apps
>> is not work
>>
>>
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/31f5fb66-df40-4807-b2d7-35fed989ebc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-18 Thread Massimo Di Pierro
what if you do not user tornado and replace

bottle.run(server='tornado', host=host, port=int(port))

with

bottle.run(host=host, port=int(port))

it is very strange. Please try test the reloader module on its own.

On Friday, 17 May 2019 23:09:49 UTC-7, 黄祥 wrote:
>
> Does it print this when you press [reload]?
>>
>
> yes it is
> $ ./web3py-start apps
>  ___      __  __ 
>
> |  / / / / __ |/___ \/ __ \ \/ / 
>
> | | / / /_  / /_/ /___/ / /_/ /\  / 
>
> | | /| / / __/ / __  //__  / / / / 
>
> | |/ |/ / /___/ /_/ /___/ / / / / 
>
> |___/|_/_/_/_/_/ /_/ 
>
> It is still experimental... 
>
> Dashboard is at: http://127.0.0.1:8000/_dashboard 
> [OK] loaded _dashboard  
> [OK] loaded _scaffold  
> [OK] loaded examples  
> [OK] loaded myapp  
> [OK] loaded superheroes  
> [OK] loaded todo  
> Bottle v0.12.16 server starting up (using TornadoServer())... 
> Listening on http://127.0.0.1:8000/ 
> Hit Ctrl-C to quit. 
>
> WARNING:tornado.access:404 GET /myapp/static/favicon.ico (127.0.0.1) 
> 2.32ms 
> WARNING:tornado.access:404 GET /examples/static/favicon.ico (127.0.0.1) 
> 2.35ms 
> WARNING:tornado.access:404 GET /todo/static/favicon.ico (127.0.0.1) 2.07ms 
> WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 
> 1.89ms 
> WARNING:tornado.access:404 GET /superheroes/static/favicon.ico (127.0.0.1) 
> 1.65ms 
> WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 1.57ms 
> [OK] reloaded _dashboard  
> [OK] reloaded _scaffold  
> [OK] reloaded examples  
> [OK] reloaded myapp  
> [OK] reloaded superheroes  
> [OK] reloaded todo
>
>
> but 
> - 'routes for '
> - edit or add new function on web apps
> is not work
>
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d3803700-3843-438f-b600-d6cfd2ecf956%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web3py

2019-05-18 Thread John Bannister
I am getting the below reload console output when I fire up tornado as well as 
when I hit the reload all button on both windows and Ubuntu installations.

BR

John

 

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Massimo Di Pierro
Sent: 18 May 2019 07:20
To: web2py-users
Subject: Re: [web2py] Re: Web3py

 

Also, web3py uses this: 

https://pypi.org/project/reloader/

The docs have an example. Does this module work for you?

 


On Friday, 17 May 2019 22:12:39 UTC-7, Massimo Di Pierro wrote:

Does it print this when you press [reload]?

 

[OK] reloaded _dashboard 
[OK] reloaded myapp 
[OK] reloaded todo 
[OK] reloaded superheroes 
[OK] reloaded examples 
[OK] reloaded _scaffold


On Friday, 17 May 2019 16:03:18 UTC-7, John Bannister wrote:

For me I have not installed any npm or other. Clean python 3 virtual 
environment into which I installed web3py on Ubuntu. Base install on windows 10 
as well same. All works fine apart from the reloading. I can try to set up on 
one of my Centos 7 servers later tomorrow but am pretty sure its gonna be the 
same.

 

Best Regards

John

 


On Friday, 17 May 2019 23:47:38 UTC+2, 黄祥 wrote:

Editing apps and reloading forks for me. Please try again and let's try figure 
out why does not work for you.

 

after tried latest commit (110), guess when it's work on you, but not work on 
us, perhaps related with module installed (python or js via npm) on your side, 
but not installed on us. not sure just guess.

 

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/456b6c96-fac7-456f-bcdb-8df87464af31%40googlegroups.com
 
<https://groups.google.com/d/msgid/web2py/456b6c96-fac7-456f-bcdb-8df87464af31%40googlegroups.com?utm_medium=email&utm_source=footer>
 .
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/015601d50d4b%24a6a57ff0%24f3f07fd0%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥

>
> Also, web3py uses this: 
> https://pypi.org/project/reloader/
> The docs have an example. Does this module work for you?
>

yes reloader already installed, since it's written on requirements.txt
git clone https://github.com/web2py/web3py
cd web3py
pip install -r requirements.txt

perhaps some files on your side not commited on github because of .gitignore
not sure just guess

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/46e203b8-b11d-4abd-96b9-99a26ef2b802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥

>
> Does it print this when you press [reload]?
>

yes it is
$ ./web3py-start apps
 ___      __  __ 

|  / / / / __ |/___ \/ __ \ \/ / 

| | / / /_  / /_/ /___/ / /_/ /\  / 

| | /| / / __/ / __  //__  / / / / 

| |/ |/ / /___/ /_/ /___/ / / / / 

|___/|_/_/_/_/_/ /_/ 

It is still experimental... 

Dashboard is at: http://127.0.0.1:8000/_dashboard 
[OK] loaded _dashboard  
[OK] loaded _scaffold  
[OK] loaded examples  
[OK] loaded myapp  
[OK] loaded superheroes  
[OK] loaded todo  
Bottle v0.12.16 server starting up (using TornadoServer())... 
Listening on http://127.0.0.1:8000/ 
Hit Ctrl-C to quit. 

WARNING:tornado.access:404 GET /myapp/static/favicon.ico (127.0.0.1) 2.32ms 
WARNING:tornado.access:404 GET /examples/static/favicon.ico (127.0.0.1) 
2.35ms 
WARNING:tornado.access:404 GET /todo/static/favicon.ico (127.0.0.1) 2.07ms 
WARNING:tornado.access:404 GET /_scaffold/static/favicon.ico (127.0.0.1) 
1.89ms 
WARNING:tornado.access:404 GET /superheroes/static/favicon.ico (127.0.0.1) 
1.65ms 
WARNING:tornado.access:404 GET /favicon.ico (127.0.0.1) 1.57ms 
[OK] reloaded _dashboard  
[OK] reloaded _scaffold  
[OK] reloaded examples  
[OK] reloaded myapp  
[OK] reloaded superheroes  
[OK] reloaded todo


but 
- 'routes for '
- edit or add new function on web apps
is not work


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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0dfe44e6-1517-4083-b0f3-58873e3b9f8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
Also, web3py uses this: 
https://pypi.org/project/reloader/
The docs have an example. Does this module work for you?


On Friday, 17 May 2019 22:12:39 UTC-7, Massimo Di Pierro wrote:
>
> Does it print this when you press [reload]?
>
> [OK] reloaded _dashboard 
> [OK] reloaded myapp 
> [OK] reloaded todo 
> [OK] reloaded superheroes 
> [OK] reloaded examples 
> [OK] reloaded _scaffold
>
> On Friday, 17 May 2019 16:03:18 UTC-7, John Bannister wrote:
>>
>> For me I have not installed any npm or other. Clean python 3 virtual 
>> environment into which I installed web3py on Ubuntu. Base install on 
>> windows 10 as well same. All works fine apart from the reloading. I can try 
>> to set up on one of my Centos 7 servers later tomorrow but am pretty sure 
>> its gonna be the same.
>>
>> Best Regards
>> John
>>
>>
>> On Friday, 17 May 2019 23:47:38 UTC+2, 黄祥 wrote:
>>>
>>> Editing apps and reloading forks for me. Please try again and let's try 
 figure out why does not work for you.

>>>
>>> after tried latest commit (110), guess when it's work on you, but not 
>>> work on us, perhaps related with module installed (python or js via npm) on 
>>> your side, but not installed on us. not sure just guess.
>>>
>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/456b6c96-fac7-456f-bcdb-8df87464af31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
Does it print this when you press [reload]?

[OK] reloaded _dashboard 
[OK] reloaded myapp 
[OK] reloaded todo 
[OK] reloaded superheroes 
[OK] reloaded examples 
[OK] reloaded _scaffold

On Friday, 17 May 2019 16:03:18 UTC-7, John Bannister wrote:
>
> For me I have not installed any npm or other. Clean python 3 virtual 
> environment into which I installed web3py on Ubuntu. Base install on 
> windows 10 as well same. All works fine apart from the reloading. I can try 
> to set up on one of my Centos 7 servers later tomorrow but am pretty sure 
> its gonna be the same.
>
> Best Regards
> John
>
>
> On Friday, 17 May 2019 23:47:38 UTC+2, 黄祥 wrote:
>>
>> Editing apps and reloading forks for me. Please try again and let's try 
>>> figure out why does not work for you.
>>>
>>
>> after tried latest commit (110), guess when it's work on you, but not 
>> work on us, perhaps related with module installed (python or js via npm) on 
>> your side, but not installed on us. not sure just guess.
>>
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/193c5899-0629-4140-8484-05f2c8178468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
For me I have not installed any npm or other. Clean python 3 virtual 
environment into which I installed web3py on Ubuntu. Base install on 
windows 10 as well same. All works fine apart from the reloading. I can try 
to set up on one of my Centos 7 servers later tomorrow but am pretty sure 
its gonna be the same.

Best Regards
John


On Friday, 17 May 2019 23:47:38 UTC+2, 黄祥 wrote:
>
> Editing apps and reloading forks for me. Please try again and let's try 
>> figure out why does not work for you.
>>
>
> after tried latest commit (110), guess when it's work on you, but not work 
> on us, perhaps related with module installed (python or js via npm) on your 
> side, but not installed on us. not sure just guess.
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3b2a4b86-330c-4cf5-a883-83068d3626f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥

>
> Editing apps and reloading forks for me. Please try again and let's try 
> figure out why does not work for you.
>

after tried latest commit (110), guess when it's work on you, but not work 
on us, perhaps related with module installed (python or js via npm) on your 
side, but not installed on us. not sure just guess.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/45c78276-aeb9-42f9-99f3-4c169579670c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Update on this :-

Just tried it on native windows10  python3.7 and same results. New 
functions return error 404 until server restart.

BR
John

On Friday, 17 May 2019 18:49:28 UTC+2, 黄祥 wrote:
>
> problem still exist (in commits 110) only superheroes app traceback error 
> is gone when hit 'reload apps':
> 1. 'routes for ' disappears after hit 'reload apps' for : 
> - scaffold
> - myapp
> but for _dashboard, example, todo still exist (appears as expected)
> 2. editing and adding new function in controller apps/myapp/controller.py
> @action('helloworld') # exposes http://127.0.0.1:8000/myapp/helloworld
> @action.uses(db, 'helloworld.html')
> def helloworld(): return dict(name=request.forms.get('name', 'visitoras'))
>
> @action('helloworld1') # exposes http://127.0.0.1:8000/myapp/helloworld
> @action.uses(db, 'helloworld.html')
> def helloworld1(): return dict(name=request.forms.get('name', 'visitorasd'
> ))
>
> *result (not expected) when hit : *http://localhost:8000/myapp/helloworld
> Hello Dear visitor
>
> *result (not expected) when hit : *http://localhost:8000/myapp/helloworld1
> 404
> not found
>
> *steps*
> rm -rf web3py
> git clone https://github.com/web2py/web3py
> cd web3py
> source activate python3_test
> pip install -U -r requirements.txt
> ./web3py-start apps
>
> also seen you've had mailer.py, is still not tested yet, no example or no 
> doc available
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/5755e5bb-cd53-41e8-a014-cfe33cf3e0aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-05-17 Thread 黄祥
problem still exist (in commits 110) only superheroes app traceback error 
is gone when hit 'reload apps':
1. 'routes for ' disappears after hit 'reload apps' for : 
- scaffold
- myapp
but for _dashboard, example, todo still exist (appears as expected)
2. editing and adding new function in controller apps/myapp/controller.py
@action('helloworld') # exposes http://127.0.0.1:8000/myapp/helloworld
@action.uses(db, 'helloworld.html')
def helloworld(): return dict(name=request.forms.get('name', 'visitoras'))

@action('helloworld1') # exposes http://127.0.0.1:8000/myapp/helloworld
@action.uses(db, 'helloworld.html')
def helloworld1(): return dict(name=request.forms.get('name', 'visitorasd'))

*result (not expected) when hit : *http://localhost:8000/myapp/helloworld
Hello Dear visitor

*result (not expected) when hit : *http://localhost:8000/myapp/helloworld1
404
not found

*steps*
rm -rf web3py
git clone https://github.com/web2py/web3py
cd web3py
source activate python3_test
pip install -U -r requirements.txt
./web3py-start apps

also seen you've had mailer.py, is still not tested yet, no example or no 
doc available

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/997ba379-3a3f-42d9-95fc-b3ace6f82b30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Hi Massimo,

 

I have downloaded latest web3py and same thing is happening. I can see in the 
console that it is reloading all the apps but for me updates are not happening 
until I restart the server.

 

I am running web3py in a python3 venv  on windows/linux (Ubuntu 18) python 3.6.

 

Myapp/controller.py

 

from web3py import action, request, redirect, abort

from . models import db

 

@action('helloworld') # exposes http://127.0.0.1:8000/myapp/helloworld

@action.uses(db, 'helloworld.html')

def helloworld(): return dict(name=request.forms.get('name', 'visitor'))

 

@action('helloworld1') # exposes http://127.0.0.1:8000/myapp/helloworld1

@action.uses(db, 'helloworld.html')

def helloworld1(): return dict(name=' 1 '+ request.forms.get('name', 'visitor'))

 

@action('helloworld2') # exposes http://127.0.0.1:8000/myapp/helloworld2

@action.uses(db, 'helloworld.html')

def helloworld2(): return dict(name=' 2 ' +request.forms.get('name', 'visitor'))

 

@action('helloworld3') # exposes http://127.0.0.1:8000/myapp/helloworld3

@action.uses(db, 'helloworld.html')

def helloworld3(): return dict(name=' 3 ' + request.forms.get('name', 
'visitor'))  

 

After reload apps only helloworld accessible. After server restart all are.

 

BR

John

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Massimo Di Pierro
Sent: 17 May 2019 17:12
To: web2py-users
Subject: Re: [web2py] Re: Web3py

 

I fixed the database locking problem. missing db.commit()

Editing apps and reloading forks for me. Please try again and let's try figure 
out why does not work for you.

It is intentionally reloading all apps but this can easily be changed. I will 
change it.

 

Massimo

 


On Friday, 17 May 2019 02:10:27 UTC-7, John Bannister wrote:

Hi Massimo,

 

I have tried that but it has no effect. It seems to be doing something for a 
while but the only way I can get changes to appear is to restart the server.

 

Basically what I did was to copy and rename the helloworld action a few times 
so helloworld1 …….helloworld7 (all in same controller.py)  giving appropriate 
return messages.

 

If I reload using the dashboard button I still only see helloworld (the rest 
give me 404 errors) but if I restart the server I can access myapp/helloworld1 
to myapp/helloworld7.

 

Also it seems that the reload apps button is reloading all the apps in the 
applications directory. Is this intentional or is there a way to just reload 
the app currently being developed?

 

BR

John 

 

 

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Massimo Di Pierro
Sent: 17 May 2019 09:36
To: web2py-users
Subject: [web2py] Re: Web3py

 

yes. There is a button on the top/right of the dashboard "reload apps"

On Thursday, 16 May 2019 08:15:44 UTC-7, John Bannister wrote:

Hi All,

 

Had a first real 'play' with web3py' today and have a few questions the biggest 
of which I am hoping the gurus will be able to answer:-

 

1: Is there any way to not to have to restart the app every time changes are 
made to actions in the controller or new actions added etc? I understand that 
controllers are basically being imported when the app fires up but is any there 
any way to occasionally reload instead of having to restart the app? This is a 
fairly big one for me as sometimes tweaks will need to be made in production 
and restarting the web server is not really an option so hopefully I am missing 
something really simple.

 

Thanks in advance

John

 

 

 

 

 

 

  

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c33707df-ec41-4574-a6a6-54c2905ff10e%40googlegroups.com
 
<https://groups.google.com/d/msgid/web2py/c33707df-ec41-4574-a6a6-54c2905ff10e%40googlegroups.com?utm_medium=email&utm_source=footer>
 .
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.
To view this discussion on the web visit 
ht

Re: [web2py] Re: Web3py

2019-05-17 Thread Massimo Di Pierro
I fixed the database locking problem. missing db.commit()
Editing apps and reloading forks for me. Please try again and let's try 
figure out why does not work for you.
It is intentionally reloading all apps but this can easily be changed. I 
will change it.

Massimo


On Friday, 17 May 2019 02:10:27 UTC-7, John Bannister wrote:
>
> Hi Massimo,
>
>  
>
> I have tried that but it has no effect. It seems to be doing something for 
> a while but the only way I can get changes to appear is to restart the 
> server.
>
>  
>
> Basically what I did was to copy and rename the helloworld action a few 
> times so helloworld1 …….helloworld7 (all in same controller.py)  giving 
> appropriate return messages.
>
>  
>
> If I reload using the dashboard button I still only see helloworld (the 
> rest give me 404 errors) but if I restart the server I can access 
> myapp/helloworld1 to myapp/helloworld7.
>
>  
>
> Also it seems that the reload apps button is reloading all the apps in the 
> applications directory. Is this intentional or is there a way to just 
> reload the app currently being developed?
>
>  
>
> BR
>
> John 
>
>  
>
>  
>
>  
>
> *From:* web2py@googlegroups.com [mailto:web2py@googlegroups.com] *On 
> Behalf Of *Massimo Di Pierro
> *Sent:* 17 May 2019 09:36
> *To:* web2py-users
> *Subject:* [web2py] Re: Web3py
>
>  
>
> yes. There is a button on the top/right of the dashboard "reload apps"
>
> On Thursday, 16 May 2019 08:15:44 UTC-7, John Bannister wrote:
>
> Hi All,
>
>  
>
> Had a first real 'play' with web3py' today and have a few questions the 
> biggest of which I am hoping the gurus will be able to answer:-
>
>  
>
> 1: Is there any way to not to have to restart the app every time changes 
> are made to actions in the controller or new actions added etc? I 
> understand that controllers are basically being imported when the app fires 
> up but is any there any way to occasionally reload instead of having to 
> restart the app? This is a fairly big one for me as sometimes tweaks will 
> need to be made in production and restarting the web server is not really 
> an option so hopefully I am missing something really simple.
>
>  
>
> Thanks in advance
>
> John
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>   
>
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/web2py/c33707df-ec41-4574-a6a6-54c2905ff10e%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/84b51eaa-209e-45fa-88a3-d4f986f7a441%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: [web2py] Re: Web3py

2019-05-17 Thread John Bannister
Hi Massimo,

 

I have tried that but it has no effect. It seems to be doing something for a 
while but the only way I can get changes to appear is to restart the server.

 

Basically what I did was to copy and rename the helloworld action a few times 
so helloworld1 …….helloworld7 (all in same controller.py)  giving appropriate 
return messages.

 

If I reload using the dashboard button I still only see helloworld (the rest 
give me 404 errors) but if I restart the server I can access myapp/helloworld1 
to myapp/helloworld7.

 

Also it seems that the reload apps button is reloading all the apps in the 
applications directory. Is this intentional or is there a way to just reload 
the app currently being developed?

 

BR

John 

 

 

 

From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of 
Massimo Di Pierro
Sent: 17 May 2019 09:36
To: web2py-users
Subject: [web2py] Re: Web3py

 

yes. There is a button on the top/right of the dashboard "reload apps"

On Thursday, 16 May 2019 08:15:44 UTC-7, John Bannister wrote:

Hi All,

 

Had a first real 'play' with web3py' today and have a few questions the biggest 
of which I am hoping the gurus will be able to answer:-

 

1: Is there any way to not to have to restart the app every time changes are 
made to actions in the controller or new actions added etc? I understand that 
controllers are basically being imported when the app fires up but is any there 
any way to occasionally reload instead of having to restart the app? This is a 
fairly big one for me as sometimes tweaks will need to be made in production 
and restarting the web server is not really an option so hopefully I am missing 
something really simple.

 

Thanks in advance

John

 

 

 

 

 

 

  

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c33707df-ec41-4574-a6a6-54c2905ff10e%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/02ab01d50c90%245b5be270%241213a750%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Web3py

2019-04-23 Thread Massimo Di Pierro
stupid was an experiment. the _dashboard is based on some variation of it. 
I do not think it good enough for what people expect from a css framework 
today. The collection of pure css effects in there has some value but 
that's all.

On Tuesday, 23 April 2019 21:34:41 UTC-7, Dave S wrote:
>
>
>
> On Saturday, April 20, 2019 at 5:25:01 PM UTC-7, Massimo Di Pierro wrote:
>>
>> I have been looking more into veutify. I have some reservations.
>> I think a good CSS framework (for web3py) should be JS agnostic, even if 
>> the examples use vue.js. 
>> I think effects should be done in CSS only, not in JS. vuetify does not 
>> follow this rule.
>> Also vuetify is really designed for use with the CLI and I would like 
>> web3py to remain CLI agnostic.
>> Documentation is not good yet.
>> I think I will stick to bulma for now for the simplest example apps and 
>> dashboard.
>>
>> For mobile app style, I like Framework7 a lot.
>>
>> Massimo
>>
>
> Is stupid.css a dead end?  Too much re-inventing the wheel?
>
> /dps
>  
>
>>
>> On Wednesday, 17 April 2019 21:31:48 UTC-7, Massimo Di Pierro wrote:
>>>
>>> Ignorance on my side. If you want to make a PR switching to vuetify I 
>>> will accept it.
>>>
>>>
>>> On Wednesday, 17 April 2019 02:17:49 UTC-7, Ramos wrote:

 Massimo , any reason you chose Bulma instead of vuetify ?
 Vuetify is designed specifically for vuejs 
 Regards
 António

 Em qua, 17 de abr de 2019 às 09:37, António Ramos  
 escreveu:

> Worked for me...
>
>
> Em ter, 16 de abr de 2019 às 21:32, En Ware  
> escreveu:
>
>> Thank you , that did it.
>>
>> On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro 
>> wrote:
>>>
>>> You have an old pydal. Do
>>>
>>> pip3 install --upgrade pydal
>>>
>>> Also do
>>>
>>> python3 web3py.py applications
>>>
>>> Not
>>>
>>> python3 web3py.py applications/todo/
>>>
>>> -- 
>> 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 web...@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: Web3py

2019-04-23 Thread Dave S


On Saturday, April 20, 2019 at 5:25:01 PM UTC-7, Massimo Di Pierro wrote:
>
> I have been looking more into veutify. I have some reservations.
> I think a good CSS framework (for web3py) should be JS agnostic, even if 
> the examples use vue.js. 
> I think effects should be done in CSS only, not in JS. vuetify does not 
> follow this rule.
> Also vuetify is really designed for use with the CLI and I would like 
> web3py to remain CLI agnostic.
> Documentation is not good yet.
> I think I will stick to bulma for now for the simplest example apps and 
> dashboard.
>
> For mobile app style, I like Framework7 a lot.
>
> Massimo
>

Is stupid.css a dead end?  Too much re-inventing the wheel?

/dps
 

>
> On Wednesday, 17 April 2019 21:31:48 UTC-7, Massimo Di Pierro wrote:
>>
>> Ignorance on my side. If you want to make a PR switching to vuetify I 
>> will accept it.
>>
>>
>> On Wednesday, 17 April 2019 02:17:49 UTC-7, Ramos wrote:
>>>
>>> Massimo , any reason you chose Bulma instead of vuetify ?
>>> Vuetify is designed specifically for vuejs 
>>> Regards
>>> António
>>>
>>> Em qua, 17 de abr de 2019 às 09:37, António Ramos >> > escreveu:
>>>
 Worked for me...


 Em ter, 16 de abr de 2019 às 21:32, En Ware >>> > escreveu:

> Thank you , that did it.
>
> On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro 
> wrote:
>>
>> You have an old pydal. Do
>>
>> pip3 install --upgrade pydal
>>
>> Also do
>>
>> python3 web3py.py applications
>>
>> Not
>>
>> python3 web3py.py applications/todo/
>>
>> -- 
> 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 web...@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: Web3py

2019-04-23 Thread Dave S


On Tuesday, April 23, 2019 at 8:44:26 AM UTC-7, 黄祥 wrote:
>
> the web2py admin is different. The web3py one is much more spartan. But 
>> the functions that need to be ported to zip/unzip apps are indentical.
>>
>
> not sure got the meaning of spartan
>


"spartan", "spare", and "barebones" all have senses relating to mimimalism 
(in a general sense, not just Terry Riley's music) and lack of frills or 
extras.  "Spartan", of course, is derived from the ancient Greek 
nation-state, whose populatiion was encougraged to be tough, avoid excess, 
and be ready to bear hardship.

Massimo is saying that the web3py admin (dashboard?) has enough features to 
be useful, but doesn't include cupholders and leather seats.

(Both Land Rover and Land Cruiser have become much more like yachts these 
days.)

/dps



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

2019-04-23 Thread 黄祥

>
> the web2py admin is different. The web3py one is much more spartan. But 
> the functions that need to be ported to zip/unzip apps are indentical.
>

not sure got the meaning of spartan
tested last commit, all errors above gone (_dashboard and _scaffold)
just a note for default requirements.txt for guncorn, seems it can't run 
windows, is it design that way ? 
another alternatives run on windows n *nix environment : waitress or rocket 
(same like web2py)

*ref:*
https://stackoverflow.com/questions/11087682/does-gunicorn-run-on-windows

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

2019-04-22 Thread Massimo Di Pierro
my mistake. I added it.

the web2py admin is different. The web3py one is much more spartan. But the 
functions that need to be ported to zip/unzip apps are indentical.

On Monday, 22 April 2019 17:14:07 UTC-7, 黄祥 wrote:
>
> 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0
>> 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /_dashboard/static/index.html 
>> HTTP/1.1" 404 459
>> 127.0.0.1 - - [22/Apr/2019 03:08:56] "GET /_dashboard/ HTTP/1.1" 404 459
>> 127.0.0.1 - - [22/Apr/2019 03:09:31] "GET /_dashboard/dashboard HTTP/1.1" 
>> 404 459
>> 127.0.0.1 - - [22/Apr/2019 03:09:35] "GET /_dashboard/info HTTP/1.1" 200 
>> >
>
> error in dashboard seems there is no index.html file on 
> /_dashboard/static/index.html, which is occured in previous commit
> want to help n learn, but not sure is it same to learn it from 
> web2py/applications/admin/controllers/appadmin.py can be apply to 
> web3py/applications/_dashboard/__init__.py ?
>
> 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: Web3py

2019-04-22 Thread 黄祥

>
> 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0
> 127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /_dashboard/static/index.html 
> HTTP/1.1" 404 459
> 127.0.0.1 - - [22/Apr/2019 03:08:56] "GET /_dashboard/ HTTP/1.1" 404 459
> 127.0.0.1 - - [22/Apr/2019 03:09:31] "GET /_dashboard/dashboard HTTP/1.1" 
> 404 459
> 127.0.0.1 - - [22/Apr/2019 03:09:35] "GET /_dashboard/info HTTP/1.1" 200 
> 

error in dashboard seems there is no index.html file on 
/_dashboard/static/index.html, which is occured in previous commit
want to help n learn, but not sure is it same to learn it from 
web2py/applications/admin/controllers/appadmin.py can be apply to 
web3py/applications/_dashboard/__init__.py ?

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

2019-04-22 Thread 黄祥

>
> Traceback (most recent call last):
>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 460, in 
> import_apps
> module = importlib.import_module(app_name)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py"
> , line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1006, in _gcd_import
>   File "", line 983, in _find_and_load
>   File "", line 967, in 
> _find_and_load_unlocked
>   File "", line 677, in _load_unlocked
>   File "", line 728, in exec_module
>   File "", line 219, in 
> _call_with_frames_removed
>   File 
> "/Users/sugizo/learn/python/web3py/applications/_scaffold/__init__.py", 
> line 1, in 
> from . import controllers
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
> , line 158, in _import
> base = _baseimport(name, globals, locals, fromlist, level)
>   File 
> "/Users/sugizo/learn/python/web3py/applications/_scaffold/controllers.py", 
> line 3, in 
> from . import models
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
> , line 158, in _import
> base = _baseimport(name, globals, locals, fromlist, level)
>   File 
> "/Users/sugizo/learn/python/web3py/applications/_scaffold/models.py", 
> line 8, in 
> pool_size=settings.DB_POOL_SIZE)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 171, in __call__
> obj = super(MetaDAL, cls).__call__(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 477, in __init__
> "Failure to connect, tried %d times:\n%s" % (attempts, tb)
> RuntimeError: Failure to connect, tried 5 times:
> Traceback (most recent call last):
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 457, in __init__
> self._adapter = adapter(**kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py"
> , line 39, in __call__
> obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
> , line 369, in __init__
> super(SQLAdapter, self).__init__(*args, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
> , line 53, in __init__
> self.reconnect()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/connection.py"
> , line 154, in reconnect
> self.connection = self.connector()
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/sqlite.py"
> , line 42, in connector
> return self.driver.Connection(self.dbpath, **self.driver_args)
> sqlite3.OperationalError: unable to open database file
>

solved by created the databases directory on _scaffold's folder

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

2019-04-21 Thread Massimo Di Pierro
I will work on auth.

I could use some help with _dashboard. The "create app", "upload app" and 
"pack app" buttons do not work but this logic should work the same as in 
web2py. Should be easy to backport if somebody can help this week.

Massimo


On Sunday, 21 April 2019 09:32:27 UTC-7, Kevin Keller wrote:
>
> I was wrong.. Found a recent integration with bottle  and oauthlib.. 
> https://github.com/thomsonreuters/bottle-oauthlib/blob/master/README.md
>
> Now we only need to figure out jwt and easy rest crud.. Which bottle is 
> perfect for and finally use the before mentioned openapi generator with 
> bottle and we are good to go. 
>
>
>
> On Sun, 21 Apr 2019, 12:05 Kevin Keller,  wrote:
>
>> Authentication + authorization and documentation of endpoints are 
>> actually the hardest part.
>>
>> There is a. Flask based framework called connexxion which asks you to 
>> create the openapi spec before the code which has jwt and oauth2 build in 
>> as. Well. 
>>
>>
>> Then there are flask Rebar which can use jwt and auth0 build in . Also 
>> gernatrss openapi 2 documentation.
>>
>> And there is Sars., also a Flask based framework thst generates openapi 2 
>> documentation and can easily extend with jwt and oauth2 via flask plug-ins.
>>
>> There is also hug, based on the falcon framework.. Also generates openapi 
>> v2 documentation and has an oauth2 plugin and does jwt build in. 
>>
>> Thus I was thinking to bring up this topic early. 
>>
>> Bottle does not have this kind of out of the box suopport, but there is a 
>> framework agnostic openapi generator we could use : 
>> https://apispec.readthedocs.io/en/stable/
>>
>> And we could create a oauth2 plugin for bottle (the current one is 
>> deprecated) based on authlib. 
>> Authlib also has the ability to generate jwt tokens, but for standalone 
>> tokens we could use pyjwt I guess. 
>>
>> When we scaffold crud apis and vue frontends with authentication in place 
>> thst would be great just as it was with web2py by just using a decorator I. 
>> E. Crud api routes and functions and authentication via tokens and/or 
>> oauth2. 
>>
>> The openapi makes it easy to collaborate with others in Microservice 
>> environment and also gives users the ability to generate UIs sich as with 
>> angular and react based on openapi specs Web3py generated for thr enpoints. 
>>
>>
>>
>>
>>
>> On Sun, 21 Apr 2019, 04:03 黄祥,  wrote:
>>
>>> scaffolding app would be nice to have example of authentication (user 
>>> registration, login and logout) and to update the data, e.g. update todo 
>>> list on todo app
>>> just wondering, if form used manually using javascript, is the field 
>>> validation on pydal, still can work ? e.g. requires=IS_NOT_EMPTY()
>>>
>>> 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.
>>>
>>

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

2019-04-21 Thread 黄祥
Traceback (most recent call last):
  File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 460, in 
import_apps
module = importlib.import_module(app_name)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/importlib/__init__.py"
, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1006, in _gcd_import
  File "", line 983, in _find_and_load
  File "", line 967, in _find_and_load_unlocked
  File "", line 677, in _load_unlocked
  File "", line 728, in exec_module
  File "", line 219, in 
_call_with_frames_removed
  File 
"/Users/sugizo/learn/python/web3py/applications/_scaffold/__init__.py", 
line 1, in 
from . import controllers
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
, line 158, in _import
base = _baseimport(name, globals, locals, fromlist, level)
  File 
"/Users/sugizo/learn/python/web3py/applications/_scaffold/controllers.py", 
line 3, in 
from . import models
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/reloader.py"
, line 158, in _import
base = _baseimport(name, globals, locals, fromlist, level)
  File "/Users/sugizo/learn/python/web3py/applications/_scaffold/models.py", 
line 8, in 
pool_size=settings.DB_POOL_SIZE)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
, line 171, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
, line 477, in __init__
"Failure to connect, tried %d times:\n%s" % (attempts, tb)
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
, line 457, in __init__
self._adapter = adapter(**kwargs)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/__init__.py"
, line 39, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
, line 369, in __init__
super(SQLAdapter, self).__init__(*args, **kwargs)
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/base.py"
, line 53, in __init__
self.reconnect()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/connection.py"
, line 154, in reconnect
self.connection = self.connector()
  File 
"/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/adapters/sqlite.py"
, line 42, in connector
return self.driver.Connection(self.dbpath, **self.driver_args)
sqlite3.OperationalError: unable to open database file

Bottle v0.12.16 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.

127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /dashboard HTTP/1.1" 303 0
127.0.0.1 - - [22/Apr/2019 03:08:12] "GET /_dashboard/static/index.html 
HTTP/1.1" 404 459
127.0.0.1 - - [22/Apr/2019 03:08:56] "GET /_dashboard/ HTTP/1.1" 404 459
127.0.0.1 - - [22/Apr/2019 03:09:31] "GET /_dashboard/dashboard HTTP/1.1" 
404 459
127.0.0.1 - - [22/Apr/2019 03:09:35] "GET /_dashboard/info HTTP/1.1" 200 

127.0.0.1 - - [22/Apr/2019 03:09:59] "GET /_dashboard/routes HTTP/1.1" 200 
2711
127.0.0.1 - - [22/Apr/2019 03:10:21] "GET /_dashboard/apps HTTP/1.1" 200 
3410
127.0.0.1 - - [22/Apr/2019 03:11:00] "GET /_scaffold HTTP/1.1" 404 457
127.0.0.1 - - [22/Apr/2019 03:11:33] "GET /_scaffold/index HTTP/1.1" 404 457

*step*
rm -rf ~/learn/python/web3py
cd ~/learn/python
git clone https://github.com/web2py/web3py
cd ~/learn/python/web3py
source activate python3_test
pip install -U -r requirements.txt
python web3py-start applications/

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

2019-04-21 Thread Kevin Keller
I was wrong.. Found a recent integration with bottle  and oauthlib..
https://github.com/thomsonreuters/bottle-oauthlib/blob/master/README.md

Now we only need to figure out jwt and easy rest crud.. Which bottle is
perfect for and finally use the before mentioned openapi generator with
bottle and we are good to go.



On Sun, 21 Apr 2019, 12:05 Kevin Keller,  wrote:

> Authentication + authorization and documentation of endpoints are actually
> the hardest part.
>
> There is a. Flask based framework called connexxion which asks you to
> create the openapi spec before the code which has jwt and oauth2 build in
> as. Well.
>
>
> Then there are flask Rebar which can use jwt and auth0 build in . Also
> gernatrss openapi 2 documentation.
>
> And there is Sars., also a Flask based framework thst generates openapi 2
> documentation and can easily extend with jwt and oauth2 via flask plug-ins.
>
> There is also hug, based on the falcon framework.. Also generates openapi
> v2 documentation and has an oauth2 plugin and does jwt build in.
>
> Thus I was thinking to bring up this topic early.
>
> Bottle does not have this kind of out of the box suopport, but there is a
> framework agnostic openapi generator we could use :
> https://apispec.readthedocs.io/en/stable/
>
> And we could create a oauth2 plugin for bottle (the current one is
> deprecated) based on authlib.
> Authlib also has the ability to generate jwt tokens, but for standalone
> tokens we could use pyjwt I guess.
>
> When we scaffold crud apis and vue frontends with authentication in place
> thst would be great just as it was with web2py by just using a decorator I.
> E. Crud api routes and functions and authentication via tokens and/or
> oauth2.
>
> The openapi makes it easy to collaborate with others in Microservice
> environment and also gives users the ability to generate UIs sich as with
> angular and react based on openapi specs Web3py generated for thr enpoints.
>
>
>
>
>
> On Sun, 21 Apr 2019, 04:03 黄祥,  wrote:
>
>> scaffolding app would be nice to have example of authentication (user
>> registration, login and logout) and to update the data, e.g. update todo
>> list on todo app
>> just wondering, if form used manually using javascript, is the field
>> validation on pydal, still can work ? e.g. requires=IS_NOT_EMPTY()
>>
>> 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.
>>
>

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

2019-04-21 Thread Kevin Keller
Authentication + authorization and documentation of endpoints are actually
the hardest part.

There is a. Flask based framework called connexxion which asks you to
create the openapi spec before the code which has jwt and oauth2 build in
as. Well.


Then there are flask Rebar which can use jwt and auth0 build in . Also
gernatrss openapi 2 documentation.

And there is Sars., also a Flask based framework thst generates openapi 2
documentation and can easily extend with jwt and oauth2 via flask plug-ins.

There is also hug, based on the falcon framework.. Also generates openapi
v2 documentation and has an oauth2 plugin and does jwt build in.

Thus I was thinking to bring up this topic early.

Bottle does not have this kind of out of the box suopport, but there is a
framework agnostic openapi generator we could use :
https://apispec.readthedocs.io/en/stable/

And we could create a oauth2 plugin for bottle (the current one is
deprecated) based on authlib.
Authlib also has the ability to generate jwt tokens, but for standalone
tokens we could use pyjwt I guess.

When we scaffold crud apis and vue frontends with authentication in place
thst would be great just as it was with web2py by just using a decorator I.
E. Crud api routes and functions and authentication via tokens and/or
oauth2.

The openapi makes it easy to collaborate with others in Microservice
environment and also gives users the ability to generate UIs sich as with
angular and react based on openapi specs Web3py generated for thr enpoints.





On Sun, 21 Apr 2019, 04:03 黄祥,  wrote:

> scaffolding app would be nice to have example of authentication (user
> registration, login and logout) and to update the data, e.g. update todo
> list on todo app
> just wondering, if form used manually using javascript, is the field
> validation on pydal, still can work ? e.g. requires=IS_NOT_EMPTY()
>
> 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.
>

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

2019-04-20 Thread 黄祥
scaffolding app would be nice to have example of authentication (user 
registration, login and logout) and to update the data, e.g. update todo 
list on todo app
just wondering, if form used manually using javascript, is the field 
validation on pydal, still can work ? e.g. requires=IS_NOT_EMPTY()

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

2019-04-20 Thread Massimo Di Pierro
I have been looking more into veutify. I have some reservations.
I think a good CSS framework (for web3py) should be JS agnostic, even if 
the examples use vue.js. 
I think effects should be done in CSS only, not in JS. vuetify does not 
follow this rule.
Also vuetify is really designed for use with the CLI and I would like 
web3py to remain CLI agnostic.
Documentation is not good yet.
I think I will stick to bulma for now for the simplest example apps and 
dashboard.

For mobile app style, I like Framework7 a lot.

Massimo

On Wednesday, 17 April 2019 21:31:48 UTC-7, Massimo Di Pierro wrote:
>
> Ignorance on my side. If you want to make a PR switching to vuetify I will 
> accept it.
>
>
> On Wednesday, 17 April 2019 02:17:49 UTC-7, Ramos wrote:
>>
>> Massimo , any reason you chose Bulma instead of vuetify ?
>> Vuetify is designed specifically for vuejs 
>> Regards
>> António
>>
>> Em qua, 17 de abr de 2019 às 09:37, António Ramos  
>> escreveu:
>>
>>> Worked for me...
>>>
>>>
>>> Em ter, 16 de abr de 2019 às 21:32, En Ware  
>>> escreveu:
>>>
 Thank you , that did it.

 On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:
>
> You have an old pydal. Do
>
> pip3 install --upgrade pydal
>
> Also do
>
> python3 web3py.py applications
>
> Not
>
> python3 web3py.py applications/todo/
>
> -- 
 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: Web3py

2019-04-20 Thread Anthony
On Friday, April 19, 2019 at 6:41:34 PM UTC-4, Carlos Cesar Caballero wrote:
>
> Well, that's a really fair concern, I was just mentioning, because I like 
> ORMs and other popular projects like SQLAlchemy includes a DAL (they call 
> it SQL abstraction toolkit) and an ORM on top of it, and if you look at 
> popular web development full stack frameworks, almost all of them are 
> relaying their models to ORMs.
>

The SQLAlchemy ORM adds a lot of functionality that is not available with 
its DAL alone, and most of that extra functionality already exists in 
pyDAL. As far as I can tell, the weppy ORM does not really add any 
functionality to the DAL -- it is mostly an alternative syntax. I'm not 
saying there isn't value there, just that it is a lot of code maintenance 
to take on for maybe only a very modest benefit.

Anthony

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

2019-04-20 Thread Anthony
On Friday, April 19, 2019 at 5:47:31 PM UTC-4, Carlos Cesar Caballero wrote:
>
> Yes, but that's not about the number of code lines, that's about the code 
> organization and readability.
>

At least with the example given, I don't see a lot of difference in 
organization or readability (particularly not enough to warrant 
introduction of the ORM codebase as well as the confusion that can come 
with having multiple ways to do the same thing).

Anthony

>

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

2019-04-20 Thread villas
I've just been playing with web3py and I think it's great!  This framework 
seems so much cleaner and I like the Bottle routes etc.

Re: Dashboard. Currently broken, but I guess Massimo is still working on 
this and committed prematurely.

Re: ORM.  It feels like we are talking about the icing before the cake has 
been mixed. Hopefully any ORM would just be a plug-in option rather than 
weighing down our fantastic DAL.

Re: Auth.  This seems a much more important topic because I'm not going to 
bother making any app until I know how to secure it. This is one feature of 
web2py that is vital.  I'm really hoping too that any auth would include 
'roles' because 'authorization' depends on that. I hope this will attract 
more comments.

Re: Form. I know that we want to be agnostic, but there seems little harm 
to include basic styling classes. Could this be taken from a config file?  
Maybe Vuetify would be better than Bootstrap?

Re: Grid.  I use SQLFORM.grid for prototyping,  but I then I so often find 
myself replacing that code with Datatables. Shouldn't we just include 
Datatables?  It has everything we need - doesn't it?

Thanks to Massimo and others for making this great progress for our 
community!

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

2019-04-20 Thread 黄祥
github latest commit
*access via browser *
http://localhost:8000/dashboard
*on console*
127.0.0.1 - - [20/Apr/2019 16:17:21] "GET /dashboard HTTP/1.1" 303 0
127.0.0.1 - - [20/Apr/2019 16:17:21] "GET /_dashboard/static/index.html 
HTTP/1.1" 404 460
127.0.0.1 - - [20/Apr/2019 16:17:26] "GET /_dashboard HTTP/1.1" 404 460

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

2019-04-19 Thread Carlos Cesar Caballero Díaz
Well, that's a really fair concern, I was just mentioning, because I 
like ORMs and other popular projects like SQLAlchemy includes a DAL 
(they call it SQL abstraction toolkit) and an ORM on top of it, and if 
you look at popular web development full stack frameworks, almost all of 
them are relaying their models to ORMs.


Greetings

El 19/4/19 a las 4:22 p.m., Anthony escribió:
On Thursday, April 18, 2019 at 6:48:09 PM UTC-4, Carlos Cesar 
Caballero wrote:


Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm
. I
think including something like this with pydal will be a really good
improvement.


My only concern is whether the benefits are worth having to adopt all 
that new code (and update it when changes are made to pyDAL). Maybe it 
should remain an external package rather than being folded into pyDAL.


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

2019-04-19 Thread Carlos Cesar Caballero Díaz
Yes, but that's not about the number of code lines, that's about the 
code organization and readability.


Greetings.

El 19/4/19 a las 4:17 p.m., Anthony escribió:
In the case of the weppy ORM in particular, though, I think it really 
is just alternative syntax for everything that can already be done via 
pyDAL, typically with the same number of lines of code (note, the 
above examples would have the same number of lines if you added the 
@rowattr('get_something_plus_age') decorator required by weppy to the 
instance method).


Anthony


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

2019-04-19 Thread Anthony
On Thursday, April 18, 2019 at 6:48:09 PM UTC-4, Carlos Cesar Caballero 
wrote:
>
> Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I 
> think including something like this with pydal will be a really good 
> improvement.
>

My only concern is whether the benefits are worth having to adopt all that 
new code (and update it when changes are made to pyDAL). Maybe it should 
remain an external package rather than being folded into pyDAL.

Anthony

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

2019-04-19 Thread Anthony
On Friday, April 19, 2019 at 10:54:11 AM UTC-4, Carlos Cesar Caballero 
wrote:
>
> As almost everything in our world ORMs has advantages and disadvantages. 
> The main criticism about ORMs is that they are leaky abstractions, that 
> means they leaks details that it is supposed to abstract away, because 
> there are times when you just need to use, for example, SQL directly or 
> work with raw rows when making complex queries or improving performance 
> because that is one of the ORMs disadvantages, they include an extra 
> logical layer that, depending on the implementation can affect performance 
> more or less.
>
> But there are lot of people out there using ORMs and this is because they 
> have advantages, compared with PyDAL, mostly when you are using big models, 
> for example, compare this PyDAL model:
>
> def _get_somethig_plus_age(row, extra):
> return row.person.age + extra
>
> db.define_table('person', 
> Field('name')
> Field('age', 'integer')
> Field.Method('get_somethig_plus_age', _get_somethig_plus_age)
> )
>
> against this ORM-style model:
>
> class Person(Model):
> name = Field()
> age = Field('integer')
>
> def get_somethig_plus_age(self, extra):
> return self.age + extra
>
> In an ORM, a model class represents a table, and when you query the DB, 
> you get the class instance objects representing rows. Using this approach 
> you can directly benefit from the advantages of the OOP and the code 
> readability and organization improves a lot, mostly when models starts grow 
> big.
>

In the case of the weppy ORM in particular, though, I think it really is 
just alternative syntax for everything that can already be done via pyDAL, 
typically with the same number of lines of code (note, the above examples 
would have the same number of lines if you added the 
@rowattr('get_something_plus_age') decorator required by weppy to the 
instance method).

Anthony

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

2019-04-19 Thread José Luis Redrejo
I think one of the reasons web2py is so productive and has an easy learn
curve is due to the fact of using DAL instead of an ORM.
I don't see any problem in using sqlalchemy with web2py if an ORM is
needed.  I would probably use it in some big projects for some of the
models.

But for the sake of the easy learning/productivity/quick development time I
would prefer to keep pydal as the default, at least for the features web2py
provides (auth, security, etc.)
Just my 20 cents.
José L.

El vie., 19 abr. 2019 a las 16:54, Carlos Cesar Caballero Díaz (<
carlos.caball...@cfg.jovenclub.cu>) escribió:

> As almost everything in our world ORMs has advantages and disadvantages.
> The main criticism about ORMs is that they are leaky abstractions, that
> means they leaks details that it is supposed to abstract away, because
> there are times when you just need to use, for example, SQL directly or
> work with raw rows when making complex queries or improving performance
> because that is one of the ORMs disadvantages, they include an extra
> logical layer that, depending on the implementation can affect performance
> more or less.
>
> But there are lot of people out there using ORMs and this is because they
> have advantages, compared with PyDAL, mostly when you are using big models,
> for example, compare this PyDAL model:
>
> def _get_somethig_plus_age(row, extra):
> return row.person.age + extra
>
> db.define_table('person',
> Field('name')
> Field('age', 'integer')
> Field.Method('get_somethig_plus_age', _get_somethig_plus_age)
> )
>
> against this ORM-style model:
>
> class Person(Model):
> name = Field()
> age = Field('integer')
>
> def get_somethig_plus_age(self, extra):
> return self.age + extra
>
> In an ORM, a model class represents a table, and when you query the DB,
> you get the class instance objects representing rows. Using this approach
> you can directly benefit from the advantages of the OOP and the code
> readability and organization improves a lot, mostly when models starts grow
> big.
>
> Greetings.
>
>
> El 19/4/19 a las 2:44 a.m., Dave S escribió:
>
> On Thursday, April 18, 2019 at 3:48:09 PM UTC-7, Carlos Cesar Caballero
> wrote:
>>
>> Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I
>> think including something like this with pydal will be a really good
>> improvement.
>>
>> Greetings.
>>
>>
> As someone who had some SQL training (but not proficiency) before  using
> Web2Py,
> and who has rarely had an issue with using the DAL (but then, I don't have
> complicated projects, either),
> I could use some info on what makes an ORM great.
>
> I know that Massimo has said in the past that it was a deliberate choice
> to do the DAL instead of an ORM
> (is the DAL a DAO?),
> and I see the contributors to Wikipedia have listed some concerns
> along with the advantages
> (client code gets to stick with working with objects ++
>  high level of abstraction obscures what is happening --
>  heavy reliance on ORM cited as major factor in poorly designed DBs --)
>
> The third approach appears to be OODBMS where the store actually is built
> around objects via ODMs
> rather than translating tables.  This gets into NoSQL territory, it seems.
>
> So, educate me!
>
> /dps
>
> El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió:
>> > Can you make it a module on pypi? Or should we include it in pydal?
>> >
>>
>> --
> 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: Web3py

2019-04-19 Thread Carlos Cesar Caballero Díaz
As almost everything in our world ORMs has advantages and disadvantages. 
The main criticism about ORMs is that they are leaky abstractions, that 
means they leaks details that it is supposed to abstract away, because 
there are times when you just need to use, for example, SQL directly or 
work with raw rows when making complex queries or improving performance 
because that is one of the ORMs disadvantages, they include an extra 
logical layer that, depending on the implementation can affect 
performance more or less.


But there are lot of people out there using ORMs and this is because 
they have advantages, compared with PyDAL, mostly when you are using big 
models, for example, compare this PyDAL model:


    def _get_somethig_plus_age(row, extra):
    return row.person.age + extra

    db.define_table('person',
    Field('name')
        Field('age', 'integer')
    Field.Method('get_somethig_plus_age', _get_somethig_plus_age)
    )

against this ORM-style model:

    class Person(Model):
    name = Field()
        age = Field('integer')

        def get_somethig_plus_age(self, extra):
            return self.age + extra

In an ORM, a model class represents a table, and when you query the DB, 
you get the class instance objects representing rows. Using this 
approach you can directly benefit from the advantages of the OOP and the 
code readability and organization improves a lot, mostly when models 
starts grow big.


Greetings.


El 19/4/19 a las 2:44 a.m., Dave S escribió:
On Thursday, April 18, 2019 at 3:48:09 PM UTC-7, Carlos Cesar 
Caballero wrote:


Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm
. I
think including something like this with pydal will be a really good
improvement.

Greetings.


As someone who had some SQL training (but not proficiency) before  
using Web2Py,
and who has rarely had an issue with using the DAL (but then, I don't 
have complicated projects, either),

I could use some info on what makes an ORM great.

I know that Massimo has said in the past that it was a deliberate 
choice to do the DAL instead of an ORM

(is the DAL a DAO?),
and I see the contributors to Wikipedia have listed some concerns
along with the advantages
(client code gets to stick with working with objects ++
 high level of abstraction obscures what is happening --
 heavy reliance on ORM cited as major factor in poorly designed DBs --)

The third approach appears to be OODBMS where the store actually is 
built around objects via ODMs

rather than translating tables.  This gets into NoSQL territory, it seems.

So, educate me!

/dps

El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió:
> Can you make it a module on pypi? Or should we include it in pydal?
>

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

2019-04-18 Thread Dave S
On Thursday, April 18, 2019 at 3:48:09 PM UTC-7, Carlos Cesar Caballero 
wrote:
>
> Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I 
> think including something like this with pydal will be a really good 
> improvement. 
>
> Greetings. 
>
>
As someone who had some SQL training (but not proficiency) before  using 
Web2Py,
and who has rarely had an issue with using the DAL (but then, I don't have 
complicated projects, either),
I could use some info on what makes an ORM great.

I know that Massimo has said in the past that it was a deliberate choice to 
do the DAL instead of an ORM
(is the DAL a DAO?),
and I see the contributors to Wikipedia have listed some concerns
along with the advantages
(client code gets to stick with working with objects ++
 high level of abstraction obscures what is happening --
 heavy reliance on ORM cited as major factor in poorly designed DBs --)

The third approach appears to be OODBMS where the store actually is built 
around objects via ODMs
rather than translating tables.  This gets into NoSQL territory, it seems.

So, educate me!

/dps

El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió: 
> > Can you make it a module on pypi? Or should we include it in pydal? 
> > 
>
>

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

2019-04-18 Thread Carlos Cesar Caballero Díaz
Hi Massimo, here is it: https://github.com/cccaballero/pydal-orm. I 
think including something like this with pydal will be a really good 
improvement.


Greetings.

El 12/4/19 a las 4:33 p.m., Massimo Di Pierro escribió:

Can you make it a module on pypi? Or should we include it in pydal?



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

2019-04-17 Thread Massimo Di Pierro
Ignorance on my side. If you want to make a PR switching to vuetify I will 
accept it.


On Wednesday, 17 April 2019 02:17:49 UTC-7, Ramos wrote:
>
> Massimo , any reason you chose Bulma instead of vuetify ?
> Vuetify is designed specifically for vuejs 
> Regards
> António
>
> Em qua, 17 de abr de 2019 às 09:37, António Ramos  
> escreveu:
>
>> Worked for me...
>>
>>
>> Em ter, 16 de abr de 2019 às 21:32, En Ware  
>> escreveu:
>>
>>> Thank you , that did it.
>>>
>>> On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:

 You have an old pydal. Do

 pip3 install --upgrade pydal

 Also do

 python3 web3py.py applications

 Not

 python3 web3py.py applications/todo/

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

2019-04-17 Thread António Ramos
found it
self.start = function() {
*Vue.config.devtools = true;*
self.vue = new Vue({el: '#vue', data: self.data, methods:
self.methods, filters: self.filters});

self.on_load();
};

Em qua, 17 de abr de 2019 às 10:38, António Ramos 
escreveu:

> How to use vue devtools?
> Vue.js is detected on this page. Devtools inspection is not available
> because it's in production mode or explicitly disabled by the author.
>
>
> Em qua, 17 de abr de 2019 às 10:17, António Ramos 
> escreveu:
>
>> Massimo , any reason you chose Bulma instead of vuetify ?
>> Vuetify is designed specifically for vuejs
>> Regards
>> António
>>
>> Em qua, 17 de abr de 2019 às 09:37, António Ramos 
>> escreveu:
>>
>>> Worked for me...
>>>
>>>
>>> Em ter, 16 de abr de 2019 às 21:32, En Ware 
>>> escreveu:
>>>
 Thank you , that did it.

 On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:
>
> You have an old pydal. Do
>
> pip3 install --upgrade pydal
>
> Also do
>
> python3 web3py.py applications
>
> Not
>
> python3 web3py.py applications/todo/
>
> --
 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: Web3py

2019-04-17 Thread António Ramos
How to use vue devtools?
Vue.js is detected on this page. Devtools inspection is not available
because it's in production mode or explicitly disabled by the author.


Em qua, 17 de abr de 2019 às 10:17, António Ramos 
escreveu:

> Massimo , any reason you chose Bulma instead of vuetify ?
> Vuetify is designed specifically for vuejs
> Regards
> António
>
> Em qua, 17 de abr de 2019 às 09:37, António Ramos 
> escreveu:
>
>> Worked for me...
>>
>>
>> Em ter, 16 de abr de 2019 às 21:32, En Ware 
>> escreveu:
>>
>>> Thank you , that did it.
>>>
>>> On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:

 You have an old pydal. Do

 pip3 install --upgrade pydal

 Also do

 python3 web3py.py applications

 Not

 python3 web3py.py applications/todo/

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

2019-04-17 Thread António Ramos
Massimo , any reason you chose Bulma instead of vuetify ?
Vuetify is designed specifically for vuejs
Regards
António

Em qua, 17 de abr de 2019 às 09:37, António Ramos 
escreveu:

> Worked for me...
>
>
> Em ter, 16 de abr de 2019 às 21:32, En Ware  escreveu:
>
>> Thank you , that did it.
>>
>> On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:
>>>
>>> You have an old pydal. Do
>>>
>>> pip3 install --upgrade pydal
>>>
>>> Also do
>>>
>>> python3 web3py.py applications
>>>
>>> Not
>>>
>>> python3 web3py.py applications/todo/
>>>
>>> --
>> 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: Web3py

2019-04-17 Thread António Ramos
Worked for me...


Em ter, 16 de abr de 2019 às 21:32, En Ware  escreveu:

> Thank you , that did it.
>
> On Tuesday, April 16, 2019 at 2:42:40 PM UTC-5, Massimo Di Pierro wrote:
>>
>> You have an old pydal. Do
>>
>> pip3 install --upgrade pydal
>>
>> Also do
>>
>> python3 web3py.py applications
>>
>> Not
>>
>> python3 web3py.py applications/todo/
>>
>> --
> 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: Web3py

2019-04-16 Thread En Ware
Is web3py running ? Do you see this in your terminal ? 

Bottle v0.12.16 server starting up (using WSGIRefServer())...
Listening on http://127.0.0.1:8000/
Hit Ctrl-C to quit.

Have you git pulled the latest changes ? 

How did you start web3py server ? 

On Tuesday, April 16, 2019 at 10:02:46 AM UTC-5, Ramos wrote:
>
> Not working...
>
> [image: image.png]
>
> Em ter, 16 de abr de 2019 às 14:41, En Ware  > escreveu:
>
>> Getting error 
>>
>> |  / / / / __ |/___ \/ __ \ \/ /
>> | | / / /_  / /_/ /___/ / /_/ /\  /
>> | | /| / / __/ / __  //__  / / / /
>> | |/ |/ / /___/ /_/ /___/ / / / /
>> |___/|_/_/_/_/_/ /_/
>> It is still experimental...
>>
>> Traceback (most recent call last):
>>   File 
>> "/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py", 
>> line 438, in import_apps
>> module = importlib.import_module(app_name)
>>   File 
>> "/Users/aaronm/.pyenv/versions/3.6.4/lib/python3.6/importlib/__init__.py", 
>> line 126, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 994, in _gcd_import
>>   File "", line 971, in _find_and_load
>>   File "", line 955, in 
>> _find_and_load_unlocked
>>   File "", line 665, in _load_unlocked
>>   File "", line 678, in exec_module
>>   File "", line 219, in 
>> _call_with_frames_removed
>>   File 
>> "/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/examples/__init__.py",
>>  
>> line 4, in 
>> from pydal.validators import IS_NOT_EMPTY, IS_INT_IN_RANGE
>>   File 
>> "/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/reloader.py",
>>  
>> line 158, in _import
>> base = _baseimport(name, globals, locals, fromlist, level)
>>   File 
>> "/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/validators.py",
>>  
>> line 31, in 
>> from pydal._compat import StringIO, integer_types, basestring, 
>> unicodeT, urllib_unquote, \
>> ImportError: cannot import name 'unicodeT'
>>
>>
>>
>>
>>
>> On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote:
>>>
>>> I git installed web3py and quite enjoy it. I see its updated regular 
>>> too. 
>>>
>>> For those who don't know and maybe this is common sense , not sure. 
>>>
>>> once you *git clone https://github.com/web2py/web3py.git 
>>>   *do a *git pull*
>>>
>>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>>>  - Changes:  module "reloader" was added 
>>>
>>> 3. Launch web3py (should work just fine now) 
>>>
>>> * python3 web3py.py applications/todo/*
>>>
>>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
>>> /todo/index*
>>>
>>> -- 
>> 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 web...@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: Web3py

2019-04-16 Thread António Ramos
Not working...

[image: image.png]

Em ter, 16 de abr de 2019 às 14:41, En Ware  escreveu:

> Getting error
>
> |  / / / / __ |/___ \/ __ \ \/ /
> | | / / /_  / /_/ /___/ / /_/ /\  /
> | | /| / / __/ / __  //__  / / / /
> | |/ |/ / /___/ /_/ /___/ / / / /
> |___/|_/_/_/_/_/ /_/
> It is still experimental...
>
> Traceback (most recent call last):
>   File
> "/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/web3py/core.py",
> line 438, in import_apps
> module = importlib.import_module(app_name)
>   File
> "/Users/aaronm/.pyenv/versions/3.6.4/lib/python3.6/importlib/__init__.py",
> line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 994, in _gcd_import
>   File "", line 971, in _find_and_load
>   File "", line 955, in
> _find_and_load_unlocked
>   File "", line 665, in _load_unlocked
>   File "", line 678, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File
> "/Users/aaronm/.pyenv/versions/3.6.4/envs/web3py/web3py/applications/examples/__init__.py",
> line 4, in 
> from pydal.validators import IS_NOT_EMPTY, IS_INT_IN_RANGE
>   File
> "/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/reloader.py",
> line 158, in _import
> base = _baseimport(name, globals, locals, fromlist, level)
>   File
> "/Users/aaronm/.pyenv/versions/web3py/lib/python3.6/site-packages/pydal/validators.py",
> line 31, in 
> from pydal._compat import StringIO, integer_types, basestring,
> unicodeT, urllib_unquote, \
> ImportError: cannot import name 'unicodeT'
>
>
>
>
>
> On Thursday, April 11, 2019 at 12:31:29 PM UTC-5, En Ware wrote:
>>
>> I git installed web3py and quite enjoy it. I see its updated regular too.
>>
>> For those who don't know and maybe this is common sense , not sure.
>>
>> once you *git clone https://github.com/web2py/web3py.git
>>   *do a *git pull*
>>
>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*)
>>  - Changes:  module "reloader" was added
>>
>> 3. Launch web3py (should work just fine now)
>>
>> * python3 web3py.py applications/todo/*
>>
>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000
>> /todo/index*
>>
>> --
> 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: Web3py

2019-04-13 Thread Kevin Keller
Geat progress Massimo.

Looks awesome!

I take it we stick to bottle then and embrace vue.js as the default
frontend of choice.

I suppose on the long run we just have to think about some standard glue
code generation that also works with Auth and jwt on the rest endpoints.
Possibly swagger / openapi auto Generation as a plus.


Wish I would not be such a noob at coding but maybe I can look into some of
it.



On Fri, 12 Apr 2019, 22:34 Massimo Di Pierro, 
wrote:

> Can you make it a module on pypi? Or should we include it in pydal?
>
> --
> 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: Web3py

2019-04-12 Thread Massimo Di Pierro
Can you make it a module on pypi? Or should we include it in pydal?

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

2019-04-12 Thread Kevin Keller
I'm interestes in the orm Carlos.

keller...@gmail.com

Happy to test it but also work on it with you.



On Fri, 12 Apr 2019, 18:46 En Ware,  wrote:

> Not getting examples to work is /examples/form or examples ?
>
> On Friday, April 12, 2019 at 10:29:21 AM UTC-5, Massimo Di Pierro wrote:
>>
>> In web3py an application is a folder, for example "myapp". It must have:
>>
>> applications/
>>   myapp/
>> __init__.py
>> templates/
>> static/
>> databases/
>>
>> otherwise the structure is free. You are free to create models/ and
>> controllers/ and organize code like in the old web2py but the entry point
>> is __init__.py. Web3py will see functions defined in __init_ or imported by
>> init. In my examples I defined all actions in __init__. For example
>>
>> In __init__.py =
>> from . import models
>> from . import controllers
>>
>> In model.py =
>> from web3py import DAL, Field
>> db = DAL('sqlite://test')
>> db.define_table('thing', Field('name'))
>>
>> In controllers.py =
>> from web3py import action, request, redirect, abort
>> from . models import db
>> @action('helloworld') # exposes http://127.0.0.1:8000/myapp/helloworld
>> @action.uses(db, 'helloworld.html')
>> def helloworld(): return dict(name=request.forms.get('name', 'visitor'))
>>
>> In templates/helloworld.html =
>> [[extend 'layout.html']]
>> Hello Dear [[=name]]
>>
>> In templates/layout.html =
>> [[include]]
>>
>>
>> request, redirect, abort are Bottely objects
>> DAL, Field are web2py's
>> the template is the same as web2py but defaults to [[ ]] delimiters to
>> avoid conflicts with vue.js and other js
>> the @action decorator accepts the same parameters as bottle.route but
>> does a little more.
>> There is also a form.py that implements Form() a drop in replacement (to
>> be tested) for SQLFORM.
>>
>> Notice we do all of this in 300 lines of python code and 10x faster than
>> web2py in my tests.
>>
>> Working on admin and appadmin. May be done in one week.
>>
>> Massimo
>>
>>
>>
>>
>>
>> On Friday, 12 April 2019 06:53:57 UTC-7, En Ware wrote:
>>>
>>> I'm trying to wrap my ahead around how web3py works by looking at the
>>> source
>>>
>>> I see __init__.py is the main code for the actually todo app.
>>>
>>> Is this going to be the case for all applications ? or is this just for
>>> a sample ?
>>>
>>>
>>> On Thursday, April 11, 2019 at 11:03:29 PM UTC-5, Massimo Di Pierro
>>> wrote:

 There is a lot to do but at this point it is moving fast and a one way
 street.

 On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:
>
> I git installed web3py and quite enjoy it. I see its updated regular
> too.
>
> For those who don't know and maybe this is common sense , not sure.
>
> once you *git clone https://github.com/web2py/web3py.git
>   *do a *git pull*
>
> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*)
>  - Changes:  module "reloader" was added
>
> 3. Launch web3py (should work just fine now)
>
> * python3 web3py.py applications/todo/*
>
> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000
> /todo/index*
>
> --
> 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: Web3py

2019-04-12 Thread Carlos Cesar Caballero Díaz
I reaaly would like to use an ORM with web3py, in my opinion ORMs 
are better for organization when apps grow big and I like a lot the fat 
models and thin controllers approach, and it is some messy with pydal 
right now 
(https://github.com/Medisur/journalmanagement/blob/master/models/citation.py). 
I have isoleted the weppy ORM some days ago (as hobby), it's not fully 
tested, and will need some refactoring, but if you are interested I can 
share it.


Greetings.

El 12/4/19 a las 11:32 a.m., Massimo Di Pierro escribió:
May steel some ideas from weppy but I do not want an ORM. That can be 
optional if you like we can isolate it in a module.


On Friday, 12 April 2019 04:40:51 UTC-7, Kevin Keller wrote:

Any thoughts on merging / collaborating with weppy?

http://weppy.org/

Uses web2py dal and yatl..
and has some nifty things to make queries and modelling easier..



On Fri, Apr 12, 2019 at 6:03 AM Massimo Di Pierro
mailto:massimo.dipie...@gmail.com>>
wrote:

There is a lot to do but at this point it is moving fast and a
one way street.

On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:

I git installed web3py and quite enjoy it. I see its
updated regular too.

For those who don't know and maybe this is common sense ,
not sure.

once you *git clone https://github.com/web2py/web3py.git
 *do a *git pull*
*
*
2. reinstall requirements.txt (*pip3 install -r
requirements.txt*)
 - Changes:  module "reloader" was added

3. Launch web3py (should work just fine now)
* python3 web3py.py applications/todo/
*

4. open browser and type: * localhost:8000 or
127.0.0.1:8000 /todo/index*

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

2019-04-12 Thread Massimo Di Pierro
May steel some ideas from weppy but I do not want an ORM. That can be 
optional if you like we can isolate it in a module.

On Friday, 12 April 2019 04:40:51 UTC-7, Kevin Keller wrote:
>
> Any thoughts on merging / collaborating with weppy?
>
> http://weppy.org/
>
> Uses web2py dal and yatl.. 
> and has some nifty things to make queries and modelling easier.. 
>
>
>
> On Fri, Apr 12, 2019 at 6:03 AM Massimo Di Pierro <
> massimo.dipie...@gmail.com> wrote:
>
>> There is a lot to do but at this point it is moving fast and a one way 
>> street.
>>
>> On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:
>>>
>>> I git installed web3py and quite enjoy it. I see its updated regular 
>>> too. 
>>>
>>> For those who don't know and maybe this is common sense , not sure. 
>>>
>>> once you *git clone https://github.com/web2py/web3py.git 
>>>   *do a *git pull*
>>>
>>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*) 
>>>  - Changes:  module "reloader" was added 
>>>
>>> 3. Launch web3py (should work just fine now) 
>>>
>>> * python3 web3py.py applications/todo/*
>>>
>>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000 
>>> /todo/index*
>>>
>>> -- 
>> 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: Web3py

2019-04-12 Thread Kevin Keller
Any thoughts on merging / collaborating with weppy?

http://weppy.org/

Uses web2py dal and yatl..
and has some nifty things to make queries and modelling easier..



On Fri, Apr 12, 2019 at 6:03 AM Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> There is a lot to do but at this point it is moving fast and a one way
> street.
>
> On Thursday, 11 April 2019 10:31:29 UTC-7, En Ware wrote:
>>
>> I git installed web3py and quite enjoy it. I see its updated regular too.
>>
>> For those who don't know and maybe this is common sense , not sure.
>>
>> once you *git clone https://github.com/web2py/web3py.git
>>   *do a *git pull*
>>
>> 2. reinstall requirements.txt (*pip3 install -r requirements.txt*)
>>  - Changes:  module "reloader" was added
>>
>> 3. Launch web3py (should work just fine now)
>>
>> * python3 web3py.py applications/todo/*
>>
>> 4. open browser and type: * localhost:8000 or 127.0.0.1:8000
>> /todo/index*
>>
>> --
> 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: web3py again....

2019-04-07 Thread Anthony
Not sure what that means -- Massimo will have to reply. Once a module has 
been loaded within a given Python process, it won't be repeatedly reloaded 
-- see https://docs.python.org/3/reference/import.html#the-module-cache. 
web2py model and controller files are executed on every request -- if they 
import a module, there will be a very small performance hit to look up the 
module in sys.modules on each request (trivial relative to the cost of 
initializing the module on the very first request), but given web2py's 
execution model, there is nothing you will do to eliminate that.

Anthony

On Sunday, April 7, 2019 at 1:55:06 PM UTC-4, João Matos wrote:
>
> That was the word used by Massimo.
> He stated
> "In web2py we do not reload the modules. we reimport them at every 
> request. this causes a performance penalty and is only needed in 
> development."
> My question was if it is possible to disable module reimport at every 
> request in production or it just how web2py is built.
>
>
> domingo, 7 de Abril de 2019 às 18:51:09 UTC+1, Anthony escreveu:
>>
>> On Sunday, April 7, 2019 at 1:33:22 PM UTC-4, João Matos wrote:
>>>
>>> @Anthony
>>>
>>> I was asking about reimport not reload.
>>> Does track_changes appy to both?
>>>
>>
>> What do you mean by "reimport"?
>>
>> Anthony
>>
>

-- 
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: web3py again....

2019-04-07 Thread João Matos
That was the word used by Massimo.
He stated
"In web2py we do not reload the modules. we reimport them at every request. 
this causes a performance penalty and is only needed in development."
My question was if it is possible to disable module reimport at every 
request in production or it just how web2py is built.


domingo, 7 de Abril de 2019 às 18:51:09 UTC+1, Anthony escreveu:
>
> On Sunday, April 7, 2019 at 1:33:22 PM UTC-4, João Matos wrote:
>>
>> @Anthony
>>
>> I was asking about reimport not reload.
>> Does track_changes appy to both?
>>
>
> What do you mean by "reimport"?
>
> Anthony
>

-- 
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: web3py again....

2019-04-07 Thread Anthony
On Sunday, April 7, 2019 at 1:33:22 PM UTC-4, João Matos wrote:
>
> @Anthony
>
> I was asking about reimport not reload.
> Does track_changes appy to both?
>

What do you mean by "reimport"?

Anthony

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


  1   2   >