Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Jim S
No problem with auth.has_permission web2py.  But I don't think it exists in 
py4web.  Someone please correct me if I'm spreading misinformation.  You 
can write it yourself, but I don't think it's included in py4web.

-Jim

On Thursday, January 23, 2020 at 10:02:00 AM UTC-6, Lovedie JC wrote:
>
> Is there a problem with @auth_has _permission?
> I intend to use it. 
> Regards 
>
> On Thu, Jan 23, 2020, 18:57 Jim S > wrote:
>
>> You'll be fine with the new system I believe as long as you're not 
>> currently using @auth.has_permission.  While you can do it with py4web it 
>> is more challenging than in web2py.
>>
>> -Jim
>>
>> On Thursday, January 23, 2020 at 9:47:43 AM UTC-6, Christian Varas wrote:
>>>
>>> Hi Jim.
>>>
>>> Yes I'm using the auth system permission.
>>> I'm using 2 decorators in fact
>>> @auth.requires_membership() and @auth.requires_login()
>>>
>>> I'm gonna port my app to py4web then :) 
>>>
>>> Thanks
>>>
>>> Cheers.
>>> Chris 
>>>
>>> El jue., 23 de ene. de 2020 11:27, Jim Steil  
>>> escribió:
>>>
 Sounds like a great app to do in py4web.  

1. You are already comfortable with javascript.  
2. You're not using grid/smartgrid.  
3. Are you using the web2py auth system with permissions?  If only 
using groups (roles) then this would be great to do with py4web.  
4. Much faster and you get to use Python3.

 -Jim


 On Thu, Jan 23, 2020 at 6:44 AM Christian Varas  
 wrote:

> Thanks for all that you share guys.
>
> I would like to ask for a recommendation.
>
> I have a web interface made with web2py, this interface manage a web 
> application firewall (nginx and modsecurity). It does commands and file 
> modifications in the system to manage properly the WAF, the database is 
> SQLite.
> I don't use sqlform.grid, most of the things in the view are made with 
> pure JavaScript and Html, and all the commands to the system are with 
> subprocess.
> Works pretty fast and without any issue.
>
> My question is if py4web is ok to do this tasks too, like editing 
> files in system, executing commands and task more oriented to the system 
> and not to a db.
>
>
> Now I have to a small adpatation to my app because modsecurity has a 
> new version and they changed some things, and I was thinking that maybe I 
> can port all to py4web and have a fresh new start, but I'm not sure..., I 
> love web2py and now is easy to me to do things with him.
>
> Should I stay in web2py? 
> Or I should start using py4web for this kind of project?
>
> Cheers!
> Chris.
>
>
> El mié., 22 de ene. de 2020 20:29, Carlos Costa  
> escribió:
>
>> Thanks for sharing you experience with py4web, Jim.
>>
>>
>> Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller  
>> escreveu:
>>
>>> The datatables integration for web2py would be super useful. I'm 
>>> sure we could port it over to py4web easily.
>>>
>>> I just feel like with all the stuff web2py gave us to get something 
>>> quickly going missing, it'd just another api framework and there are 
>>> fastapi and apistar as well falcon out..
>>>
>>> I think having these ease of use stuff back would really hit home 
>>> and would also make it easier to port from web2py.
>>>
>>> And we would be pretty much the Jhipster  of the python world no?
>>>
>>>
>>>
>>> On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:
>>>
 Yes, I will post my main utils.py when I have it working better.  I 
 still have to clean up a couple pieces.  It would be up to Massimo if 
 he 
 wanted to add it.  But in response to one of my earlier questions I 
 was 
 told Massimo kept a utility like this out of py4web so people might 
 use 
 better tools like datatables.  And, I doubt my code is 
 'framework-ready'.  
 But it could give others insight into how you can work with py4web.

 Speaking of datatables, I wrote a datatables integration for web2py 
 last summer.  I think I could also add that to my utils.py pretty 
 easily.  
 Actually, the datatables piece would be easier that what I've done 
 writing 
 my own.  Would you use datatables for complete CRUD, or just to list 
 your 
 table for record selection, etc.?

 Now that you mentioned mtable, I too recall hearing that before, 
 but haven't gotten in to it at all.  Like I said, I haven't jumped in 
 to 
 the client-side javascript much yet, other than jquery.

 -Jim

 On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller 
 wrote:
>
> Jim,
>
> Could your helpers be considered to be added to thr py4web code 
>

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Kevin Keller
I havent looked at py4web so far, because I dont get how it does permission
in general.

Is there an easy way to use JWT tokens and OIDC/OAUTH2 with Vue.js easily?

I think its quite a pain to go through this in general.
This is why I really liked about rendered HTML page apps.

If its not a complex app for a long term project I lied the OOTB auth and
crud mechanism.

Making every app a SPA app now I have to deal with REST payloads,
seriazlzing, de-serializing, JWT tokens, OAUTH/OIDC etc.
And for my apps I dont need the increase in loading times or less calls to
the back end so much.

But maybe there are ways to make this simple as well with py4web and
vue.js.





On Thu, Jan 23, 2020 at 5:02 PM Lovedie JC  wrote:

> Is there a problem with @auth_has _permission?
> I intend to use it.
> Regards
>
> On Thu, Jan 23, 2020, 18:57 Jim S  wrote:
>
>> You'll be fine with the new system I believe as long as you're not
>> currently using @auth.has_permission.  While you can do it with py4web it
>> is more challenging than in web2py.
>>
>> -Jim
>>
>> On Thursday, January 23, 2020 at 9:47:43 AM UTC-6, Christian Varas wrote:
>>>
>>> Hi Jim.
>>>
>>> Yes I'm using the auth system permission.
>>> I'm using 2 decorators in fact
>>> @auth.requires_membership() and @auth.requires_login()
>>>
>>> I'm gonna port my app to py4web then :)
>>>
>>> Thanks
>>>
>>> Cheers.
>>> Chris
>>>
>>> El jue., 23 de ene. de 2020 11:27, Jim Steil 
>>> escribió:
>>>
 Sounds like a great app to do in py4web.

1. You are already comfortable with javascript.
2. You're not using grid/smartgrid.
3. Are you using the web2py auth system with permissions?  If only
using groups (roles) then this would be great to do with py4web.
4. Much faster and you get to use Python3.

 -Jim


 On Thu, Jan 23, 2020 at 6:44 AM Christian Varas 
 wrote:

> Thanks for all that you share guys.
>
> I would like to ask for a recommendation.
>
> I have a web interface made with web2py, this interface manage a web
> application firewall (nginx and modsecurity). It does commands and file
> modifications in the system to manage properly the WAF, the database is
> SQLite.
> I don't use sqlform.grid, most of the things in the view are made with
> pure JavaScript and Html, and all the commands to the system are with
> subprocess.
> Works pretty fast and without any issue.
>
> My question is if py4web is ok to do this tasks too, like editing
> files in system, executing commands and task more oriented to the system
> and not to a db.
>
>
> Now I have to a small adpatation to my app because modsecurity has a
> new version and they changed some things, and I was thinking that maybe I
> can port all to py4web and have a fresh new start, but I'm not sure..., I
> love web2py and now is easy to me to do things with him.
>
> Should I stay in web2py?
> Or I should start using py4web for this kind of project?
>
> Cheers!
> Chris.
>
>
> El mié., 22 de ene. de 2020 20:29, Carlos Costa 
> escribió:
>
>> Thanks for sharing you experience with py4web, Jim.
>>
>>
>> Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller 
>> escreveu:
>>
>>> The datatables integration for web2py would be super useful. I'm
>>> sure we could port it over to py4web easily.
>>>
>>> I just feel like with all the stuff web2py gave us to get something
>>> quickly going missing, it'd just another api framework and there are
>>> fastapi and apistar as well falcon out..
>>>
>>> I think having these ease of use stuff back would really hit home
>>> and would also make it easier to port from web2py.
>>>
>>> And we would be pretty much the Jhipster  of the python world no?
>>>
>>>
>>>
>>> On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:
>>>
 Yes, I will post my main utils.py when I have it working better.  I
 still have to clean up a couple pieces.  It would be up to Massimo if 
 he
 wanted to add it.  But in response to one of my earlier questions I was
 told Massimo kept a utility like this out of py4web so people might use
 better tools like datatables.  And, I doubt my code is 
 'framework-ready'.
 But it could give others insight into how you can work with py4web.

 Speaking of datatables, I wrote a datatables integration for web2py
 last summer.  I think I could also add that to my utils.py pretty 
 easily.
 Actually, the datatables piece would be easier that what I've done 
 writing
 my own.  Would you use datatables for complete CRUD, or just to list 
 your
 table for record selection, etc.?

 Now that you mentioned mtable, I too recall hearing that before,
 but haven't gotten in to

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Lovedie JC
Is there a problem with @auth_has _permission?
I intend to use it.
Regards

On Thu, Jan 23, 2020, 18:57 Jim S  wrote:

> You'll be fine with the new system I believe as long as you're not
> currently using @auth.has_permission.  While you can do it with py4web it
> is more challenging than in web2py.
>
> -Jim
>
> On Thursday, January 23, 2020 at 9:47:43 AM UTC-6, Christian Varas wrote:
>>
>> Hi Jim.
>>
>> Yes I'm using the auth system permission.
>> I'm using 2 decorators in fact
>> @auth.requires_membership() and @auth.requires_login()
>>
>> I'm gonna port my app to py4web then :)
>>
>> Thanks
>>
>> Cheers.
>> Chris
>>
>> El jue., 23 de ene. de 2020 11:27, Jim Steil 
>> escribió:
>>
>>> Sounds like a great app to do in py4web.
>>>
>>>1. You are already comfortable with javascript.
>>>2. You're not using grid/smartgrid.
>>>3. Are you using the web2py auth system with permissions?  If only
>>>using groups (roles) then this would be great to do with py4web.
>>>4. Much faster and you get to use Python3.
>>>
>>> -Jim
>>>
>>>
>>> On Thu, Jan 23, 2020 at 6:44 AM Christian Varas 
>>> wrote:
>>>
 Thanks for all that you share guys.

 I would like to ask for a recommendation.

 I have a web interface made with web2py, this interface manage a web
 application firewall (nginx and modsecurity). It does commands and file
 modifications in the system to manage properly the WAF, the database is
 SQLite.
 I don't use sqlform.grid, most of the things in the view are made with
 pure JavaScript and Html, and all the commands to the system are with
 subprocess.
 Works pretty fast and without any issue.

 My question is if py4web is ok to do this tasks too, like editing files
 in system, executing commands and task more oriented to the system and not
 to a db.


 Now I have to a small adpatation to my app because modsecurity has a
 new version and they changed some things, and I was thinking that maybe I
 can port all to py4web and have a fresh new start, but I'm not sure..., I
 love web2py and now is easy to me to do things with him.

 Should I stay in web2py?
 Or I should start using py4web for this kind of project?

 Cheers!
 Chris.


 El mié., 22 de ene. de 2020 20:29, Carlos Costa 
 escribió:

> Thanks for sharing you experience with py4web, Jim.
>
>
> Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller 
> escreveu:
>
>> The datatables integration for web2py would be super useful. I'm sure
>> we could port it over to py4web easily.
>>
>> I just feel like with all the stuff web2py gave us to get something
>> quickly going missing, it'd just another api framework and there are
>> fastapi and apistar as well falcon out..
>>
>> I think having these ease of use stuff back would really hit home and
>> would also make it easier to port from web2py.
>>
>> And we would be pretty much the Jhipster  of the python world no?
>>
>>
>>
>> On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:
>>
>>> Yes, I will post my main utils.py when I have it working better.  I
>>> still have to clean up a couple pieces.  It would be up to Massimo if he
>>> wanted to add it.  But in response to one of my earlier questions I was
>>> told Massimo kept a utility like this out of py4web so people might use
>>> better tools like datatables.  And, I doubt my code is 
>>> 'framework-ready'.
>>> But it could give others insight into how you can work with py4web.
>>>
>>> Speaking of datatables, I wrote a datatables integration for web2py
>>> last summer.  I think I could also add that to my utils.py pretty 
>>> easily.
>>> Actually, the datatables piece would be easier that what I've done 
>>> writing
>>> my own.  Would you use datatables for complete CRUD, or just to list 
>>> your
>>> table for record selection, etc.?
>>>
>>> Now that you mentioned mtable, I too recall hearing that before, but
>>> haven't gotten in to it at all.  Like I said, I haven't jumped in to the
>>> client-side javascript much yet, other than jquery.
>>>
>>> -Jim
>>>
>>> On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller
>>> wrote:

 Jim,

 Could your helpers be considered to be added to thr py4web code
 base?

 If you say you have a sqlform.grid equivalent or something in that
 direction?

 I think there was mtable that should take the spot, but haven't
 seen any examples yet or at least none thst would replace a sqlform or
 smartgrid.

 If it is not coming I would probaly consider using datatables js in
 the future.




 On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:

> For me, 

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Jim S
You'll be fine with the new system I believe as long as you're not 
currently using @auth.has_permission.  While you can do it with py4web it 
is more challenging than in web2py.

-Jim

On Thursday, January 23, 2020 at 9:47:43 AM UTC-6, Christian Varas wrote:
>
> Hi Jim.
>
> Yes I'm using the auth system permission.
> I'm using 2 decorators in fact
> @auth.requires_membership() and @auth.requires_login()
>
> I'm gonna port my app to py4web then :) 
>
> Thanks
>
> Cheers.
> Chris 
>
> El jue., 23 de ene. de 2020 11:27, Jim Steil  > escribió:
>
>> Sounds like a great app to do in py4web.  
>>
>>1. You are already comfortable with javascript.  
>>2. You're not using grid/smartgrid.  
>>3. Are you using the web2py auth system with permissions?  If only 
>>using groups (roles) then this would be great to do with py4web.  
>>4. Much faster and you get to use Python3.
>>
>> -Jim
>>
>>
>> On Thu, Jan 23, 2020 at 6:44 AM Christian Varas > > wrote:
>>
>>> Thanks for all that you share guys.
>>>
>>> I would like to ask for a recommendation.
>>>
>>> I have a web interface made with web2py, this interface manage a web 
>>> application firewall (nginx and modsecurity). It does commands and file 
>>> modifications in the system to manage properly the WAF, the database is 
>>> SQLite.
>>> I don't use sqlform.grid, most of the things in the view are made with 
>>> pure JavaScript and Html, and all the commands to the system are with 
>>> subprocess.
>>> Works pretty fast and without any issue.
>>>
>>> My question is if py4web is ok to do this tasks too, like editing files 
>>> in system, executing commands and task more oriented to the system and not 
>>> to a db.
>>>
>>>
>>> Now I have to a small adpatation to my app because modsecurity has a new 
>>> version and they changed some things, and I was thinking that maybe I can 
>>> port all to py4web and have a fresh new start, but I'm not sure..., I love 
>>> web2py and now is easy to me to do things with him.
>>>
>>> Should I stay in web2py? 
>>> Or I should start using py4web for this kind of project?
>>>
>>> Cheers!
>>> Chris.
>>>
>>>
>>> El mié., 22 de ene. de 2020 20:29, Carlos Costa >> > escribió:
>>>
 Thanks for sharing you experience with py4web, Jim.


 Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller >>> > escreveu:

> The datatables integration for web2py would be super useful. I'm sure 
> we could port it over to py4web easily.
>
> I just feel like with all the stuff web2py gave us to get something 
> quickly going missing, it'd just another api framework and there are 
> fastapi and apistar as well falcon out..
>
> I think having these ease of use stuff back would really hit home and 
> would also make it easier to port from web2py.
>
> And we would be pretty much the Jhipster  of the python world no?
>
>
>
> On Wed, 22 Jan 2020, 23:50 Jim S, > 
> wrote:
>
>> Yes, I will post my main utils.py when I have it working better.  I 
>> still have to clean up a couple pieces.  It would be up to Massimo if he 
>> wanted to add it.  But in response to one of my earlier questions I was 
>> told Massimo kept a utility like this out of py4web so people might use 
>> better tools like datatables.  And, I doubt my code is 
>> 'framework-ready'.  
>> But it could give others insight into how you can work with py4web.
>>
>> Speaking of datatables, I wrote a datatables integration for web2py 
>> last summer.  I think I could also add that to my utils.py pretty 
>> easily.  
>> Actually, the datatables piece would be easier that what I've done 
>> writing 
>> my own.  Would you use datatables for complete CRUD, or just to list 
>> your 
>> table for record selection, etc.?
>>
>> Now that you mentioned mtable, I too recall hearing that before, but 
>> haven't gotten in to it at all.  Like I said, I haven't jumped in to the 
>> client-side javascript much yet, other than jquery.
>>
>> -Jim
>>
>> On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller 
>> wrote:
>>>
>>> Jim,
>>>
>>> Could your helpers be considered to be added to thr py4web code 
>>> base? 
>>>
>>> If you say you have a sqlform.grid equivalent or something in that 
>>> direction? 
>>>
>>> I think there was mtable that should take the spot, but haven't seen 
>>> any examples yet or at least none thst would replace a sqlform or 
>>> smartgrid. 
>>>
>>> If it is not coming I would probaly consider using datatables js in 
>>> the future. 
>>>
>>>
>>>
>>>
>>> On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:
>>>
 For me, there is no porting, it is re-writing.  While a lot of the 
 capabilities are there in py4web not all are part of py4web.  Due to 
 the 
 nature of how things work, a lot of the 'gl

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Christian Varas
Hi Jim.

Yes I'm using the auth system permission.
I'm using 2 decorators in fact
@auth.requires_membership() and @auth.requires_login()

I'm gonna port my app to py4web then :)

Thanks

Cheers.
Chris

El jue., 23 de ene. de 2020 11:27, Jim Steil  escribió:

> Sounds like a great app to do in py4web.
>
>1. You are already comfortable with javascript.
>2. You're not using grid/smartgrid.
>3. Are you using the web2py auth system with permissions?  If only
>using groups (roles) then this would be great to do with py4web.
>4. Much faster and you get to use Python3.
>
> -Jim
>
>
> On Thu, Jan 23, 2020 at 6:44 AM Christian Varas 
> wrote:
>
>> Thanks for all that you share guys.
>>
>> I would like to ask for a recommendation.
>>
>> I have a web interface made with web2py, this interface manage a web
>> application firewall (nginx and modsecurity). It does commands and file
>> modifications in the system to manage properly the WAF, the database is
>> SQLite.
>> I don't use sqlform.grid, most of the things in the view are made with
>> pure JavaScript and Html, and all the commands to the system are with
>> subprocess.
>> Works pretty fast and without any issue.
>>
>> My question is if py4web is ok to do this tasks too, like editing files
>> in system, executing commands and task more oriented to the system and not
>> to a db.
>>
>>
>> Now I have to a small adpatation to my app because modsecurity has a new
>> version and they changed some things, and I was thinking that maybe I can
>> port all to py4web and have a fresh new start, but I'm not sure..., I love
>> web2py and now is easy to me to do things with him.
>>
>> Should I stay in web2py?
>> Or I should start using py4web for this kind of project?
>>
>> Cheers!
>> Chris.
>>
>>
>> El mié., 22 de ene. de 2020 20:29, Carlos Costa 
>> escribió:
>>
>>> Thanks for sharing you experience with py4web, Jim.
>>>
>>>
>>> Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller 
>>> escreveu:
>>>
 The datatables integration for web2py would be super useful. I'm sure
 we could port it over to py4web easily.

 I just feel like with all the stuff web2py gave us to get something
 quickly going missing, it'd just another api framework and there are
 fastapi and apistar as well falcon out..

 I think having these ease of use stuff back would really hit home and
 would also make it easier to port from web2py.

 And we would be pretty much the Jhipster  of the python world no?



 On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:

> Yes, I will post my main utils.py when I have it working better.  I
> still have to clean up a couple pieces.  It would be up to Massimo if he
> wanted to add it.  But in response to one of my earlier questions I was
> told Massimo kept a utility like this out of py4web so people might use
> better tools like datatables.  And, I doubt my code is 'framework-ready'.
> But it could give others insight into how you can work with py4web.
>
> Speaking of datatables, I wrote a datatables integration for web2py
> last summer.  I think I could also add that to my utils.py pretty easily.
> Actually, the datatables piece would be easier that what I've done writing
> my own.  Would you use datatables for complete CRUD, or just to list your
> table for record selection, etc.?
>
> Now that you mentioned mtable, I too recall hearing that before, but
> haven't gotten in to it at all.  Like I said, I haven't jumped in to the
> client-side javascript much yet, other than jquery.
>
> -Jim
>
> On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote:
>>
>> Jim,
>>
>> Could your helpers be considered to be added to thr py4web code base?
>>
>> If you say you have a sqlform.grid equivalent or something in that
>> direction?
>>
>> I think there was mtable that should take the spot, but haven't seen
>> any examples yet or at least none thst would replace a sqlform or
>> smartgrid.
>>
>> If it is not coming I would probaly consider using datatables js in
>> the future.
>>
>>
>>
>>
>> On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:
>>
>>> For me, there is no porting, it is re-writing.  While a lot of the
>>> capabilities are there in py4web not all are part of py4web.  Due to the
>>> nature of how things work, a lot of the 'global' structures in web2py 
>>> have
>>> to be handled differently in py4web.
>>>
>>> SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all
>>> the features -
>>> https://py4web.com/_documentation/static/index.html#chapter-10
>>> auth_group and auth_membership and auth_permission are gone -
>>> authentication/authorization have changed -
>>> https://py4web.com/_documentation/static/index.html#chapter-11
>>>
>>> With those things being what they are, I've b

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Jim Steil
Sounds like a great app to do in py4web.

   1. You are already comfortable with javascript.
   2. You're not using grid/smartgrid.
   3. Are you using the web2py auth system with permissions?  If only using
   groups (roles) then this would be great to do with py4web.
   4. Much faster and you get to use Python3.

-Jim


On Thu, Jan 23, 2020 at 6:44 AM Christian Varas 
wrote:

> Thanks for all that you share guys.
>
> I would like to ask for a recommendation.
>
> I have a web interface made with web2py, this interface manage a web
> application firewall (nginx and modsecurity). It does commands and file
> modifications in the system to manage properly the WAF, the database is
> SQLite.
> I don't use sqlform.grid, most of the things in the view are made with
> pure JavaScript and Html, and all the commands to the system are with
> subprocess.
> Works pretty fast and without any issue.
>
> My question is if py4web is ok to do this tasks too, like editing files in
> system, executing commands and task more oriented to the system and not to
> a db.
>
>
> Now I have to a small adpatation to my app because modsecurity has a new
> version and they changed some things, and I was thinking that maybe I can
> port all to py4web and have a fresh new start, but I'm not sure..., I love
> web2py and now is easy to me to do things with him.
>
> Should I stay in web2py?
> Or I should start using py4web for this kind of project?
>
> Cheers!
> Chris.
>
>
> El mié., 22 de ene. de 2020 20:29, Carlos Costa 
> escribió:
>
>> Thanks for sharing you experience with py4web, Jim.
>>
>>
>> Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller 
>> escreveu:
>>
>>> The datatables integration for web2py would be super useful. I'm sure we
>>> could port it over to py4web easily.
>>>
>>> I just feel like with all the stuff web2py gave us to get something
>>> quickly going missing, it'd just another api framework and there are
>>> fastapi and apistar as well falcon out..
>>>
>>> I think having these ease of use stuff back would really hit home and
>>> would also make it easier to port from web2py.
>>>
>>> And we would be pretty much the Jhipster  of the python world no?
>>>
>>>
>>>
>>> On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:
>>>
 Yes, I will post my main utils.py when I have it working better.  I
 still have to clean up a couple pieces.  It would be up to Massimo if he
 wanted to add it.  But in response to one of my earlier questions I was
 told Massimo kept a utility like this out of py4web so people might use
 better tools like datatables.  And, I doubt my code is 'framework-ready'.
 But it could give others insight into how you can work with py4web.

 Speaking of datatables, I wrote a datatables integration for web2py
 last summer.  I think I could also add that to my utils.py pretty easily.
 Actually, the datatables piece would be easier that what I've done writing
 my own.  Would you use datatables for complete CRUD, or just to list your
 table for record selection, etc.?

 Now that you mentioned mtable, I too recall hearing that before, but
 haven't gotten in to it at all.  Like I said, I haven't jumped in to the
 client-side javascript much yet, other than jquery.

 -Jim

 On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote:
>
> Jim,
>
> Could your helpers be considered to be added to thr py4web code base?
>
> If you say you have a sqlform.grid equivalent or something in that
> direction?
>
> I think there was mtable that should take the spot, but haven't seen
> any examples yet or at least none thst would replace a sqlform or
> smartgrid.
>
> If it is not coming I would probaly consider using datatables js in
> the future.
>
>
>
>
> On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:
>
>> For me, there is no porting, it is re-writing.  While a lot of the
>> capabilities are there in py4web not all are part of py4web.  Due to the
>> nature of how things work, a lot of the 'global' structures in web2py 
>> have
>> to be handled differently in py4web.
>>
>> SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the
>> features -
>> https://py4web.com/_documentation/static/index.html#chapter-10
>> auth_group and auth_membership and auth_permission are gone -
>> authentication/authorization have changed -
>> https://py4web.com/_documentation/static/index.html#chapter-11
>>
>> With those things being what they are, I've been playing with py4web
>> for a few days now and really am liking it.  It is crazy fast.  You may
>> have to write some more helpers to do some things that web2py did for 
>> you,
>> but that's half the fun, isn't it?  For instance, I used the grid that
>> web2py's SQLFORM.grid provides for lots of listing pages.  py4web doesn't
>> have one so I've written a helpe

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-23 Thread Christian Varas
Thanks for all that you share guys.

I would like to ask for a recommendation.

I have a web interface made with web2py, this interface manage a web
application firewall (nginx and modsecurity). It does commands and file
modifications in the system to manage properly the WAF, the database is
SQLite.
I don't use sqlform.grid, most of the things in the view are made with pure
JavaScript and Html, and all the commands to the system are with subprocess.
Works pretty fast and without any issue.

My question is if py4web is ok to do this tasks too, like editing files in
system, executing commands and task more oriented to the system and not to
a db.


Now I have to a small adpatation to my app because modsecurity has a new
version and they changed some things, and I was thinking that maybe I can
port all to py4web and have a fresh new start, but I'm not sure..., I love
web2py and now is easy to me to do things with him.

Should I stay in web2py?
Or I should start using py4web for this kind of project?

Cheers!
Chris.


El mié., 22 de ene. de 2020 20:29, Carlos Costa 
escribió:

> Thanks for sharing you experience with py4web, Jim.
>
>
> Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller 
> escreveu:
>
>> The datatables integration for web2py would be super useful. I'm sure we
>> could port it over to py4web easily.
>>
>> I just feel like with all the stuff web2py gave us to get something
>> quickly going missing, it'd just another api framework and there are
>> fastapi and apistar as well falcon out..
>>
>> I think having these ease of use stuff back would really hit home and
>> would also make it easier to port from web2py.
>>
>> And we would be pretty much the Jhipster  of the python world no?
>>
>>
>>
>> On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:
>>
>>> Yes, I will post my main utils.py when I have it working better.  I
>>> still have to clean up a couple pieces.  It would be up to Massimo if he
>>> wanted to add it.  But in response to one of my earlier questions I was
>>> told Massimo kept a utility like this out of py4web so people might use
>>> better tools like datatables.  And, I doubt my code is 'framework-ready'.
>>> But it could give others insight into how you can work with py4web.
>>>
>>> Speaking of datatables, I wrote a datatables integration for web2py last
>>> summer.  I think I could also add that to my utils.py pretty easily.
>>> Actually, the datatables piece would be easier that what I've done writing
>>> my own.  Would you use datatables for complete CRUD, or just to list your
>>> table for record selection, etc.?
>>>
>>> Now that you mentioned mtable, I too recall hearing that before, but
>>> haven't gotten in to it at all.  Like I said, I haven't jumped in to the
>>> client-side javascript much yet, other than jquery.
>>>
>>> -Jim
>>>
>>> On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote:

 Jim,

 Could your helpers be considered to be added to thr py4web code base?

 If you say you have a sqlform.grid equivalent or something in that
 direction?

 I think there was mtable that should take the spot, but haven't seen
 any examples yet or at least none thst would replace a sqlform or
 smartgrid.

 If it is not coming I would probaly consider using datatables js in the
 future.




 On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:

> For me, there is no porting, it is re-writing.  While a lot of the
> capabilities are there in py4web not all are part of py4web.  Due to the
> nature of how things work, a lot of the 'global' structures in web2py have
> to be handled differently in py4web.
>
> SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the
> features -
> https://py4web.com/_documentation/static/index.html#chapter-10
> auth_group and auth_membership and auth_permission are gone -
> authentication/authorization have changed -
> https://py4web.com/_documentation/static/index.html#chapter-11
>
> With those things being what they are, I've been playing with py4web
> for a few days now and really am liking it.  It is crazy fast.  You may
> have to write some more helpers to do some things that web2py did for you,
> but that's half the fun, isn't it?  For instance, I used the grid that
> web2py's SQLFORM.grid provides for lots of listing pages.  py4web doesn't
> have one so I've written a helper that displays  pages the way my app 
> wants
> to see them.
>
> I believe py4web is going to make it easier to use Vue.js in your
> pages, but I haven't made the just to using Vue yet so I can't really
> comment on that part.
>
> -Jim
>
> On Wednesday, January 22, 2020 at 12:33:10 PM UTC-6, Carlos Costa
> wrote:
>>
>> Hey Massimo, thanks for the great info.
>>
>> How about porting apps from web2py to py4web?
>>
>> What steps would you recommend?
>>
>>

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Carlos Costa
Thanks for sharing you experience with py4web, Jim.


Em qua., 22 de jan. de 2020 às 20:04, Kevin Keller 
escreveu:

> The datatables integration for web2py would be super useful. I'm sure we
> could port it over to py4web easily.
>
> I just feel like with all the stuff web2py gave us to get something
> quickly going missing, it'd just another api framework and there are
> fastapi and apistar as well falcon out..
>
> I think having these ease of use stuff back would really hit home and
> would also make it easier to port from web2py.
>
> And we would be pretty much the Jhipster  of the python world no?
>
>
>
> On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:
>
>> Yes, I will post my main utils.py when I have it working better.  I still
>> have to clean up a couple pieces.  It would be up to Massimo if he wanted
>> to add it.  But in response to one of my earlier questions I was told
>> Massimo kept a utility like this out of py4web so people might use better
>> tools like datatables.  And, I doubt my code is 'framework-ready'.  But it
>> could give others insight into how you can work with py4web.
>>
>> Speaking of datatables, I wrote a datatables integration for web2py last
>> summer.  I think I could also add that to my utils.py pretty easily.
>> Actually, the datatables piece would be easier that what I've done writing
>> my own.  Would you use datatables for complete CRUD, or just to list your
>> table for record selection, etc.?
>>
>> Now that you mentioned mtable, I too recall hearing that before, but
>> haven't gotten in to it at all.  Like I said, I haven't jumped in to the
>> client-side javascript much yet, other than jquery.
>>
>> -Jim
>>
>> On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote:
>>>
>>> Jim,
>>>
>>> Could your helpers be considered to be added to thr py4web code base?
>>>
>>> If you say you have a sqlform.grid equivalent or something in that
>>> direction?
>>>
>>> I think there was mtable that should take the spot, but haven't seen any
>>> examples yet or at least none thst would replace a sqlform or smartgrid.
>>>
>>> If it is not coming I would probaly consider using datatables js in the
>>> future.
>>>
>>>
>>>
>>>
>>> On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:
>>>
 For me, there is no porting, it is re-writing.  While a lot of the
 capabilities are there in py4web not all are part of py4web.  Due to the
 nature of how things work, a lot of the 'global' structures in web2py have
 to be handled differently in py4web.

 SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the
 features -
 https://py4web.com/_documentation/static/index.html#chapter-10
 auth_group and auth_membership and auth_permission are gone -
 authentication/authorization have changed -
 https://py4web.com/_documentation/static/index.html#chapter-11

 With those things being what they are, I've been playing with py4web
 for a few days now and really am liking it.  It is crazy fast.  You may
 have to write some more helpers to do some things that web2py did for you,
 but that's half the fun, isn't it?  For instance, I used the grid that
 web2py's SQLFORM.grid provides for lots of listing pages.  py4web doesn't
 have one so I've written a helper that displays  pages the way my app wants
 to see them.

 I believe py4web is going to make it easier to use Vue.js in your
 pages, but I haven't made the just to using Vue yet so I can't really
 comment on that part.

 -Jim

 On Wednesday, January 22, 2020 at 12:33:10 PM UTC-6, Carlos Costa wrote:
>
> Hey Massimo, thanks for the great info.
>
> How about porting apps from web2py to py4web?
>
> What steps would you recommend?
>
> Em qua., 22 de jan. de 2020 às 08:21, AGRogers 
> escreveu:
>
>> OK, thanks. Re reporting errors, I suspect most errors will be due to
>> my ignorance. But thanks for the encouragement.
>>
>> On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro 
>> wrote:
>>
>>> You should use the py4web documentation. Also please report any
>>> error you find.
>>>
>>>
>>> On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:

 Hi

 Is  the documentation for web2py still mostly relevant for py4web?

 Thanks
 Andrew

 On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>
> Should I use Web2py or py4web for a brand new project ?
> What is still missing from py4web  ?
> Can I debug with pycharm ?
> I need all the great authentication I got with web2py :
> Registration,pass change, groups mail, etc.
> smartgreed will be very nice to have or similar.
> Stability ?
> Can it be deployed with nginx  and pg ?
> Thanks
>
> --
>>> Resources:
>>> - http://web2py.com
>>> 

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Kevin Keller
The datatables integration for web2py would be super useful. I'm sure we
could port it over to py4web easily.

I just feel like with all the stuff web2py gave us to get something quickly
going missing, it'd just another api framework and there are fastapi and
apistar as well falcon out..

I think having these ease of use stuff back would really hit home and would
also make it easier to port from web2py.

And we would be pretty much the Jhipster  of the python world no?



On Wed, 22 Jan 2020, 23:50 Jim S,  wrote:

> Yes, I will post my main utils.py when I have it working better.  I still
> have to clean up a couple pieces.  It would be up to Massimo if he wanted
> to add it.  But in response to one of my earlier questions I was told
> Massimo kept a utility like this out of py4web so people might use better
> tools like datatables.  And, I doubt my code is 'framework-ready'.  But it
> could give others insight into how you can work with py4web.
>
> Speaking of datatables, I wrote a datatables integration for web2py last
> summer.  I think I could also add that to my utils.py pretty easily.
> Actually, the datatables piece would be easier that what I've done writing
> my own.  Would you use datatables for complete CRUD, or just to list your
> table for record selection, etc.?
>
> Now that you mentioned mtable, I too recall hearing that before, but
> haven't gotten in to it at all.  Like I said, I haven't jumped in to the
> client-side javascript much yet, other than jquery.
>
> -Jim
>
> On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote:
>>
>> Jim,
>>
>> Could your helpers be considered to be added to thr py4web code base?
>>
>> If you say you have a sqlform.grid equivalent or something in that
>> direction?
>>
>> I think there was mtable that should take the spot, but haven't seen any
>> examples yet or at least none thst would replace a sqlform or smartgrid.
>>
>> If it is not coming I would probaly consider using datatables js in the
>> future.
>>
>>
>>
>>
>> On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:
>>
>>> For me, there is no porting, it is re-writing.  While a lot of the
>>> capabilities are there in py4web not all are part of py4web.  Due to the
>>> nature of how things work, a lot of the 'global' structures in web2py have
>>> to be handled differently in py4web.
>>>
>>> SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the
>>> features -
>>> https://py4web.com/_documentation/static/index.html#chapter-10
>>> auth_group and auth_membership and auth_permission are gone -
>>> authentication/authorization have changed -
>>> https://py4web.com/_documentation/static/index.html#chapter-11
>>>
>>> With those things being what they are, I've been playing with py4web for
>>> a few days now and really am liking it.  It is crazy fast.  You may have to
>>> write some more helpers to do some things that web2py did for you, but
>>> that's half the fun, isn't it?  For instance, I used the grid that web2py's
>>> SQLFORM.grid provides for lots of listing pages.  py4web doesn't have one
>>> so I've written a helper that displays  pages the way my app wants to see
>>> them.
>>>
>>> I believe py4web is going to make it easier to use Vue.js in your pages,
>>> but I haven't made the just to using Vue yet so I can't really comment on
>>> that part.
>>>
>>> -Jim
>>>
>>> On Wednesday, January 22, 2020 at 12:33:10 PM UTC-6, Carlos Costa wrote:

 Hey Massimo, thanks for the great info.

 How about porting apps from web2py to py4web?

 What steps would you recommend?

 Em qua., 22 de jan. de 2020 às 08:21, AGRogers 
 escreveu:

> OK, thanks. Re reporting errors, I suspect most errors will be due to
> my ignorance. But thanks for the encouragement.
>
> On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro 
> wrote:
>
>> You should use the py4web documentation. Also please report any error
>> you find.
>>
>>
>> On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:
>>>
>>> Hi
>>>
>>> Is  the documentation for web2py still mostly relevant for py4web?
>>>
>>> Thanks
>>> Andrew
>>>
>>> On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:

 Should I use Web2py or py4web for a brand new project ?
 What is still missing from py4web  ?
 Can I debug with pycharm ?
 I need all the great authentication I got with web2py :
 Registration,pass change, groups mail, etc.
 smartgreed will be very nice to have or similar.
 Stability ?
 Can it be deployed with nginx  and pg ?
 Thanks

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

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Jim S
Yes, I will post my main utils.py when I have it working better.  I still 
have to clean up a couple pieces.  It would be up to Massimo if he wanted 
to add it.  But in response to one of my earlier questions I was told 
Massimo kept a utility like this out of py4web so people might use better 
tools like datatables.  And, I doubt my code is 'framework-ready'.  But it 
could give others insight into how you can work with py4web.

Speaking of datatables, I wrote a datatables integration for web2py last 
summer.  I think I could also add that to my utils.py pretty easily.  
Actually, the datatables piece would be easier that what I've done writing 
my own.  Would you use datatables for complete CRUD, or just to list your 
table for record selection, etc.?

Now that you mentioned mtable, I too recall hearing that before, but 
haven't gotten in to it at all.  Like I said, I haven't jumped in to the 
client-side javascript much yet, other than jquery.

-Jim

On Wednesday, January 22, 2020 at 4:31:11 PM UTC-6, Kevin Keller wrote:
>
> Jim,
>
> Could your helpers be considered to be added to thr py4web code base? 
>
> If you say you have a sqlform.grid equivalent or something in that 
> direction? 
>
> I think there was mtable that should take the spot, but haven't seen any 
> examples yet or at least none thst would replace a sqlform or smartgrid. 
>
> If it is not coming I would probaly consider using datatables js in the 
> future. 
>
>
>
>
> On Wed, 22 Jan 2020, 21:47 Jim S, > wrote:
>
>> For me, there is no porting, it is re-writing.  While a lot of the 
>> capabilities are there in py4web not all are part of py4web.  Due to the 
>> nature of how things work, a lot of the 'global' structures in web2py have 
>> to be handled differently in py4web.
>>
>> SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the 
>> features - https://py4web.com/_documentation/static/index.html#chapter-10
>> auth_group and auth_membership and auth_permission are gone - 
>> authentication/authorization have changed - 
>> https://py4web.com/_documentation/static/index.html#chapter-11
>>
>> With those things being what they are, I've been playing with py4web for 
>> a few days now and really am liking it.  It is crazy fast.  You may have to 
>> write some more helpers to do some things that web2py did for you, but 
>> that's half the fun, isn't it?  For instance, I used the grid that web2py's 
>> SQLFORM.grid provides for lots of listing pages.  py4web doesn't have one 
>> so I've written a helper that displays  pages the way my app wants to see 
>> them.
>>
>> I believe py4web is going to make it easier to use Vue.js in your pages, 
>> but I haven't made the just to using Vue yet so I can't really comment on 
>> that part.
>>
>> -Jim
>>
>> On Wednesday, January 22, 2020 at 12:33:10 PM UTC-6, Carlos Costa wrote:
>>>
>>> Hey Massimo, thanks for the great info.
>>>
>>> How about porting apps from web2py to py4web?
>>>
>>> What steps would you recommend?
>>>
>>> Em qua., 22 de jan. de 2020 às 08:21, AGRogers  
>>> escreveu:
>>>
 OK, thanks. Re reporting errors, I suspect most errors will be due to 
 my ignorance. But thanks for the encouragement. 

 On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro  
 wrote:

> You should use the py4web documentation. Also please report any error 
> you find.
>
>
> On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:
>>
>> Hi
>>
>> Is  the documentation for web2py still mostly relevant for py4web?
>>
>> Thanks
>> Andrew
>>
>> On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>>>
>>> Should I use Web2py or py4web for a brand new project ?
>>> What is still missing from py4web  ?
>>> Can I debug with pycharm ?
>>> I need all the great authentication I got with web2py : 
>>> Registration,pass change, groups mail, etc.
>>> smartgreed will be very nice to have or similar.
>>> Stability ?
>>> Can it be deployed with nginx  and pg ?
>>> Thanks
>>>
>>> -- 
> 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/d6c0a99a-42c9-4b04-91ab-56c8ac72b8c4%40googlegroups.com
>  
> 
> .
>
 -- 
 Resources:
 - http://web2py.com
 - http://web2py.com/book (Documentation)
 - http://github.com/web2py/web2py (Source c

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Kevin Keller
Jim,

Could your helpers be considered to be added to thr py4web code base?

If you say you have a sqlform.grid equivalent or something in that
direction?

I think there was mtable that should take the spot, but haven't seen any
examples yet or at least none thst would replace a sqlform or smartgrid.

If it is not coming I would probaly consider using datatables js in the
future.




On Wed, 22 Jan 2020, 21:47 Jim S,  wrote:

> For me, there is no porting, it is re-writing.  While a lot of the
> capabilities are there in py4web not all are part of py4web.  Due to the
> nature of how things work, a lot of the 'global' structures in web2py have
> to be handled differently in py4web.
>
> SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the
> features - https://py4web.com/_documentation/static/index.html#chapter-10
> auth_group and auth_membership and auth_permission are gone -
> authentication/authorization have changed -
> https://py4web.com/_documentation/static/index.html#chapter-11
>
> With those things being what they are, I've been playing with py4web for a
> few days now and really am liking it.  It is crazy fast.  You may have to
> write some more helpers to do some things that web2py did for you, but
> that's half the fun, isn't it?  For instance, I used the grid that web2py's
> SQLFORM.grid provides for lots of listing pages.  py4web doesn't have one
> so I've written a helper that displays  pages the way my app wants to see
> them.
>
> I believe py4web is going to make it easier to use Vue.js in your pages,
> but I haven't made the just to using Vue yet so I can't really comment on
> that part.
>
> -Jim
>
> On Wednesday, January 22, 2020 at 12:33:10 PM UTC-6, Carlos Costa wrote:
>>
>> Hey Massimo, thanks for the great info.
>>
>> How about porting apps from web2py to py4web?
>>
>> What steps would you recommend?
>>
>> Em qua., 22 de jan. de 2020 às 08:21, AGRogers 
>> escreveu:
>>
>>> OK, thanks. Re reporting errors, I suspect most errors will be due to my
>>> ignorance. But thanks for the encouragement.
>>>
>>> On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro 
>>> wrote:
>>>
 You should use the py4web documentation. Also please report any error
 you find.


 On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:
>
> Hi
>
> Is  the documentation for web2py still mostly relevant for py4web?
>
> Thanks
> Andrew
>
> On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>>
>> Should I use Web2py or py4web for a brand new project ?
>> What is still missing from py4web  ?
>> Can I debug with pycharm ?
>> I need all the great authentication I got with web2py :
>> Registration,pass change, groups mail, etc.
>> smartgreed will be very nice to have or similar.
>> Stability ?
>> Can it be deployed with nginx  and pg ?
>> Thanks
>>
>> --
 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/d6c0a99a-42c9-4b04-91ab-56c8ac72b8c4%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 web...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/CACWMBMPjhvWrL3%2B0CtjSCFN_fc-246wAbGbBkWKi84Xfixn3Kg%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> At.
>>
>> Carlos J. Costa
>> --
>> Cientista da Computação - Esp. Gestão em Telecom
>>
> --
> 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...@goo

Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Jim S
For me, there is no porting, it is re-writing.  While a lot of the 
capabilities are there in py4web not all are part of py4web.  Due to the 
nature of how things work, a lot of the 'global' structures in web2py have 
to be handled differently in py4web.

SQLFORM.grid is gone.  FORM replaces SQLFORM but doesn't have all the 
features - https://py4web.com/_documentation/static/index.html#chapter-10
auth_group and auth_membership and auth_permission are gone - 
authentication/authorization have changed - 
https://py4web.com/_documentation/static/index.html#chapter-11

With those things being what they are, I've been playing with py4web for a 
few days now and really am liking it.  It is crazy fast.  You may have to 
write some more helpers to do some things that web2py did for you, but 
that's half the fun, isn't it?  For instance, I used the grid that web2py's 
SQLFORM.grid provides for lots of listing pages.  py4web doesn't have one 
so I've written a helper that displays  pages the way my app wants to see 
them.

I believe py4web is going to make it easier to use Vue.js in your pages, 
but I haven't made the just to using Vue yet so I can't really comment on 
that part.

-Jim

On Wednesday, January 22, 2020 at 12:33:10 PM UTC-6, Carlos Costa wrote:
>
> Hey Massimo, thanks for the great info.
>
> How about porting apps from web2py to py4web?
>
> What steps would you recommend?
>
> Em qua., 22 de jan. de 2020 às 08:21, AGRogers  > escreveu:
>
>> OK, thanks. Re reporting errors, I suspect most errors will be due to my 
>> ignorance. But thanks for the encouragement. 
>>
>> On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro > > wrote:
>>
>>> You should use the py4web documentation. Also please report any error 
>>> you find.
>>>
>>>
>>> On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:

 Hi

 Is  the documentation for web2py still mostly relevant for py4web?

 Thanks
 Andrew

 On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>
> Should I use Web2py or py4web for a brand new project ?
> What is still missing from py4web  ?
> Can I debug with pycharm ?
> I need all the great authentication I got with web2py : 
> Registration,pass change, groups mail, etc.
> smartgreed will be very nice to have or similar.
> Stability ?
> Can it be deployed with nginx  and pg ?
> Thanks
>
> -- 
>>> 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/d6c0a99a-42c9-4b04-91ab-56c8ac72b8c4%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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/CACWMBMPjhvWrL3%2B0CtjSCFN_fc-246wAbGbBkWKi84Xfixn3Kg%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> At.
>
> Carlos J. Costa
> --
> Cientista da Computação - Esp. Gestão em Telecom
>

-- 
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/dbd62f85-d7bc-40a2-a8f5-1b5651525020%40googlegroups.com.


Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread Carlos Costa
Hey Massimo, thanks for the great info.

How about porting apps from web2py to py4web?

What steps would you recommend?

Em qua., 22 de jan. de 2020 às 08:21, AGRogers 
escreveu:

> OK, thanks. Re reporting errors, I suspect most errors will be due to my
> ignorance. But thanks for the encouragement.
>
> On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro <
> massimo.dipie...@gmail.com> wrote:
>
>> You should use the py4web documentation. Also please report any error you
>> find.
>>
>>
>> On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:
>>>
>>> Hi
>>>
>>> Is  the documentation for web2py still mostly relevant for py4web?
>>>
>>> Thanks
>>> Andrew
>>>
>>> On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:

 Should I use Web2py or py4web for a brand new project ?
 What is still missing from py4web  ?
 Can I debug with pycharm ?
 I need all the great authentication I got with web2py :
 Registration,pass change, groups mail, etc.
 smartgreed will be very nice to have or similar.
 Stability ?
 Can it be deployed with nginx  and pg ?
 Thanks

 --
>> 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/d6c0a99a-42c9-4b04-91ab-56c8ac72b8c4%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/CACWMBMPjhvWrL3%2B0CtjSCFN_fc-246wAbGbBkWKi84Xfixn3Kg%40mail.gmail.com
> 
> .
>


-- 
At.

Carlos J. Costa
--
Cientista da Computação - Esp. Gestão em Telecom

-- 
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/CAGsD4Nwi%2BqJK2UfK8EJo8hwEtEddj7LQz4PFDeWSBVzmT8%2BHPQ%40mail.gmail.com.


Re: [web2py] Re: Web2py or py4web for a brand new project

2020-01-22 Thread AGRogers
OK, thanks. Re reporting errors, I suspect most errors will be due to my
ignorance. But thanks for the encouragement.

On Tue, Jan 21, 2020, 1:26 PM Massimo Di Pierro 
wrote:

> You should use the py4web documentation. Also please report any error you
> find.
>
>
> On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:
>>
>> Hi
>>
>> Is  the documentation for web2py still mostly relevant for py4web?
>>
>> Thanks
>> Andrew
>>
>> On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>>>
>>> Should I use Web2py or py4web for a brand new project ?
>>> What is still missing from py4web  ?
>>> Can I debug with pycharm ?
>>> I need all the great authentication I got with web2py :
>>> Registration,pass change, groups mail, etc.
>>> smartgreed will be very nice to have or similar.
>>> Stability ?
>>> Can it be deployed with nginx  and pg ?
>>> Thanks
>>>
>>> --
> 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/d6c0a99a-42c9-4b04-91ab-56c8ac72b8c4%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/CACWMBMPjhvWrL3%2B0CtjSCFN_fc-246wAbGbBkWKi84Xfixn3Kg%40mail.gmail.com.


[web2py] Re: Web2py or py4web for a brand new project

2020-01-20 Thread Massimo Di Pierro
You should use the py4web documentation. Also please report any error you 
find.


On Tuesday, 14 January 2020 22:03:59 UTC-8, Andrew Rogers wrote:
>
> Hi
>
> Is  the documentation for web2py still mostly relevant for py4web?
>
> Thanks
> Andrew
>
> On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>>
>> Should I use Web2py or py4web for a brand new project ?
>> What is still missing from py4web  ?
>> Can I debug with pycharm ?
>> I need all the great authentication I got with web2py : Registration,pass 
>> change, groups mail, etc.
>> smartgreed will be very nice to have or similar.
>> Stability ?
>> Can it be deployed with nginx  and pg ?
>> Thanks
>>
>>

-- 
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/d6c0a99a-42c9-4b04-91ab-56c8ac72b8c4%40googlegroups.com.


[web2py] Re: Web2py or py4web for a brand new project

2020-01-14 Thread Andrew Rogers
Hi

Is  the documentation for web2py still mostly relevant for py4web?

Thanks
Andrew

On Thursday, 12 December 2019 20:47:05 UTC+6:30, icodk wrote:
>
> Should I use Web2py or py4web for a brand new project ?
> What is still missing from py4web  ?
> Can I debug with pycharm ?
> I need all the great authentication I got with web2py : Registration,pass 
> change, groups mail, etc.
> smartgreed will be very nice to have or similar.
> Stability ?
> Can it be deployed with nginx  and pg ?
> Thanks
>
>

-- 
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/23bc2c14-3d8b-4524-8164-eda114c7e51f%40googlegroups.com.


[web2py] Re: Web2py or py4web for a brand new project

2020-01-14 Thread Andrew Rogers
Thanks for that info. I am about to start a new project which is also my 
first. So i would like to go with py4web. But i am nervous about not having 
good documentation for py4web.

Is the old documentation and videos etc that you have made (which are great 
- thanks) still mostly relevant?


On Monday, 16 December 2019 03:39:14 UTC+6:30, Massimo Di Pierro wrote:
>
> Good question.
>
> web2py and py4web share a lot of libraries and their syntax is very 
> similar. Both will be maintained.
> web2py was born in 2007 and it is mostly for Python 2 although it now 
> works well with python 3.
>
> As a rule of thumb, if you are porting a Python 2 project to Python 3, use 
> web2py.
> If you are starting from scratch, use py4web.
>
> py4web is ~20x faster. Code is much easier to read.
> They are both solid for production (except none works with py3.8 but we 
> are fixing that)
> They share pydal, templates, multi-app structure, ticket system.
> The request object and routing mechanism is different and py4web uses the 
> bottlepy ones.
> They both have an internationalization/pluralization system and the py4web 
> one is better but it lacks a UI (building one would be a good 1 day 
> project).
> They both have Auth but they are incompatible. The py4web is more modular 
> but less tested. (fixing those bugs is a priority, but need testers)
> web2py has SQLFORM, py4web has py4web.utils.form.Form. They are pretty 
> much equivalent but the latter does not support fields of type list:* (+)
> web2py has SQLFORM.grid and SQLFORM.smartgrid, py4web has Vue component 
>  They are pretty much equivalent but the latter does not support 
> fields of type list:* (+)
>
> (+) indicates things that are missing but we have no plan to add them. Th 
> world is moving to single page apps (vue, angular, react, etc.) and with 
> py4web we wanted to move away from generating complex HTML serverside 
> because it does not scale to complex projects. If you need tables and 
> complex interfaces, you should implement them in vue/angular/react/etc. So 
> we have no plans to add that functionality. What is considered good 
> practice has changed.
>
> Massimo
>
>
>
>
>
>
>
>
>
> On Thursday, 12 December 2019 06:17:05 UTC-8, icodk wrote:
>>
>> Should I use Web2py or py4web for a brand new project ?
>> What is still missing from py4web  ?
>> Can I debug with pycharm ?
>> I need all the great authentication I got with web2py : Registration,pass 
>> change, groups mail, etc.
>> smartgreed will be very nice to have or similar.
>> Stability ?
>> Can it be deployed with nginx  and pg ?
>> Thanks
>>
>>

-- 
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/0cc1fd87-a484-4bcc-9fed-745e449cae2b%40googlegroups.com.


[web2py] Re: Web2py or py4web for a brand new project

2019-12-15 Thread Massimo Di Pierro
Good question.

web2py and py4web share a lot of libraries and their syntax is very 
similar. Both will be maintained.
web2py was born in 2007 and it is mostly for Python 2 although it now works 
well with python 3.

As a rule of thumb, if you are porting a Python 2 project to Python 3, use 
web2py.
If you are starting from scratch, use py4web.

py4web is ~20x faster. Code is much easier to read.
They are both solid for production (except none works with py3.8 but we are 
fixing that)
They share pydal, templates, multi-app structure, ticket system.
The request object and routing mechanism is different and py4web uses the 
bottlepy ones.
They both have an internationalization/pluralization system and the py4web 
one is better but it lacks a UI (building one would be a good 1 day 
project).
They both have Auth but they are incompatible. The py4web is more modular 
but less tested. (fixing those bugs is a priority, but need testers)
web2py has SQLFORM, py4web has py4web.utils.form.Form. They are pretty much 
equivalent but the latter does not support fields of type list:* (+)
web2py has SQLFORM.grid and SQLFORM.smartgrid, py4web has Vue component 
 They are pretty much equivalent but the latter does not support 
fields of type list:* (+)

(+) indicates things that are missing but we have no plan to add them. Th 
world is moving to single page apps (vue, angular, react, etc.) and with 
py4web we wanted to move away from generating complex HTML serverside 
because it does not scale to complex projects. If you need tables and 
complex interfaces, you should implement them in vue/angular/react/etc. So 
we have no plans to add that functionality. What is considered good 
practice has changed.

Massimo









On Thursday, 12 December 2019 06:17:05 UTC-8, icodk wrote:
>
> Should I use Web2py or py4web for a brand new project ?
> What is still missing from py4web  ?
> Can I debug with pycharm ?
> I need all the great authentication I got with web2py : Registration,pass 
> change, groups mail, etc.
> smartgreed will be very nice to have or similar.
> Stability ?
> Can it be deployed with nginx  and pg ?
> Thanks
>
>

-- 
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/2197d0bf-08aa-4f94-9826-423f9888600a%40googlegroups.com.