[web2py] Re: web2py -> py4web

2024-07-21 Thread Massimo Di Pierro
I encourage you at least to try run it to python 3 (probably only need to 
change the print statements if any at all).

On Sunday 21 July 2024 at 21:23:40 UTC-7 gaelpri...@gmail.com wrote:

> Hello Massimo.
>
> I'm still using for 5 Web2py applications with Python 2.7.
> Developing is 2% of my time work, so I need a platform reliable and 
> simple, Web2py is perfect for that.
>
> I must begin a new application and I'll do it with py4web.
>
> Thanks Massimo and to all the guys that have supported Web2py.
> Anyway I hope to have in future some Web2py support if needed.
> Il giorno domenica 14 luglio 2024 alle 04:10:05 UTC+2 Massimo Di Pierro ha 
> scritto:
>
>> Hello everybody,
>>
>> You may have noticed I am not very active on this mailing list. That is 
>> mostly because I have been concentrating my energy on py4web which I think 
>> is must more modern and faster than web2py.
>>
>> Once again I want to encourage you to move.
>> If you look at this page
>>
>>  https://py4web.com/#why
>>
>> You will find it to be very familiar:
>> - has an admin interface (called _dashboard)
>> - has an dbadmin interface
>> - same pyDAL
>> - same template language
>> - same helpers
>> - same session interface
>> - similar but better Form
>> - similar but better Grid (still evolving)
>> - different request object but compatible with bottlepy
>> - different auth logic but support for more Oauth2 services (github, 
>> okta, facebook, etc.)
>> - different but similar background scheduler
>>
>> Here are some instructions about how to move from web2py to py4web
>>
>> web2py currently works for python2.7 and python3.7+ but they are using a 
>> frozen version of pydal. This no longer works on Google App Engine. So how 
>> do we fix it?
>>
>> I am considering the following:
>> - freezing web2py for Python 2.7 and stopping support.
>> - continuing limited support of web2py for python3.7+ and specifically 
>> upgrade pydal for the lastest. 
>> - upgrade pydal so that it continues to work on Google App Engine for 
>> both web2py and py4web.
>>
>> My questions are: Is this worth it? Have people moved from python2.7 to 
>> 3.7+ already? Are people here interested in continuing to use web2py with 
>> GAE?
>>  
>>
>> Massimo
>>
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c23f65c1-4ad9-4792-9322-5827a23fe659n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-21 Thread Massimo Di Pierro
I encourage you at least to try run it to python 3 (probably only need to 
change the print statements if any at all).

On Sunday 21 July 2024 at 21:23:40 UTC-7 gaelpri...@gmail.com wrote:

> Hello Massimo.
>
> I'm still using for 5 Web2py applications with Python 2.7.
> Developing is 2% of my time work, so I need a platform reliable and 
> simple, Web2py is perfect for that.
>
> I must begin a new application and I'll do it with py4web.
>
> Thanks Massimo and to all the guys that have supported Web2py.
> Anyway I hope to have in future some Web2py support if needed.
> Il giorno domenica 14 luglio 2024 alle 04:10:05 UTC+2 Massimo Di Pierro ha 
> scritto:
>
>> Hello everybody,
>>
>> You may have noticed I am not very active on this mailing list. That is 
>> mostly because I have been concentrating my energy on py4web which I think 
>> is must more modern and faster than web2py.
>>
>> Once again I want to encourage you to move.
>> If you look at this page
>>
>>  https://py4web.com/#why
>>
>> You will find it to be very familiar:
>> - has an admin interface (called _dashboard)
>> - has an dbadmin interface
>> - same pyDAL
>> - same template language
>> - same helpers
>> - same session interface
>> - similar but better Form
>> - similar but better Grid (still evolving)
>> - different request object but compatible with bottlepy
>> - different auth logic but support for more Oauth2 services (github, 
>> okta, facebook, etc.)
>> - different but similar background scheduler
>>
>> Here are some instructions about how to move from web2py to py4web
>>
>> web2py currently works for python2.7 and python3.7+ but they are using a 
>> frozen version of pydal. This no longer works on Google App Engine. So how 
>> do we fix it?
>>
>> I am considering the following:
>> - freezing web2py for Python 2.7 and stopping support.
>> - continuing limited support of web2py for python3.7+ and specifically 
>> upgrade pydal for the lastest. 
>> - upgrade pydal so that it continues to work on Google App Engine for 
>> both web2py and py4web.
>>
>> My questions are: Is this worth it? Have people moved from python2.7 to 
>> 3.7+ already? Are people here interested in continuing to use web2py with 
>> GAE?
>>  
>>
>> Massimo
>>
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a280edb2-f5da-43ae-96b4-6d2bcb5f0666n%40googlegroups.com.


Re: [web2py] Re: web2py -> py4web

2024-07-21 Thread Chitti Siva
Hi,

Why are you adding in this mail loop and why you reply on this mail. Please
remove my mail in this mail loop.

Thank & Regards,
Siva Chitti.

On Thu, 18 Jul, 2024, 6:57 pm xgp.l...@gmail.com, 
wrote:

> Hi Massimo.
>
> At the moment I haven't moved to py4web. I would like you to consider
> support for web2py until python 3.13 at least. I understand the hard work
> it takes, but keep in mind improvements on newer versions of python are
> worth it.
>
> Only using python 3.10+
> Not using GAE.
>
>
> Thanks your hard work always.
>
>
> El sábado, 13 de julio de 2024 a las 21:10:05 UTC-5, Massimo Di Pierro
> escribió:
>
>> Hello everybody,
>>
>> You may have noticed I am not very active on this mailing list. That is
>> mostly because I have been concentrating my energy on py4web which I think
>> is must more modern and faster than web2py.
>>
>> Once again I want to encourage you to move.
>> If you look at this page
>>
>>  https://py4web.com/#why
>>
>> You will find it to be very familiar:
>> - has an admin interface (called _dashboard)
>> - has an dbadmin interface
>> - same pyDAL
>> - same template language
>> - same helpers
>> - same session interface
>> - similar but better Form
>> - similar but better Grid (still evolving)
>> - different request object but compatible with bottlepy
>> - different auth logic but support for more Oauth2 services (github,
>> okta, facebook, etc.)
>> - different but similar background scheduler
>>
>> Here are some instructions about how to move from web2py to py4web
>>
>> web2py currently works for python2.7 and python3.7+ but they are using a
>> frozen version of pydal. This no longer works on Google App Engine. So how
>> do we fix it?
>>
>> I am considering the following:
>> - freezing web2py for Python 2.7 and stopping support.
>> - continuing limited support of web2py for python3.7+ and specifically
>> upgrade pydal for the lastest.
>> - upgrade pydal so that it continues to work on Google App Engine for
>> both web2py and py4web.
>>
>> My questions are: Is this worth it? Have people moved from python2.7 to
>> 3.7+ already? Are people here interested in continuing to use web2py with
>> GAE?
>>
>>
>> Massimo
>>
>>
>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/7cf4cdd3-e91e-413d-9cbf-66cb54b69e2dn%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/CAMJQDfd0bE7a5XUTW0Y1KVkvcL1QXwcQBkMgAMSE3B5xc%3DSpvg%40mail.gmail.com.


[web2py] Re: web2py -> py4web

2024-07-21 Thread Gaël Princivalle
Hello Massimo.

I'm still using for 5 Web2py applications with Python 2.7.
Developing is 2% of my time work, so I need a platform reliable and simple, 
Web2py is perfect for that.

I must begin a new application and I'll do it with py4web.

Thanks Massimo and to all the guys that have supported Web2py.
Anyway I hope to have in future some Web2py support if needed.
Il giorno domenica 14 luglio 2024 alle 04:10:05 UTC+2 Massimo Di Pierro ha 
scritto:

> Hello everybody,
>
> You may have noticed I am not very active on this mailing list. That is 
> mostly because I have been concentrating my energy on py4web which I think 
> is must more modern and faster than web2py.
>
> Once again I want to encourage you to move.
> If you look at this page
>
>  https://py4web.com/#why
>
> You will find it to be very familiar:
> - has an admin interface (called _dashboard)
> - has an dbadmin interface
> - same pyDAL
> - same template language
> - same helpers
> - same session interface
> - similar but better Form
> - similar but better Grid (still evolving)
> - different request object but compatible with bottlepy
> - different auth logic but support for more Oauth2 services (github, okta, 
> facebook, etc.)
> - different but similar background scheduler
>
> Here are some instructions about how to move from web2py to py4web
>
> web2py currently works for python2.7 and python3.7+ but they are using a 
> frozen version of pydal. This no longer works on Google App Engine. So how 
> do we fix it?
>
> I am considering the following:
> - freezing web2py for Python 2.7 and stopping support.
> - continuing limited support of web2py for python3.7+ and specifically 
> upgrade pydal for the lastest. 
> - upgrade pydal so that it continues to work on Google App Engine for both 
> web2py and py4web.
>
> My questions are: Is this worth it? Have people moved from python2.7 to 
> 3.7+ already? Are people here interested in continuing to use web2py with 
> GAE?
>  
>
> Massimo
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/77381704-9c85-4f06-a730-0a82f4446141n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-21 Thread Massimo Di Pierro
Not true anymore. I will fix that.

On Tuesday 16 July 2024 at 23:17:49 UTC-7 Rowdy wrote:

> On 14/7/2024 12:10 pm, Massimo Di Pierro wrote:
> > Hello everybody,
> > 
> > You may have noticed I am not very active on this mailing list. That is 
> > mostly because I have been concentrating my energy on py4web which I 
> > think is must more modern and faster than web2py.
> > 
> > Once again I want to encourage you to move.
>
> Hi,
>
> At work we have moved away from a web2py solution to a Java solution.
>
> At home I still have a couple of small web2py apps running with Python 2 
> under Docker. No plans to update at this stage (to py4web or Python 3 - 
> the apps work fine as they are).
>
> On the py4web GitHub page, in the "Tell me more" section, it notes:
>
> "this is a work in progress and not stable yet but close to being stable"
>
> Is that still the case?
>
> Thanks for a great framework!
>
> Rowdy
>
>
>

-- 
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/3a24e9e5-302f-4f08-b5f5-42c8c2f18b20n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-18 Thread xgp.l...@gmail.com
Hi Massimo.

At the moment I haven't moved to py4web. I would like you to consider 
support for web2py until python 3.13 at least. I understand the hard work 
it takes, but keep in mind improvements on newer versions of python are 
worth it.

Only using python 3.10+ 
Not using GAE.


Thanks your hard work always.


El sábado, 13 de julio de 2024 a las 21:10:05 UTC-5, Massimo Di Pierro 
escribió:

> Hello everybody,
>
> You may have noticed I am not very active on this mailing list. That is 
> mostly because I have been concentrating my energy on py4web which I think 
> is must more modern and faster than web2py.
>
> Once again I want to encourage you to move.
> If you look at this page
>
>  https://py4web.com/#why
>
> You will find it to be very familiar:
> - has an admin interface (called _dashboard)
> - has an dbadmin interface
> - same pyDAL
> - same template language
> - same helpers
> - same session interface
> - similar but better Form
> - similar but better Grid (still evolving)
> - different request object but compatible with bottlepy
> - different auth logic but support for more Oauth2 services (github, okta, 
> facebook, etc.)
> - different but similar background scheduler
>
> Here are some instructions about how to move from web2py to py4web
>
> web2py currently works for python2.7 and python3.7+ but they are using a 
> frozen version of pydal. This no longer works on Google App Engine. So how 
> do we fix it?
>
> I am considering the following:
> - freezing web2py for Python 2.7 and stopping support.
> - continuing limited support of web2py for python3.7+ and specifically 
> upgrade pydal for the lastest. 
> - upgrade pydal so that it continues to work on Google App Engine for both 
> web2py and py4web.
>
> My questions are: Is this worth it? Have people moved from python2.7 to 
> 3.7+ already? Are people here interested in continuing to use web2py with 
> GAE?
>  
>
> Massimo
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/7cf4cdd3-e91e-413d-9cbf-66cb54b69e2dn%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-17 Thread Bruce Young
I'm using web2py for several projects. Thanks for everything.
Moved to Python 3.11
Never used GAE
Hopefully we will still get security updated for a while.
Haven't moved to py4web because of lack of time, and frankly partly because 
of the admin interface. It's hard to get used to after web2py.

Bruce

On Saturday, July 13, 2024 at 7:10:05 PM UTC-7 Massimo Di Pierro wrote:

> Hello everybody,
>
> You may have noticed I am not very active on this mailing list. That is 
> mostly because I have been concentrating my energy on py4web which I think 
> is must more modern and faster than web2py.
>
> Once again I want to encourage you to move.
> If you look at this page
>
>  https://py4web.com/#why
>
> You will find it to be very familiar:
> - has an admin interface (called _dashboard)
> - has an dbadmin interface
> - same pyDAL
> - same template language
> - same helpers
> - same session interface
> - similar but better Form
> - similar but better Grid (still evolving)
> - different request object but compatible with bottlepy
> - different auth logic but support for more Oauth2 services (github, okta, 
> facebook, etc.)
> - different but similar background scheduler
>
> Here are some instructions about how to move from web2py to py4web
>
> web2py currently works for python2.7 and python3.7+ but they are using a 
> frozen version of pydal. This no longer works on Google App Engine. So how 
> do we fix it?
>
> I am considering the following:
> - freezing web2py for Python 2.7 and stopping support.
> - continuing limited support of web2py for python3.7+ and specifically 
> upgrade pydal for the lastest. 
> - upgrade pydal so that it continues to work on Google App Engine for both 
> web2py and py4web.
>
> My questions are: Is this worth it? Have people moved from python2.7 to 
> 3.7+ already? Are people here interested in continuing to use web2py with 
> GAE?
>  
>
> Massimo
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/5ebd4eda-33d8-4fd5-a489-d343e6719d43n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-17 Thread Jim S
I have moved most everything to py4web except for 3 big apps. However, we 
are migrating our ERP to Odoo and then these web2py apps will no longer be 
needed. Hope to have Python 2.7 support in web2py through March of 2025. We 
should be off by then. That being said, I doubt I'll be 
downloading/installing anything between now and then. I have working 
versions around I can use if you drop 2.7 support.

-Jim

On Wednesday, July 17, 2024 at 1:17:49 AM UTC-5 Rowdy wrote:

> On 14/7/2024 12:10 pm, Massimo Di Pierro wrote:
> > Hello everybody,
> > 
> > You may have noticed I am not very active on this mailing list. That is 
> > mostly because I have been concentrating my energy on py4web which I 
> > think is must more modern and faster than web2py.
> > 
> > Once again I want to encourage you to move.
>
> Hi,
>
> At work we have moved away from a web2py solution to a Java solution.
>
> At home I still have a couple of small web2py apps running with Python 2 
> under Docker. No plans to update at this stage (to py4web or Python 3 - 
> the apps work fine as they are).
>
> On the py4web GitHub page, in the "Tell me more" section, it notes:
>
> "this is a work in progress and not stable yet but close to being stable"
>
> Is that still the case?
>
> Thanks for a great framework!
>
> Rowdy
>
>
>

-- 
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/1be36290-3f6d-480a-8260-fd0848aadb38n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-17 Thread Rowdy

On 14/7/2024 12:10 pm, Massimo Di Pierro wrote:

Hello everybody,

You may have noticed I am not very active on this mailing list. That is 
mostly because I have been concentrating my energy on py4web which I 
think is must more modern and faster than web2py.


Once again I want to encourage you to move.


Hi,

At work we have moved away from a web2py solution to a Java solution.

At home I still have a couple of small web2py apps running with Python 2 
under Docker.  No plans to update at this stage (to py4web or Python 3 - 
the apps work fine as they are).


On the py4web GitHub page, in the "Tell me more" section, it notes:

"this is a work in progress and not stable yet but close to being stable"

Is that still the case?

Thanks for a great framework!

Rowdy


--
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/v77nlr%24ce7%241%40ciao.gmane.io.


Re: [web2py] Re: web2py -> py4web

2024-07-16 Thread Carlos Correia

Hi,

Moving to Python 3 is a must!

As for Web2py I have several servers using it (one of them is an ERP) and I 
don't know when I will have time to move them to Py4web, so I beg you not to 
drop Web2py support.


Best regards,
Carlos

Às 04:49 de 17/07/24, Massimo Di Pierro escreveu:

It is very encouraging to know people have moved to python 3. :-)

On Tuesday 16 July 2024 at 22:16:03 UTC-4 snide...@gmail.com wrote:

On Saturday, July 13, 2024 at 7:10:05 PM UTC-7 Massimo Di Pierro wrote:

Hello everybody,

You may have noticed I am not very active on this mailing list. That
is mostly because I have been concentrating my energy on py4web which
I think is must more modern and faster than web2py.

Once again I want to encourage you to move.


I am interested in moving, but I keep leaving corners on my tuits.  I
don't seem to get them round.

BTW, does the javascript for the views have support for a) session storage
and b) identifying tabs?
[...]

web2py currently works for python2.7 and python3.7+ but they are using
a frozen version of pydal. This no longer works on Google App Engine.
So how do we fix it?

I am considering the following:
- freezing web2py for Python 2.7 and stopping support.
- continuing limited support of web2py for python3.7+ and specifically
upgrade pydal for the lastest.
- upgrade pydal so that it continues to work on Google App Engine for
both web2py and py4web.

My questions are: Is this worth it? Have people moved from python2.7
to 3.7+ already? Are people here interested in continuing to use
web2py with GAE?


Massimo


I'm no longer supporting a production instance of a web2py app  but I have
a small public hobby app on digital ocean (python reasonably current 3.x),
and some personal toy apps which I maybe will make somewhat useful for
other people.  The toys are running on 3.10.7 on windows using the source
package (still on 2.22.5 for the moment).

I've been meaning to file a bug report; one of the tuits is supposed to be
for writing up the details, but basically at some point in version history
the admin panel stopped sending all the required info needed to make the
"next 100" button work.  The resulting page has an empty query box, an
error message "cannot be empty", and a url like
"[...]/appadmin/select/db?start=100". This issue seems to have been in
since at least 2.21.x, maybe longer.

I've very much enjoyed using web2py over the years, beginning with a
development lab application for controlling test equipment.  I had a need
for SOAP, and whatever package I used led me to web2py (likely
pysimplesoap, but I don't have my lab notes since that lab was closed). 
Eventually I was using web2py for providing a repository for customer
dumps used by the support team. And of course, it grew features like
being  an update server for product firmware and applications.  Ah, fun.

I keep reading the py4web Google Group, so I have some idea of what goes
on with the New Kid, but still working from my comfort zone.

Dave S
/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/864dbbf4-e98e-4efe-a225-e28546e071afn%40googlegroups.com 
.



--
Com os melhores cumprimentos,

Carlos Correia
=
MEMÓRIA PERSISTENTE
GSM:  917 157 146 (Signal)
e-mail:ge...@memoriapersistente.pt
URL:http://www.memoriapersistente.pt

--
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/ba4cd10c-2d7b-44aa-828e-7ee34f8bccfe%40memoriapersistente.pt.


[web2py] Re: web2py -> py4web

2024-07-16 Thread Massimo Di Pierro
It is very encouraging to know people have moved to python 3. :-)

On Tuesday 16 July 2024 at 22:16:03 UTC-4 snide...@gmail.com wrote:

> On Saturday, July 13, 2024 at 7:10:05 PM UTC-7 Massimo Di Pierro wrote:
>
> Hello everybody,
>
> You may have noticed I am not very active on this mailing list. That is 
> mostly because I have been concentrating my energy on py4web which I think 
> is must more modern and faster than web2py.
>
> Once again I want to encourage you to move.
>
>
> I am interested in moving, but I keep leaving corners on my tuits.  I 
> don't seem to get them round.
>
> BTW, does the javascript for the views have support for a) session storage 
> and b) identifying tabs?
>  
> [...] 
>
> web2py currently works for python2.7 and python3.7+ but they are using a 
> frozen version of pydal. This no longer works on Google App Engine. So how 
> do we fix it?
>
> I am considering the following:
> - freezing web2py for Python 2.7 and stopping support.
> - continuing limited support of web2py for python3.7+ and specifically 
> upgrade pydal for the lastest. 
> - upgrade pydal so that it continues to work on Google App Engine for both 
> web2py and py4web.
>
> My questions are: Is this worth it? Have people moved from python2.7 to 
> 3.7+ already? Are people here interested in continuing to use web2py with 
> GAE?
>  
>
> Massimo
>
>
> I'm no longer supporting a production instance of a web2py app  but I have 
> a small public hobby app on digital ocean (python reasonably current 3.x), 
> and some personal toy apps which I maybe will make somewhat useful for 
> other people.  The toys are running on 3.10.7 on windows using the source 
> package (still on 2.22.5 for the moment).
>
> I've been meaning to file a bug report; one of the tuits is supposed to be 
> for writing up the details, but basically at some point in version history 
> the admin panel stopped sending all the required info needed to make the 
> "next 
> 100" button work.  The resulting page has an empty query box, an error 
> message "cannot be empty", and a url like "[...]
> /appadmin/select/db?start=100".  This issue seems to have been in since 
> at least 2.21.x, maybe longer.
>
> I've very much enjoyed using web2py over the years, beginning with a 
> development lab application for controlling test equipment.  I had a need 
> for SOAP, and whatever package I used led me to web2py (likely 
> pysimplesoap, but I don't have my lab notes since that lab was closed).  
> Eventually I was using web2py for providing a repository for customer dumps 
> used by the support team.  And of course, it grew features like being  an 
> update server for product firmware and applications.  Ah, fun.
>
> I keep reading the py4web Google Group, so I have some idea of what goes 
> on with the New Kid, but still working from my comfort zone.
>
> Dave S
> /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/864dbbf4-e98e-4efe-a225-e28546e071afn%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-16 Thread Dave S


On Saturday, July 13, 2024 at 7:10:05 PM UTC-7 Massimo Di Pierro wrote:

Hello everybody,

You may have noticed I am not very active on this mailing list. That is 
mostly because I have been concentrating my energy on py4web which I think 
is must more modern and faster than web2py.

Once again I want to encourage you to move.


I am interested in moving, but I keep leaving corners on my tuits.  I don't 
seem to get them round.

BTW, does the javascript for the views have support for a) session storage 
and b) identifying tabs?
 
[...] 

web2py currently works for python2.7 and python3.7+ but they are using a 
frozen version of pydal. This no longer works on Google App Engine. So how 
do we fix it?

I am considering the following:
- freezing web2py for Python 2.7 and stopping support.
- continuing limited support of web2py for python3.7+ and specifically 
upgrade pydal for the lastest. 
- upgrade pydal so that it continues to work on Google App Engine for both 
web2py and py4web.

My questions are: Is this worth it? Have people moved from python2.7 to 
3.7+ already? Are people here interested in continuing to use web2py with 
GAE?
 

Massimo


I'm no longer supporting a production instance of a web2py app  but I have 
a small public hobby app on digital ocean (python reasonably current 3.x), 
and some personal toy apps which I maybe will make somewhat useful for 
other people.  The toys are running on 3.10.7 on windows using the source 
package (still on 2.22.5 for the moment).

I've been meaning to file a bug report; one of the tuits is supposed to be 
for writing up the details, but basically at some point in version history 
the admin panel stopped sending all the required info needed to make the "next 
100" button work.  The resulting page has an empty query box, an error 
message "cannot be empty", and a url like "[...]
/appadmin/select/db?start=100".  This issue seems to have been in since at 
least 2.21.x, maybe longer.

I've very much enjoyed using web2py over the years, beginning with a 
development lab application for controlling test equipment.  I had a need 
for SOAP, and whatever package I used led me to web2py (likely 
pysimplesoap, but I don't have my lab notes since that lab was closed).  
Eventually I was using web2py for providing a repository for customer dumps 
used by the support team.  And of course, it grew features like being  an 
update server for product firmware and applications.  Ah, fun.

I keep reading the py4web Google Group, so I have some idea of what goes on 
with the New Kid, but still working from my comfort zone.

Dave S
/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/fb1e4f43-ec04-46e6-b0d7-c262c98dd09cn%40googlegroups.com.


Re: [web2py] Re: web2py -> py4web

2024-07-15 Thread Christian Varas
Hi Massimo,
In my case I have still one app in production using web2py, I haven’t
migrated yet because is quite big. For the rest of my apps, are all
migrated to py4web and they work so much faster :).

In my opinion, drop the support of python 2.7 is recommended to avoid
security issues, and also to minimize the work load of maintenance.

For web2py, maybe it is better just do bug fixes and no more upgrades.
Web2py is an amazing framework that work out of the box. But Py4web is just
better !

I don’t use GAE with web2py, I’ve always used in a VPS.

Thanks you  and all the team behind. 

Chris.
El El lun, 15 jul. 2024 a la(s) 7:25 a. m., Raul Monares 
escribió:

> Hi Massimo
> I have several web2py applications in production. Big systems that would
> be difficult to move to py4web as they are growing all the time. But we're
> using Python 3.8.
>
> Also, GAE is not relevant to us
>
> Web2py has been fantastic.
>
> On Sunday, July 14, 2024 at 2:11:23 AM UTC-6 Clemens wrote:
>
>> Hello Massimo,
>>
>> I'm a vital web2py user with a 3 systems in production. I've moved to
>> python 3.7+ (currently 3.8) a long time ago.  I'm using postgres as
>> database, thus for me GAE would not be relevant.
>>
>> But I'm really interested in any support and security updates of web2py.
>>
>> I would like to migrate to py4web. The only but big obstacle is time. As
>> soon as I find the time I'm gonna move to py4web.
>>
>> Thanks a lot for web2py and your work!
>>
>> Best regards
>> Clemens
>>
>>
>> On Sunday, July 14, 2024 at 4:10:05 AM UTC+2 Massimo Di Pierro wrote:
>>
>>> Hello everybody,
>>>
>>> You may have noticed I am not very active on this mailing list. That is
>>> mostly because I have been concentrating my energy on py4web which I think
>>> is must more modern and faster than web2py.
>>>
>>> Once again I want to encourage you to move.
>>> If you look at this page
>>>
>>>  https://py4web.com/#why
>>>
>>> You will find it to be very familiar:
>>> - has an admin interface (called _dashboard)
>>> - has an dbadmin interface
>>> - same pyDAL
>>> - same template language
>>> - same helpers
>>> - same session interface
>>> - similar but better Form
>>> - similar but better Grid (still evolving)
>>> - different request object but compatible with bottlepy
>>> - different auth logic but support for more Oauth2 services (github,
>>> okta, facebook, etc.)
>>> - different but similar background scheduler
>>>
>>> Here are some instructions about how to move from web2py to py4web
>>>
>>> web2py currently works for python2.7 and python3.7+ but they are using a
>>> frozen version of pydal. This no longer works on Google App Engine. So how
>>> do we fix it?
>>>
>>> I am considering the following:
>>> - freezing web2py for Python 2.7 and stopping support.
>>> - continuing limited support of web2py for python3.7+ and specifically
>>> upgrade pydal for the lastest.
>>> - upgrade pydal so that it continues to work on Google App Engine for
>>> both web2py and py4web.
>>>
>>> My questions are: Is this worth it? Have people moved from python2.7 to
>>> 3.7+ already? Are people here interested in continuing to use web2py with
>>> GAE?
>>>
>>>
>>> Massimo
>>>
>>>
>>>
>>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/6794728c-4c38-4826-ad07-d7b9827d0585n%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%2Bs%2BuJth8X2yJBhi1n97%3Dyho3bLQNGM9Q2e-GNLt3Yb1X%2B6yfw%40mail.gmail.com.


[web2py] Re: web2py -> py4web

2024-07-15 Thread Brian M
I have a larger web2py app that would be a chore to migrate - hard to 
justify the time without clear incentives. It’s running Python 3.10 and not 
on GAE. Would be nice if there was at least some security updates.

On Saturday, July 13, 2024 at 9:10:05 PM UTC-5 Massimo Di Pierro wrote:

> Hello everybody,
>
> You may have noticed I am not very active on this mailing list. That is 
> mostly because I have been concentrating my energy on py4web which I think 
> is must more modern and faster than web2py.
>
> Once again I want to encourage you to move.
> If you look at this page
>
>  https://py4web.com/#why
>
> You will find it to be very familiar:
> - has an admin interface (called _dashboard)
> - has an dbadmin interface
> - same pyDAL
> - same template language
> - same helpers
> - same session interface
> - similar but better Form
> - similar but better Grid (still evolving)
> - different request object but compatible with bottlepy
> - different auth logic but support for more Oauth2 services (github, okta, 
> facebook, etc.)
> - different but similar background scheduler
>
> Here are some instructions about how to move from web2py to py4web
>
> web2py currently works for python2.7 and python3.7+ but they are using a 
> frozen version of pydal. This no longer works on Google App Engine. So how 
> do we fix it?
>
> I am considering the following:
> - freezing web2py for Python 2.7 and stopping support.
> - continuing limited support of web2py for python3.7+ and specifically 
> upgrade pydal for the lastest. 
> - upgrade pydal so that it continues to work on Google App Engine for both 
> web2py and py4web.
>
> My questions are: Is this worth it? Have people moved from python2.7 to 
> 3.7+ already? Are people here interested in continuing to use web2py with 
> GAE?
>  
>
> Massimo
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/22c01a6a-8644-4df2-a46a-0e1b5f8e9929n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-14 Thread Raul Monares
Hi Massimo
I have several web2py applications in production. Big systems that would be 
difficult to move to py4web as they are growing all the time. But we're 
using Python 3.8.

Also, GAE is not relevant to us

Web2py has been fantastic. 

On Sunday, July 14, 2024 at 2:11:23 AM UTC-6 Clemens wrote:

> Hello Massimo,
>
> I'm a vital web2py user with a 3 systems in production. I've moved to 
> python 3.7+ (currently 3.8) a long time ago.  I'm using postgres as 
> database, thus for me GAE would not be relevant.
>
> But I'm really interested in any support and security updates of web2py.
>
> I would like to migrate to py4web. The only but big obstacle is time. As 
> soon as I find the time I'm gonna move to py4web.
>
> Thanks a lot for web2py and your work!
>
> Best regards
> Clemens
>
>
> On Sunday, July 14, 2024 at 4:10:05 AM UTC+2 Massimo Di Pierro wrote:
>
>> Hello everybody,
>>
>> You may have noticed I am not very active on this mailing list. That is 
>> mostly because I have been concentrating my energy on py4web which I think 
>> is must more modern and faster than web2py.
>>
>> Once again I want to encourage you to move.
>> If you look at this page
>>
>>  https://py4web.com/#why
>>
>> You will find it to be very familiar:
>> - has an admin interface (called _dashboard)
>> - has an dbadmin interface
>> - same pyDAL
>> - same template language
>> - same helpers
>> - same session interface
>> - similar but better Form
>> - similar but better Grid (still evolving)
>> - different request object but compatible with bottlepy
>> - different auth logic but support for more Oauth2 services (github, 
>> okta, facebook, etc.)
>> - different but similar background scheduler
>>
>> Here are some instructions about how to move from web2py to py4web
>>
>> web2py currently works for python2.7 and python3.7+ but they are using a 
>> frozen version of pydal. This no longer works on Google App Engine. So how 
>> do we fix it?
>>
>> I am considering the following:
>> - freezing web2py for Python 2.7 and stopping support.
>> - continuing limited support of web2py for python3.7+ and specifically 
>> upgrade pydal for the lastest. 
>> - upgrade pydal so that it continues to work on Google App Engine for 
>> both web2py and py4web.
>>
>> My questions are: Is this worth it? Have people moved from python2.7 to 
>> 3.7+ already? Are people here interested in continuing to use web2py with 
>> GAE?
>>  
>>
>> Massimo
>>
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6794728c-4c38-4826-ad07-d7b9827d0585n%40googlegroups.com.


[web2py] Re: web2py -> py4web

2024-07-14 Thread Clemens
Hello Massimo,

I'm a vital web2py user with a 3 systems in production. I've moved to 
python 3.7+ (currently 3.8) a long time ago.  I'm using postgres as 
database, thus for me GAE would not be relevant.

But I'm really interested in any support and security updates of web2py.

I would like to migrate to py4web. The only but big obstacle is time. As 
soon as I find the time I'm gonna move to py4web.

Thanks a lot for web2py and your work!

Best regards
Clemens


On Sunday, July 14, 2024 at 4:10:05 AM UTC+2 Massimo Di Pierro wrote:

> Hello everybody,
>
> You may have noticed I am not very active on this mailing list. That is 
> mostly because I have been concentrating my energy on py4web which I think 
> is must more modern and faster than web2py.
>
> Once again I want to encourage you to move.
> If you look at this page
>
>  https://py4web.com/#why
>
> You will find it to be very familiar:
> - has an admin interface (called _dashboard)
> - has an dbadmin interface
> - same pyDAL
> - same template language
> - same helpers
> - same session interface
> - similar but better Form
> - similar but better Grid (still evolving)
> - different request object but compatible with bottlepy
> - different auth logic but support for more Oauth2 services (github, okta, 
> facebook, etc.)
> - different but similar background scheduler
>
> Here are some instructions about how to move from web2py to py4web
>
> web2py currently works for python2.7 and python3.7+ but they are using a 
> frozen version of pydal. This no longer works on Google App Engine. So how 
> do we fix it?
>
> I am considering the following:
> - freezing web2py for Python 2.7 and stopping support.
> - continuing limited support of web2py for python3.7+ and specifically 
> upgrade pydal for the lastest. 
> - upgrade pydal so that it continues to work on Google App Engine for both 
> web2py and py4web.
>
> My questions are: Is this worth it? Have people moved from python2.7 to 
> 3.7+ already? Are people here interested in continuing to use web2py with 
> GAE?
>  
>
> Massimo
>
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/89ad602e-b516-4e86-98d4-1ac9730105fen%40googlegroups.com.


[web2py] Re: web2py website

2024-02-29 Thread Dave S

On Wednesday, February 21, 2024 at 11:29:07 AM UTC-8 syna...@gmail.com 
wrote:

Will the web2py website be getting a refresh anytime? That award badge - 
it's from 14 years ago.


web2py is in maintenance mode.  Spiffing up the website  isn't an important 
sales tool.  Here's hoping py4web gets some new award badges as it takes 
over the world.

/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/fda20135-7b2e-454e-aa10-b6600df4275dn%40googlegroups.com.


[web2py] Re: web2py 2.27.1 released

2023-12-28 Thread Massimo Di Pierro
yes. sorry had forgotten to push the tags.

-- 
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/add105d1-02aa-46fb-8567-50825c28b8fdn%40googlegroups.com.


[web2py] Re: web2py 2.27.1 released

2023-11-28 Thread fabrizzio...@abogadoc.com
Great!
where we can find it?
https://github.com/web2py/web2py/tags
?

On Saturday, November 18, 2023 at 7:15:07 PM UTC-3 ra...@tarkus.mx wrote:

> Excellent !!!
>
> On Thursday, November 16, 2023 at 1:10:43 AM UTC-7 Massimo Di Pierro wrote:
>
>> web2py 2.27.1 was released
>>
>> - some linting and formatting
>> - added support to Python 3.11
>> - fixed regexen and classname
>> - removed a circular dependency
>>
>>

-- 
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/fc290c77-40fa-4545-99b6-29997946ab16n%40googlegroups.com.


[web2py] Re: web2py 2.27.1 released

2023-11-18 Thread Raul Monares
Excellent !!!

On Thursday, November 16, 2023 at 1:10:43 AM UTC-7 Massimo Di Pierro wrote:

> web2py 2.27.1 was released
>
> - some linting and formatting
> - added support to Python 3.11
> - fixed regexen and classname
> - removed a circular dependency
>
>

-- 
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/0a15ca8d-d7b0-4805-9d14-3e6f29572923n%40googlegroups.com.


Re: [web2py] Re: web2py 2.26.1 released

2023-10-30 Thread Jim S
I highly recommend moving to py4web.  These days I dread working on web2py 
apps we haven't yet converted to py4web.  py4web is so much faster for 
execution and development.  Much more flexibility in form and grid 
layouts.  If there is something missing, let us know, we'd love to get more 
people switched over.

On Monday, October 30, 2023 at 10:48:47 AM UTC-5 Ramos wrote:

> I´m so comfortable with web2py, the admin dashboard and the scheduler are 
> blocking me from moving to py4web...
> Regards 
>
> Em seg., 30 de out. de 2023 às 04:48, Raul Monares  
> escreveu:
>
>> Great news. I appreatiate your work on both platforms
>>
>> On Sunday, October 29, 2023 at 3:13:31 PM UTC-6 Massimo Di Pierro wrote:
>>
>>> Changelog:
>>> - adds support of python up to version 3.11
>>> - fixes a bug with serialization of headers introduced in version 2.25.1
>>> - improves handling of unstable db connections in the scheduler
>>>
>>> I remind you that py4web has been out for 5 years now as successor of 
>>> web2py.
>>> It has the same template language and dal as web2py but it is a lot 
>>> faster.
>>> It has a better grid, form handling, and auth integrations.
>>>
>>> Massimo
>>>
>>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web2py+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/22e4071c-f4e6-4b67-b63b-087db6fd2645n%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/0a1d1bfc-0520-4d6b-943e-ca87ff344133n%40googlegroups.com.


Re: [web2py] Re: web2py 2.26.1 released

2023-10-30 Thread Christian Varas
In my opinion Web2py is really comfortable but I strongly recommend to move
to py4web.
The scheduler in web2py is replaced with celery which is more powerful and
py4web framework is really fast, light and is easy to code like in web2py.
I’ve moved all my apps from web2py to py4web and I can’t complain of the
results.
I totally recommend to move from web2py to py4web.

Greetings.
Chris

El El lun, 30 oct 2023 a la(s) 12:48, António Ramos 
escribió:

> I´m so comfortable with web2py, the admin dashboard and the scheduler are
> blocking me from moving to py4web...
> Regards
>
> Em seg., 30 de out. de 2023 às 04:48, Raul Monares 
> escreveu:
>
>> Great news. I appreatiate your work on both platforms
>>
>> On Sunday, October 29, 2023 at 3:13:31 PM UTC-6 Massimo Di Pierro wrote:
>>
>>> Changelog:
>>> - adds support of python up to version 3.11
>>> - fixes a bug with serialization of headers introduced in version 2.25.1
>>> - improves handling of unstable db connections in the scheduler
>>>
>>> I remind you that py4web has been out for 5 years now as successor of
>>> web2py.
>>> It has the same template language and dal as web2py but it is a lot
>>> faster.
>>> It has a better grid, form handling, and auth integrations.
>>>
>>> Massimo
>>>
>>
>>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to web2py+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/web2py/22e4071c-f4e6-4b67-b63b-087db6fd2645n%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/CAEM0BxO5q87Ec9AxmPkpjUxpMdA0xcDk0xAjnzdXCMVLgFb5vQ%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/CA%2Bs%2BuJsg8T5-4QuP1wbwS4U9h6KKL8vTDm22zxJaXMSn5tCzeA%40mail.gmail.com.


Re: [web2py] Re: web2py 2.26.1 released

2023-10-30 Thread António Ramos
I´m so comfortable with web2py, the admin dashboard and the scheduler are
blocking me from moving to py4web...
Regards

Em seg., 30 de out. de 2023 às 04:48, Raul Monares 
escreveu:

> Great news. I appreatiate your work on both platforms
>
> On Sunday, October 29, 2023 at 3:13:31 PM UTC-6 Massimo Di Pierro wrote:
>
>> Changelog:
>> - adds support of python up to version 3.11
>> - fixes a bug with serialization of headers introduced in version 2.25.1
>> - improves handling of unstable db connections in the scheduler
>>
>> I remind you that py4web has been out for 5 years now as successor of
>> web2py.
>> It has the same template language and dal as web2py but it is a lot
>> faster.
>> It has a better grid, form handling, and auth integrations.
>>
>> Massimo
>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/22e4071c-f4e6-4b67-b63b-087db6fd2645n%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/CAEM0BxO5q87Ec9AxmPkpjUxpMdA0xcDk0xAjnzdXCMVLgFb5vQ%40mail.gmail.com.


[web2py] Re: web2py 2.26.1 released

2023-10-29 Thread Raul Monares
Great news. I appreatiate your work on both platforms

On Sunday, October 29, 2023 at 3:13:31 PM UTC-6 Massimo Di Pierro wrote:

> Changelog:
> - adds support of python up to version 3.11
> - fixes a bug with serialization of headers introduced in version 2.25.1
> - improves handling of unstable db connections in the scheduler
>
> I remind you that py4web has been out for 5 years now as successor of 
> web2py.
> It has the same template language and dal as web2py but it is a lot faster.
> It has a better grid, form handling, and auth integrations.
>
> Massimo
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/22e4071c-f4e6-4b67-b63b-087db6fd2645n%40googlegroups.com.


[web2py] Re: web2py 2.25.1 - bug when running interactive shell?

2023-10-29 Thread Massimo Di Pierro
It should be abspath and should be fixed in master. I plan to release a new 
version today.

On Friday, 27 October 2023 at 01:28:59 UTC-7 Tom Clerckx wrote:

> I believe web2py/gluon/shell.py", line 238 should use os.path.*abspath* 
> instead of *absdir*?
>
> Unpacked and ran a clean version of web2py:
>
> command: python web2py.py -B -S welcome -M
>
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2023
> Version 2.25.1-stable+timestamp.2023.10.08.18.44.43
> Database drivers available: sqlite3, imaplib, pymysql, pyodbc
> Traceback (most recent call last):
>   File "/odindrive/temp/web2pytest/web2py/web2py.py", line 58, in 
> gluon.widget.start()
>   File "/odindrive/temp/web2pytest/web2py/gluon/widget.py", line 746, in 
> start
> run(options.shell, plain=options.plain, bpython=options.bpython,
>   File "/odindrive/temp/web2pytest/web2py/gluon/shell.py", line 238, in run
> adir = os.path.absdir(os.path.join('applications', a))
> AttributeError: module 'posixpath' has no attribute 'absdir'. Did you 
> mean: 'isdir'?
>

-- 
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/ce3db034-2211-4803-b4a0-7cfb2a7en%40googlegroups.com.


[web2py] Re: Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-29 Thread Massimo Di Pierro
This is a know issue with has been fixed in master. I will release a new 
version later today.

On Sunday, 22 October 2023 at 02:07:32 UTC-7 vald...@gmail.com wrote:

> Whenever I reload, It seems to create a new thread showing this in the CLI.
>
> For example, when I attempt to run the app, the error, shown below, starts 
> with: " ERROR:Rocket.Errors.Thread-2:Traceback (most recent call last):"
> The next time it runs showing " ERROR:Rocket.Errors.Thread-4:Traceback 
> (most recent call last):"
> Then " ERROR:Rocket.Errors.Thread-6:Traceback (most recent call last):"
>
> And so on. 
>
> Here is a dump from the CLI. Everything below the traceback line remains 
> the same:
>
> Starting server...
> web2py Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2023
> Version 2.25.1-stable+timestamp.2023.10.08.18.44.43
> Database drivers available: sqlite3, imaplib, pymysql
>
> please visit:
> http://127.0.0.1:8005/
> use "kill -SIGTERM 161098" to shutdown the web2py server
>
>
> ERROR:Rocket.Errors.Thread-2:Traceback (most recent call last):
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/rocket.py", line 1294, 
> in run
> self.run_app(conn)
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/rocket.py", line 1796, 
> in run_app
> output = self.app(environ, self.start_response)
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/main.py", line 648, in 
> app_with_logging
> ret[0] = wsgiapp(environ, responder2)
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/main.py", line 562, in 
> wsgibase
> return http_response.to(responder, env=env)
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/http.py", line 129, in 
> to
> responder(status, rheaders)
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/main.py", line 643, in 
> responder2
> return responder(s, h)
>
>   File "/home/support/cts-new/cts_py3/web2py/gluon/rocket.py", line 1759, 
> in start_response
> self.header_set = Headers(response_headers)
>
>   File "/usr/lib/python3.10/wsgiref/headers.py", line 39, in __init__
> self._convert_string_type(v)
>
>   File "/usr/lib/python3.10/wsgiref/headers.py", line 45, in 
> _convert_string_type
> raise AssertionError("Header names/values must be"
>
> AssertionError: Header names/values must be of type str (got 50)
>
> On Sunday, October 22, 2023 at 3:53:47 AM UTC-5 vald...@gmail.com wrote:
>
>> It's as if any attempt to read tables based on the db object causes this 
>> error.
>>
>> I was getting this error where IS_IN_DB that references other tables as 
>> base tables. I've moved all those references from the models completely and 
>> now I'm getting the error when I attempt to log in to the app.
>>
>> Very strange
>>
>> On Saturday, October 21, 2023 at 4:45:09 PM UTC-5 vald...@gmail.com 
>> wrote:
>>
>>> Hi Guys,
>>>
>>> I recently upgraded an app I wrote with web2py about 4 years ago to work 
>>> with Python 3.
>>> I got a lot of this   'CommonDialect' object 
>>> has no attribute 'eq' error until I removed the requires=IS_IN_DB() 
>>> references to other tables and put the majority of the references into a 
>>> separate model file named so it would load last. It now works on my local 
>>> machine.
>>> I've since moved the code to the production server and it worked at 
>>> first and then the same error started again, this time with it having a 
>>> problem with the model file that was set to load last. I have tried 
>>> deleting the web2py installation downloaded a fresh copy to no avail.
>>>
>>> Please help.
>>>
>>>
>>>

-- 
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/13a164e9-cbef-4a0d-af56-abe88e413a95n%40googlegroups.com.


[web2py] Re: Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-22 Thread vald...@gmail.com
Whenever I reload, It seems to create a new thread showing this in the CLI.

For example, when I attempt to run the app, the error, shown below, starts 
with: " ERROR:Rocket.Errors.Thread-2:Traceback (most recent call last):"
The next time it runs showing " ERROR:Rocket.Errors.Thread-4:Traceback 
(most recent call last):"
Then " ERROR:Rocket.Errors.Thread-6:Traceback (most recent call last):"

And so on. 

Here is a dump from the CLI. Everything below the traceback line remains 
the same:

Starting server...
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2023
Version 2.25.1-stable+timestamp.2023.10.08.18.44.43
Database drivers available: sqlite3, imaplib, pymysql

please visit:
http://127.0.0.1:8005/
use "kill -SIGTERM 161098" to shutdown the web2py server


ERROR:Rocket.Errors.Thread-2:Traceback (most recent call last):

  File "/home/support/cts-new/cts_py3/web2py/gluon/rocket.py", line 1294, 
in run
self.run_app(conn)

  File "/home/support/cts-new/cts_py3/web2py/gluon/rocket.py", line 1796, 
in run_app
output = self.app(environ, self.start_response)

  File "/home/support/cts-new/cts_py3/web2py/gluon/main.py", line 648, in 
app_with_logging
ret[0] = wsgiapp(environ, responder2)

  File "/home/support/cts-new/cts_py3/web2py/gluon/main.py", line 562, in 
wsgibase
return http_response.to(responder, env=env)

  File "/home/support/cts-new/cts_py3/web2py/gluon/http.py", line 129, in to
responder(status, rheaders)

  File "/home/support/cts-new/cts_py3/web2py/gluon/main.py", line 643, in 
responder2
return responder(s, h)

  File "/home/support/cts-new/cts_py3/web2py/gluon/rocket.py", line 1759, 
in start_response
self.header_set = Headers(response_headers)

  File "/usr/lib/python3.10/wsgiref/headers.py", line 39, in __init__
self._convert_string_type(v)

  File "/usr/lib/python3.10/wsgiref/headers.py", line 45, in 
_convert_string_type
raise AssertionError("Header names/values must be"

AssertionError: Header names/values must be of type str (got 50)

On Sunday, October 22, 2023 at 3:53:47 AM UTC-5 vald...@gmail.com wrote:

> It's as if any attempt to read tables based on the db object causes this 
> error.
>
> I was getting this error where IS_IN_DB that references other tables as 
> base tables. I've moved all those references from the models completely and 
> now I'm getting the error when I attempt to log in to the app.
>
> Very strange
>
> On Saturday, October 21, 2023 at 4:45:09 PM UTC-5 vald...@gmail.com wrote:
>
>> Hi Guys,
>>
>> I recently upgraded an app I wrote with web2py about 4 years ago to work 
>> with Python 3.
>> I got a lot of this   'CommonDialect' object has 
>> no attribute 'eq' error until I removed the requires=IS_IN_DB() 
>> references to other tables and put the majority of the references into a 
>> separate model file named so it would load last. It now works on my local 
>> machine.
>> I've since moved the code to the production server and it worked at first 
>> and then the same error started again, this time with it having a 
>> problem with the model file that was set to load last. I have tried 
>> deleting the web2py installation downloaded a fresh copy to no avail.
>>
>> Please help.
>>
>>
>>

-- 
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/a13ad483-8da5-49f1-9d38-9199fcfec730n%40googlegroups.com.


[web2py] Re: Web2py move to a new server resulted in this 'CommonDialect' object has no attribute 'eq'

2023-10-22 Thread vald...@gmail.com
It's as if any attempt to read tables based on the db object causes this 
error.

I was getting this error where IS_IN_DB that references other tables as 
base tables. I've moved all those references from the models completely and 
now I'm getting the error when I attempt to log in to the app.

Very strange

On Saturday, October 21, 2023 at 4:45:09 PM UTC-5 vald...@gmail.com wrote:

> Hi Guys,
>
> I recently upgraded an app I wrote with web2py about 4 years ago to work 
> with Python 3.
> I got a lot of this   'CommonDialect' object has 
> no attribute 'eq' error until I removed the requires=IS_IN_DB() 
> references to other tables and put the majority of the references into a 
> separate model file named so it would load last. It now works on my local 
> machine.
> I've since moved the code to the production server and it worked at first 
> and then the same error started again, this time with it having a problem 
> with the model file that was set to load last. I have tried deleting the 
> web2py installation downloaded a fresh copy to no avail.
>
> Please help.
>
>
>

-- 
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/a904baa0-d8a6-4100-9d3c-ddeed250b84bn%40googlegroups.com.


[web2py] Re: web2py 2.25.1

2023-10-18 Thread CarlosDB
Hello.
I believe this error is related to a thread I opened a few days ago:

" File Download Broken after Pull Request #2471 "
https://groups.google.com/g/web2py/c/ruhme28jvNo

Carlos.

El miércoles, 18 de octubre de 2023 a las 18:49:34 UTC+2, 
xgp.l...@gmail.com escribió:

> Hi,
>
> Modified the code to this:
>
>   for k, v in iteritems(headers):
> if isinstance(v, list):
> rheaders += [(k, str(item)) for item in v]
> else:
> rheaders.append((k, str(v)))
>
> This was the code from version 2.24.1
>
> Dont know if this is correct.
>
>
> Cheers,
>
> El miércoles, 18 de octubre de 2023 a las 11:37:30 UTC-5, 
> xgp.l...@gmail.com escribió:
>
>> Hi Massimo,
>>
>> Getting this redirecting from nginx to uwsgi_pass http port.
>>
>> Traceback (most recent call last):
>>   File "/home/www-data/web2py/gluon/main.py", line 562, in wsgibase
>> return http_response.to(responder, env=env)
>>   File "/home/www-data/web2py/gluon/http.py", line 129, in to
>> responder(status, rheaders)
>> TypeError: http header value must be a string
>>
>>
>> Regards,
>>
>>
>> El lunes, 9 de octubre de 2023 a las 3:38:11 UTC-5, CarlosDB escribió:
>>
>>> A fantastic job.
>>> Thank you very much.
>>>
>>> Carlos.
>>>
>>> El domingo, 8 de octubre de 2023 a las 20:59:27 UTC+2, Massimo Di Pierro 
>>> escribió:
>>>
 Hello everybody,

 A new version of web2py, 2.25.1, is out. 

 It contains some bug fixes, #2468 #2468 #2236, http headers 
 sanitization, and fixes this vulenarbility 
 https://jvn.jp/en/jp/JVN80476432/ (to be published soon).

 The vulnerabily does not affect most users. It is only in the optional 
 MessageBoxHandler for logging when using Tkinter. I do know think anybody 
 is was using it.

 I am reviewing some old PRs and I may have another version out today 
 including those fixes as well. Sorry I have been slow but as you know, I 
 am 
 spending more time on py4web than web2py these days. 

 Massimo




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3a723138-4123-48c6-bd17-3496e897f9fcn%40googlegroups.com.


[web2py] Re: web2py 2.25.1

2023-10-18 Thread xgp.l...@gmail.com
Hi,

Modified the code to this:

  for k, v in iteritems(headers):
if isinstance(v, list):
rheaders += [(k, str(item)) for item in v]
else:
rheaders.append((k, str(v)))

This was the code from version 2.24.1

Dont know if this is correct.


Cheers,

El miércoles, 18 de octubre de 2023 a las 11:37:30 UTC-5, 
xgp.l...@gmail.com escribió:

> Hi Massimo,
>
> Getting this redirecting from nginx to uwsgi_pass http port.
>
> Traceback (most recent call last):
>   File "/home/www-data/web2py/gluon/main.py", line 562, in wsgibase
> return http_response.to(responder, env=env)
>   File "/home/www-data/web2py/gluon/http.py", line 129, in to
> responder(status, rheaders)
> TypeError: http header value must be a string
>
>
> Regards,
>
>
> El lunes, 9 de octubre de 2023 a las 3:38:11 UTC-5, CarlosDB escribió:
>
>> A fantastic job.
>> Thank you very much.
>>
>> Carlos.
>>
>> El domingo, 8 de octubre de 2023 a las 20:59:27 UTC+2, Massimo Di Pierro 
>> escribió:
>>
>>> Hello everybody,
>>>
>>> A new version of web2py, 2.25.1, is out. 
>>>
>>> It contains some bug fixes, #2468 #2468 #2236, http headers 
>>> sanitization, and fixes this vulenarbility 
>>> https://jvn.jp/en/jp/JVN80476432/ (to be published soon).
>>>
>>> The vulnerabily does not affect most users. It is only in the optional 
>>> MessageBoxHandler for logging when using Tkinter. I do know think anybody 
>>> is was using it.
>>>
>>> I am reviewing some old PRs and I may have another version out today 
>>> including those fixes as well. Sorry I have been slow but as you know, I am 
>>> spending more time on py4web than web2py these days. 
>>>
>>> Massimo
>>>
>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2499d89f-f635-4e82-915c-15acbee3550bn%40googlegroups.com.


[web2py] Re: web2py 2.25.1

2023-10-18 Thread xgp.l...@gmail.com
Hi Massimo,

Getting this redirecting from nginx to uwsgi_pass http port.

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/main.py", line 562, in wsgibase
return http_response.to(responder, env=env)
  File "/home/www-data/web2py/gluon/http.py", line 129, in to
responder(status, rheaders)
TypeError: http header value must be a string


Regards,


El lunes, 9 de octubre de 2023 a las 3:38:11 UTC-5, CarlosDB escribió:

> A fantastic job.
> Thank you very much.
>
> Carlos.
>
> El domingo, 8 de octubre de 2023 a las 20:59:27 UTC+2, Massimo Di Pierro 
> escribió:
>
>> Hello everybody,
>>
>> A new version of web2py, 2.25.1, is out. 
>>
>> It contains some bug fixes, #2468 #2468 #2236, http headers sanitization, 
>> and fixes this vulenarbility https://jvn.jp/en/jp/JVN80476432/ (to be 
>> published soon).
>>
>> The vulnerabily does not affect most users. It is only in the optional 
>> MessageBoxHandler for logging when using Tkinter. I do know think anybody 
>> is was using it.
>>
>> I am reviewing some old PRs and I may have another version out today 
>> including those fixes as well. Sorry I have been slow but as you know, I am 
>> spending more time on py4web than web2py these days. 
>>
>> Massimo
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/18c9bc90-183c-40a3-9640-6b9955e04463n%40googlegroups.com.


[web2py] Re: web2py 2.25.1

2023-10-09 Thread CarlosDB
A fantastic job.
Thank you very much.

Carlos.

El domingo, 8 de octubre de 2023 a las 20:59:27 UTC+2, Massimo Di Pierro 
escribió:

> Hello everybody,
>
> A new version of web2py, 2.25.1, is out. 
>
> It contains some bug fixes, #2468 #2468 #2236, http headers sanitization, 
> and fixes this vulenarbility https://jvn.jp/en/jp/JVN80476432/ (to be 
> published soon).
>
> The vulnerabily does not affect most users. It is only in the optional 
> MessageBoxHandler for logging when using Tkinter. I do know think anybody 
> is was using it.
>
> I am reviewing some old PRs and I may have another version out today 
> including those fixes as well. Sorry I have been slow but as you know, I am 
> spending more time on py4web than web2py these days. 
>
> Massimo
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/8d3e4e0a-9126-429e-9627-31c91df439b7n%40googlegroups.com.


[web2py] Re: Web2py dal significantly slower than raw query

2023-10-04 Thread Niphlod
Think an int, that needs to be "casted" to an int for 50k times. You can't 
expect an abstraction layer to be as fast as raw sql. DAL doesn't just 
write queries for you, it adapts the resultset to the model. 50k rows in 
less than 2 seconds is not that bad.

On Tuesday, October 3, 2023 at 8:29:12 AM UTC+2 urban@gmail.com wrote:

>
> 12 columns, 50k rows (17k rows in the query result)
> cacheable=True is about 0.3s faster. 
>
> The costliness of building the whole model comes (mostly) from reference 
> types?
> On Monday, October 2, 2023 at 11:22:53 PM UTC+2 Niphlod wrote:
>
>> how many rows and how many columns ? the raw one is returning whatever 
>> type the underlying database structure has as it is, the pydal one is 
>> building the whole model (including references)
>> did you try with cacheable=True in the pydal one ? it won't build  
>> update_records and delete_records, for starters. 
>>
>> On Monday, October 2, 2023 at 8:04:04 PM UTC+2 Jim S wrote:
>>
>>> The only thing I can see is that the SQL needs to be 'built' by pydal, 
>>> but I find it hard to believe it takes a whole second.  Massimo might have 
>>> to add context here.
>>>
>>> -Jim
>>>
>>> On Monday, October 2, 2023 at 1:00:19 PM UTC-5 urban@gmail.com 
>>> wrote:
>>>
 Sorry my bad! I mixed up the timings when editing the post.

 The slower timing is for the dal version.
 Moreover the dal version is slower even if I remove the .as_list() call.
 I had originally tried that. 
 When I get the time I'll try "debugging" it by looking at the dal.py 
 source.
 Asking here if anyone knows an obvious reason for this that I am 
 missing.
 On Monday, October 2, 2023 at 5:53:47 PM UTC+2 Jim S wrote:

> It's possible I'm reading this wrong (it is Monday morning), but .09s 
> (DAL) is faster than 1.8s (raw SQL).  
>
> Is that a typo?  Or, is it my Monday-morning-brain?
>
> If your raw query is slower, could it be because you're converting to 
> a dict instead of a list as in your dal query?
>
> -Jim
>
> On Monday, October 2, 2023 at 3:07:26 AM UTC-5 urban@gmail.com 
> wrote:
>
>>   ids =  tuple(m['id'] for m in relevant_models)
>>   raw_q = db.executesql("""
>>   SELECT 
>>   *
>>   FROM "table" 
>>   WHERE ("table".ref_id" IN {});
>> """.format(str(ids)), as_dict=True)
>>  1.8s
>>
>>   ids =  tuple(m['id'] for m in relevant_models)
>>   dal_q = db(
>>   db.table.ref_id.belongs(ids)
>>   ).select(db.table.ALL).as_list()
>> # 0.09s
>> *Web2Py 2.22.3*
>>
>> Why would the dal query be so much slower than the raw sql? The 
>> generated sql (db._lastsql) is the same as the raw. 
>>
>>

-- 
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/2b768764-1060-48d0-844e-c302bff66130n%40googlegroups.com.


[web2py] Re: Web2py dal significantly slower than raw query

2023-10-03 Thread urban....@gmail.com

12 columns, 50k rows (17k rows in the query result)
cacheable=True is about 0.3s faster. 

The costliness of building the whole model comes (mostly) from reference 
types?
On Monday, October 2, 2023 at 11:22:53 PM UTC+2 Niphlod wrote:

> how many rows and how many columns ? the raw one is returning whatever 
> type the underlying database structure has as it is, the pydal one is 
> building the whole model (including references)
> did you try with cacheable=True in the pydal one ? it won't build  
> update_records and delete_records, for starters. 
>
> On Monday, October 2, 2023 at 8:04:04 PM UTC+2 Jim S wrote:
>
>> The only thing I can see is that the SQL needs to be 'built' by pydal, 
>> but I find it hard to believe it takes a whole second.  Massimo might have 
>> to add context here.
>>
>> -Jim
>>
>> On Monday, October 2, 2023 at 1:00:19 PM UTC-5 urban@gmail.com wrote:
>>
>>> Sorry my bad! I mixed up the timings when editing the post.
>>>
>>> The slower timing is for the dal version.
>>> Moreover the dal version is slower even if I remove the .as_list() call.
>>> I had originally tried that. 
>>> When I get the time I'll try "debugging" it by looking at the dal.py 
>>> source.
>>> Asking here if anyone knows an obvious reason for this that I am missing.
>>> On Monday, October 2, 2023 at 5:53:47 PM UTC+2 Jim S wrote:
>>>
 It's possible I'm reading this wrong (it is Monday morning), but .09s 
 (DAL) is faster than 1.8s (raw SQL).  

 Is that a typo?  Or, is it my Monday-morning-brain?

 If your raw query is slower, could it be because you're converting to a 
 dict instead of a list as in your dal query?

 -Jim

 On Monday, October 2, 2023 at 3:07:26 AM UTC-5 urban@gmail.com 
 wrote:

>   ids =  tuple(m['id'] for m in relevant_models)
>   raw_q = db.executesql("""
>   SELECT 
>   *
>   FROM "table" 
>   WHERE ("table".ref_id" IN {});
> """.format(str(ids)), as_dict=True)
>  1.8s
>
>   ids =  tuple(m['id'] for m in relevant_models)
>   dal_q = db(
>   db.table.ref_id.belongs(ids)
>   ).select(db.table.ALL).as_list()
> # 0.09s
> *Web2Py 2.22.3*
>
> Why would the dal query be so much slower than the raw sql? The 
> generated sql (db._lastsql) is the same as the raw. 
>
>

-- 
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/cb9040d8-968c-4900-b655-8c20625dc870n%40googlegroups.com.


[web2py] Re: Web2py dal significantly slower than raw query

2023-10-02 Thread Niphlod
how many rows and how many columns ? the raw one is returning whatever type 
the underlying database structure has as it is, the pydal one is building 
the whole model (including references)
did you try with cacheable=True in the pydal one ? it won't build  
update_records and delete_records, for starters. 

On Monday, October 2, 2023 at 8:04:04 PM UTC+2 Jim S wrote:

> The only thing I can see is that the SQL needs to be 'built' by pydal, but 
> I find it hard to believe it takes a whole second.  Massimo might have to 
> add context here.
>
> -Jim
>
> On Monday, October 2, 2023 at 1:00:19 PM UTC-5 urban@gmail.com wrote:
>
>> Sorry my bad! I mixed up the timings when editing the post.
>>
>> The slower timing is for the dal version.
>> Moreover the dal version is slower even if I remove the .as_list() call.
>> I had originally tried that. 
>> When I get the time I'll try "debugging" it by looking at the dal.py 
>> source.
>> Asking here if anyone knows an obvious reason for this that I am missing.
>> On Monday, October 2, 2023 at 5:53:47 PM UTC+2 Jim S wrote:
>>
>>> It's possible I'm reading this wrong (it is Monday morning), but .09s 
>>> (DAL) is faster than 1.8s (raw SQL).  
>>>
>>> Is that a typo?  Or, is it my Monday-morning-brain?
>>>
>>> If your raw query is slower, could it be because you're converting to a 
>>> dict instead of a list as in your dal query?
>>>
>>> -Jim
>>>
>>> On Monday, October 2, 2023 at 3:07:26 AM UTC-5 urban@gmail.com 
>>> wrote:
>>>
   ids =  tuple(m['id'] for m in relevant_models)
   raw_q = db.executesql("""
   SELECT 
   *
   FROM "table" 
   WHERE ("table".ref_id" IN {});
 """.format(str(ids)), as_dict=True)
  1.8s

   ids =  tuple(m['id'] for m in relevant_models)
   dal_q = db(
   db.table.ref_id.belongs(ids)
   ).select(db.table.ALL).as_list()
 # 0.09s
 *Web2Py 2.22.3*

 Why would the dal query be so much slower than the raw sql? The 
 generated sql (db._lastsql) is the same as the raw. 



-- 
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/21b30c28-5378-416f-86de-3e686e8023dbn%40googlegroups.com.


[web2py] Re: Web2py dal significantly slower than raw query

2023-10-02 Thread Jim S
The only thing I can see is that the SQL needs to be 'built' by pydal, but 
I find it hard to believe it takes a whole second.  Massimo might have to 
add context here.

-Jim

On Monday, October 2, 2023 at 1:00:19 PM UTC-5 urban@gmail.com wrote:

> Sorry my bad! I mixed up the timings when editing the post.
>
> The slower timing is for the dal version.
> Moreover the dal version is slower even if I remove the .as_list() call.
> I had originally tried that. 
> When I get the time I'll try "debugging" it by looking at the dal.py 
> source.
> Asking here if anyone knows an obvious reason for this that I am missing.
> On Monday, October 2, 2023 at 5:53:47 PM UTC+2 Jim S wrote:
>
>> It's possible I'm reading this wrong (it is Monday morning), but .09s 
>> (DAL) is faster than 1.8s (raw SQL).  
>>
>> Is that a typo?  Or, is it my Monday-morning-brain?
>>
>> If your raw query is slower, could it be because you're converting to a 
>> dict instead of a list as in your dal query?
>>
>> -Jim
>>
>> On Monday, October 2, 2023 at 3:07:26 AM UTC-5 urban@gmail.com wrote:
>>
>>>   ids =  tuple(m['id'] for m in relevant_models)
>>>   raw_q = db.executesql("""
>>>   SELECT 
>>>   *
>>>   FROM "table" 
>>>   WHERE ("table".ref_id" IN {});
>>> """.format(str(ids)), as_dict=True)
>>>  1.8s
>>>
>>>   ids =  tuple(m['id'] for m in relevant_models)
>>>   dal_q = db(
>>>   db.table.ref_id.belongs(ids)
>>>   ).select(db.table.ALL).as_list()
>>> # 0.09s
>>> *Web2Py 2.22.3*
>>>
>>> Why would the dal query be so much slower than the raw sql? The 
>>> generated sql (db._lastsql) is the same as the raw. 
>>>
>>>

-- 
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/338e6176-abbc-4bc2-80fe-8a97d13b5637n%40googlegroups.com.


[web2py] Re: Web2py dal significantly slower than raw query

2023-10-02 Thread urban....@gmail.com
Sorry my bad! I mixed up the timings when editing the post.

The slower timing is for the dal version.
Moreover the dal version is slower even if I remove the .as_list() call.
I had originally tried that. 
When I get the time I'll try "debugging" it by looking at the dal.py source.
Asking here if anyone knows an obvious reason for this that I am missing.
On Monday, October 2, 2023 at 5:53:47 PM UTC+2 Jim S wrote:

> It's possible I'm reading this wrong (it is Monday morning), but .09s 
> (DAL) is faster than 1.8s (raw SQL).  
>
> Is that a typo?  Or, is it my Monday-morning-brain?
>
> If your raw query is slower, could it be because you're converting to a 
> dict instead of a list as in your dal query?
>
> -Jim
>
> On Monday, October 2, 2023 at 3:07:26 AM UTC-5 urban@gmail.com wrote:
>
>>   ids =  tuple(m['id'] for m in relevant_models)
>>   raw_q = db.executesql("""
>>   SELECT 
>>   *
>>   FROM "table" 
>>   WHERE ("table".ref_id" IN {});
>> """.format(str(ids)), as_dict=True)
>>  1.8s
>>
>>   ids =  tuple(m['id'] for m in relevant_models)
>>   dal_q = db(
>>   db.table.ref_id.belongs(ids)
>>   ).select(db.table.ALL).as_list()
>> # 0.09s
>> *Web2Py 2.22.3*
>>
>> Why would the dal query be so much slower than the raw sql? The generated 
>> sql (db._lastsql) is the same as the raw. 
>>
>>

-- 
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/cffb0608-3b6e-4eb1-9318-975eedb0779bn%40googlegroups.com.


[web2py] Re: Web2py dal significantly slower than raw query

2023-10-02 Thread Jim S
It's possible I'm reading this wrong (it is Monday morning), but .09s (DAL) 
is faster than 1.8s (raw SQL).  

Is that a typo?  Or, is it my Monday-morning-brain?

If your raw query is slower, could it be because you're converting to a 
dict instead of a list as in your dal query?

-Jim

On Monday, October 2, 2023 at 3:07:26 AM UTC-5 urban@gmail.com wrote:

>   ids =  tuple(m['id'] for m in relevant_models)
>   raw_q = db.executesql("""
>   SELECT 
>   *
>   FROM "table" 
>   WHERE ("table".ref_id" IN {});
> """.format(str(ids)), as_dict=True)
>  1.8s
>
>   ids =  tuple(m['id'] for m in relevant_models)
>   dal_q = db(
>   db.table.ref_id.belongs(ids)
>   ).select(db.table.ALL).as_list()
> # 0.09s
> *Web2Py 2.22.3*
>
> Why would the dal query be so much slower than the raw sql? The generated 
> sql (db._lastsql) is the same as the raw. 
>
>

-- 
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/da6b265e-7f57-42f0-bea2-aad39ea56851n%40googlegroups.com.


[web2py] Re: web2py 2.24.1 released

2023-05-07 Thread Peter
Thanks

četvrtak, 23. mart 2023. u 06:20:20 UTC+1 Massimo Di Pierro je napisao/la:

> Hello everybody,
>
> web2py 2.24.1 has been released.
>
> Thanks to Leonel, Cem, and Mark for bug fixes including:
> - handling corrupt disk cache
> - broken application packaging
> - compare function logic
>
>
>

-- 
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/fd5b9cc8-f61a-4d28-813a-fe9c9f474be6n%40googlegroups.com.


[web2py] Re: web2py 2.24.1 released

2023-04-02 Thread Raul Monares
Excelent news. Thanks !!

On Thursday, March 23, 2023 at 5:43:34 AM UTC-6 xgp.l...@gmail.com wrote:

> Thank you Massimo!
>
> El jueves, 23 de marzo de 2023 a las 0:20:20 UTC-5, Massimo Di Pierro 
> escribió:
>
>> Hello everybody,
>>
>> web2py 2.24.1 has been released.
>>
>> Thanks to Leonel, Cem, and Mark for bug fixes including:
>> - handling corrupt disk cache
>> - broken application packaging
>> - compare function logic
>>
>>
>>

-- 
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/da2cdaf3-1e7c-4841-a03f-495bdfeeb265n%40googlegroups.com.


[web2py] Re: web2py 2.24.1 released

2023-03-23 Thread xgp.l...@gmail.com
Thank you Massimo!

El jueves, 23 de marzo de 2023 a las 0:20:20 UTC-5, Massimo Di Pierro 
escribió:

> Hello everybody,
>
> web2py 2.24.1 has been released.
>
> Thanks to Leonel, Cem, and Mark for bug fixes including:
> - handling corrupt disk cache
> - broken application packaging
> - compare function logic
>
>
>

-- 
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/2bf213ed-a33e-403b-9f33-527d3a0da1afn%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-03-22 Thread Massimo Di Pierro
This has been fixed and 2.24.1 released. My apologies for overlooking the 
issue.

On Sunday, 26 February 2023 at 05:51:30 UTC-8 pcwa...@comcast.net wrote:

> I submitted an issue #2457  
> a month ago. Please leverage that one.
>
> On Monday, February 13, 2023 at 12:28:40 AM UTC-7 david@gmail.com 
> wrote:
>
>> Hi pcg,
>>
>> I also created a bug report for this one and got a message from Massimo 
>> that it would be fixed in a new release.  A work-around I used was to 
>> simply put the code below in the admin default.py into comment:
>> *#if not a_for_check.startswith(web2py_apps_root):*
>> *#raise HTTP(403) *
>> But I don't know what the final solution will be in the official fix.
>>
>> Kind Regards,
>> David
>>
>> On Sunday, February 12, 2023 at 10:21:20 PM UTC+1 pcg...@gmail.com wrote:
>>
>>> Have the same issue (python 3.10)  i've tried the latest web2py 2.23.1, 
>>> and it's th same.   I'm kind of lost on this one.
>>>
>>> Le lundi 9 janvier 2023 à 05:44:16 UTC-5, david@gmail.com a écrit :
>>>
 I am using python 3.9.15

 On Monday, January 9, 2023 at 11:00:22 AM UTC+1 Clemens wrote:

> Just a guess: What python version are you using? If you're still using 
> python 2, it could be the reason.
>
> On Monday, January 9, 2023 at 10:55:21 AM UTC+1 david@gmail.com 
> wrote:
>
>> Which is in turn caused by:
>>
>> *def app_pack*(app, request, raise_ex=False, filenames=None):
>> """Builds a w2p package for the application
>>
>> Args:
>> app(str): application name
>> request: the global request object
>> Returns:
>> filename of the w2p file or None on error
>>
>> """
>> try:
>> if filenames is None:
>> app_cleanup(app, request)
>> *filename = apath('../deposit/web2py.app.%s.w2p' % app, 
>> request)*
>> w2p_pack(filename, apath(app, request), filenames=filenames)
>> return filename
>> except Exception as e:
>> if raise_ex:
>> raise
>> return False
>>
>> On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:
>>
>>> I found where this is occurring (out of the box run, no mods):
>>>
>>>
>>> C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
>>> def safe_open(a, b):
>>> if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
>>> class tmp:
>>>
>>> def write(self, data):
>>> pass
>>>
>>> def close(self):
>>> pass
>>> return tmp()
>>>
>>> a_for_check = os.path.abspath(os.path.normpath(a))
>>> web2py_apps_root = os.path.abspath(up(request.folder))
>>>
>>> *if not a_for_check.startswith(web2py_apps_root):*
>>> *raise HTTP(403) *
>>>
>>> Because:
>>> *web2py_apps_root* = 
>>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
>>> *a_for_check *=  
>>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'
>>>
>>>
>>> On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:
>>>
 Good Morning,

 We are using IIS 10 with web2py 2.23.0.

 When I try to pack the welcome application (or any other), using 
 pack_all I get a 403 error.
 When I try to pack the welcome application (or any other), using 
 pack_custom, it first displays the file selector and when I click on 
 download as .w2p I get a 403 error.

 This seems to be related to the open_redirect changes.  I tried 
 putting the 403 error related code from the admin\default.py 
 controller in 
 comment, but it still is giving the error.  

 Kind Regards,
 David

>>>

-- 
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/21c3152c-0741-4f1e-8d68-60fd95d1c888n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-02-26 Thread pcwalden
I submitted an issue #2457  a 
month ago. Please leverage that one.

On Monday, February 13, 2023 at 12:28:40 AM UTC-7 david@gmail.com wrote:

> Hi pcg,
>
> I also created a bug report for this one and got a message from Massimo 
> that it would be fixed in a new release.  A work-around I used was to 
> simply put the code below in the admin default.py into comment:
> *#if not a_for_check.startswith(web2py_apps_root):*
> *#raise HTTP(403) *
> But I don't know what the final solution will be in the official fix.
>
> Kind Regards,
> David
>
> On Sunday, February 12, 2023 at 10:21:20 PM UTC+1 pcg...@gmail.com wrote:
>
>> Have the same issue (python 3.10)  i've tried the latest web2py 2.23.1, 
>> and it's th same.   I'm kind of lost on this one.
>>
>> Le lundi 9 janvier 2023 à 05:44:16 UTC-5, david@gmail.com a écrit :
>>
>>> I am using python 3.9.15
>>>
>>> On Monday, January 9, 2023 at 11:00:22 AM UTC+1 Clemens wrote:
>>>
 Just a guess: What python version are you using? If you're still using 
 python 2, it could be the reason.

 On Monday, January 9, 2023 at 10:55:21 AM UTC+1 david@gmail.com 
 wrote:

> Which is in turn caused by:
>
> *def app_pack*(app, request, raise_ex=False, filenames=None):
> """Builds a w2p package for the application
>
> Args:
> app(str): application name
> request: the global request object
> Returns:
> filename of the w2p file or None on error
>
> """
> try:
> if filenames is None:
> app_cleanup(app, request)
> *filename = apath('../deposit/web2py.app.%s.w2p' % app, 
> request)*
> w2p_pack(filename, apath(app, request), filenames=filenames)
> return filename
> except Exception as e:
> if raise_ex:
> raise
> return False
>
> On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:
>
>> I found where this is occurring (out of the box run, no mods):
>>
>>
>> C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
>> def safe_open(a, b):
>> if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
>> class tmp:
>>
>> def write(self, data):
>> pass
>>
>> def close(self):
>> pass
>> return tmp()
>>
>> a_for_check = os.path.abspath(os.path.normpath(a))
>> web2py_apps_root = os.path.abspath(up(request.folder))
>>
>> *if not a_for_check.startswith(web2py_apps_root):*
>> *raise HTTP(403) *
>>
>> Because:
>> *web2py_apps_root* = 
>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
>> *a_for_check *=  
>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'
>>
>>
>> On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:
>>
>>> Good Morning,
>>>
>>> We are using IIS 10 with web2py 2.23.0.
>>>
>>> When I try to pack the welcome application (or any other), using 
>>> pack_all I get a 403 error.
>>> When I try to pack the welcome application (or any other), using 
>>> pack_custom, it first displays the file selector and when I click on 
>>> download as .w2p I get a 403 error.
>>>
>>> This seems to be related to the open_redirect changes.  I tried 
>>> putting the 403 error related code from the admin\default.py controller 
>>> in 
>>> comment, but it still is giving the error.  
>>>
>>> Kind Regards,
>>> David
>>>
>>

-- 
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/787efb55-820c-469e-bdf5-33f49d606c04n%40googlegroups.com.


[web2py] Re: web2py with rocket server + nginx ?

2023-02-16 Thread Dave S
On Thursday, February 16, 2023 at 7:26:40 AM UTC-8 chriii...@gmail.com 
wrote:
Hello!

I'm wondering if it is a good idea to use web2py with rocket server in 
combination with nginx as a reverse proxy like in py4web. 
I need to run py4web and web2py on the same server and using nginx without 
uwsgi for web2py would be easier for me.


Cheers.
Chris.

Well, subject to the fine print, that should be okay, as I'm doing the 
similar thing with caddy (but not as a production server, so I haven't done 
any load testing).  In your testing,  I recommend trying large transfers 
(if your application ever would do that), and memory loads.

I do have a situation where I try to send (server to client) too large a 
file using chunks, and at some point the client sends a close before rocket 
expects it (still chunks to go).  I'm running this on windows, and Rocket 
pops up a window complaining that it tried to send a 500 response but the 
connection is invalid ... and after a few of these, Rocket runs out of 
handles and things go on hold until I dismiss the popups.

/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/852e00fa-d1af-4f3d-b5df-d852aa9bd831n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-02-12 Thread Davidiam
Hi pcg,

I also created a bug report for this one and got a message from Massimo 
that it would be fixed in a new release.  A work-around I used was to 
simply put the code below in the admin default.py into comment:
*#if not a_for_check.startswith(web2py_apps_root):*
*#raise HTTP(403) *
But I don't know what the final solution will be in the official fix.

Kind Regards,
David

On Sunday, February 12, 2023 at 10:21:20 PM UTC+1 pcg...@gmail.com wrote:

> Have the same issue (python 3.10)  i've tried the latest web2py 2.23.1, 
> and it's th same.   I'm kind of lost on this one.
>
> Le lundi 9 janvier 2023 à 05:44:16 UTC-5, david@gmail.com a écrit :
>
>> I am using python 3.9.15
>>
>> On Monday, January 9, 2023 at 11:00:22 AM UTC+1 Clemens wrote:
>>
>>> Just a guess: What python version are you using? If you're still using 
>>> python 2, it could be the reason.
>>>
>>> On Monday, January 9, 2023 at 10:55:21 AM UTC+1 david@gmail.com 
>>> wrote:
>>>
 Which is in turn caused by:

 *def app_pack*(app, request, raise_ex=False, filenames=None):
 """Builds a w2p package for the application

 Args:
 app(str): application name
 request: the global request object
 Returns:
 filename of the w2p file or None on error

 """
 try:
 if filenames is None:
 app_cleanup(app, request)
 *filename = apath('../deposit/web2py.app.%s.w2p' % app, 
 request)*
 w2p_pack(filename, apath(app, request), filenames=filenames)
 return filename
 except Exception as e:
 if raise_ex:
 raise
 return False

 On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:

> I found where this is occurring (out of the box run, no mods):
>
>
> C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
> def safe_open(a, b):
> if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
> class tmp:
>
> def write(self, data):
> pass
>
> def close(self):
> pass
> return tmp()
>
> a_for_check = os.path.abspath(os.path.normpath(a))
> web2py_apps_root = os.path.abspath(up(request.folder))
>
> *if not a_for_check.startswith(web2py_apps_root):*
> *raise HTTP(403) *
>
> Because:
> *web2py_apps_root* = 
> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
> *a_for_check *=  
> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'
>
>
> On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:
>
>> Good Morning,
>>
>> We are using IIS 10 with web2py 2.23.0.
>>
>> When I try to pack the welcome application (or any other), using 
>> pack_all I get a 403 error.
>> When I try to pack the welcome application (or any other), using 
>> pack_custom, it first displays the file selector and when I click on 
>> download as .w2p I get a 403 error.
>>
>> This seems to be related to the open_redirect changes.  I tried 
>> putting the 403 error related code from the admin\default.py controller 
>> in 
>> comment, but it still is giving the error.  
>>
>> Kind Regards,
>> David
>>
>

-- 
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/821a80ba-4903-49eb-97cb-d8bf5631c32an%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-02-12 Thread pcg...@gmail.com
Have the same issue (python 3.10)  i've tried the latest web2py 2.23.1, and 
it's th same.   I'm kind of lost on this one.

Le lundi 9 janvier 2023 à 05:44:16 UTC-5, david@gmail.com a écrit :

> I am using python 3.9.15
>
> On Monday, January 9, 2023 at 11:00:22 AM UTC+1 Clemens wrote:
>
>> Just a guess: What python version are you using? If you're still using 
>> python 2, it could be the reason.
>>
>> On Monday, January 9, 2023 at 10:55:21 AM UTC+1 david@gmail.com 
>> wrote:
>>
>>> Which is in turn caused by:
>>>
>>> *def app_pack*(app, request, raise_ex=False, filenames=None):
>>> """Builds a w2p package for the application
>>>
>>> Args:
>>> app(str): application name
>>> request: the global request object
>>> Returns:
>>> filename of the w2p file or None on error
>>>
>>> """
>>> try:
>>> if filenames is None:
>>> app_cleanup(app, request)
>>> *filename = apath('../deposit/web2py.app.%s.w2p' % app, request)*
>>> w2p_pack(filename, apath(app, request), filenames=filenames)
>>> return filename
>>> except Exception as e:
>>> if raise_ex:
>>> raise
>>> return False
>>>
>>> On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:
>>>
 I found where this is occurring (out of the box run, no mods):


 C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
 def safe_open(a, b):
 if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
 class tmp:

 def write(self, data):
 pass

 def close(self):
 pass
 return tmp()

 a_for_check = os.path.abspath(os.path.normpath(a))
 web2py_apps_root = os.path.abspath(up(request.folder))

 *if not a_for_check.startswith(web2py_apps_root):*
 *raise HTTP(403) *

 Because:
 *web2py_apps_root* = 
 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
 *a_for_check *=  
 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'


 On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:

> Good Morning,
>
> We are using IIS 10 with web2py 2.23.0.
>
> When I try to pack the welcome application (or any other), using 
> pack_all I get a 403 error.
> When I try to pack the welcome application (or any other), using 
> pack_custom, it first displays the file selector and when I click on 
> download as .w2p I get a 403 error.
>
> This seems to be related to the open_redirect changes.  I tried 
> putting the 403 error related code from the admin\default.py controller 
> in 
> comment, but it still is giving the error.  
>
> Kind Regards,
> David
>


-- 
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/d02563e9-92a3-4aaa-a879-81b00a98b410n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-01-09 Thread Davidiam
I am using python 3.9.15

On Monday, January 9, 2023 at 11:00:22 AM UTC+1 Clemens wrote:

> Just a guess: What python version are you using? If you're still using 
> python 2, it could be the reason.
>
> On Monday, January 9, 2023 at 10:55:21 AM UTC+1 david@gmail.com wrote:
>
>> Which is in turn caused by:
>>
>> *def app_pack*(app, request, raise_ex=False, filenames=None):
>> """Builds a w2p package for the application
>>
>> Args:
>> app(str): application name
>> request: the global request object
>> Returns:
>> filename of the w2p file or None on error
>>
>> """
>> try:
>> if filenames is None:
>> app_cleanup(app, request)
>> *filename = apath('../deposit/web2py.app.%s.w2p' % app, request)*
>> w2p_pack(filename, apath(app, request), filenames=filenames)
>> return filename
>> except Exception as e:
>> if raise_ex:
>> raise
>> return False
>>
>> On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:
>>
>>> I found where this is occurring (out of the box run, no mods):
>>>
>>>
>>> C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
>>> def safe_open(a, b):
>>> if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
>>> class tmp:
>>>
>>> def write(self, data):
>>> pass
>>>
>>> def close(self):
>>> pass
>>> return tmp()
>>>
>>> a_for_check = os.path.abspath(os.path.normpath(a))
>>> web2py_apps_root = os.path.abspath(up(request.folder))
>>>
>>> *if not a_for_check.startswith(web2py_apps_root):*
>>> *raise HTTP(403) *
>>>
>>> Because:
>>> *web2py_apps_root* = 
>>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
>>> *a_for_check *=  
>>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'
>>>
>>>
>>> On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:
>>>
 Good Morning,

 We are using IIS 10 with web2py 2.23.0.

 When I try to pack the welcome application (or any other), using 
 pack_all I get a 403 error.
 When I try to pack the welcome application (or any other), using 
 pack_custom, it first displays the file selector and when I click on 
 download as .w2p I get a 403 error.

 This seems to be related to the open_redirect changes.  I tried putting 
 the 403 error related code from the admin\default.py controller in 
 comment, 
 but it still is giving the error.  

 Kind Regards,
 David

>>>

-- 
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/0556e16d-3e6d-4879-b2e3-e4781006c4e9n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-01-09 Thread Clemens
Just a guess: What python version are you using? If you're still using 
python 2, it could be the reason.

On Monday, January 9, 2023 at 10:55:21 AM UTC+1 david@gmail.com wrote:

> Which is in turn caused by:
>
> *def app_pack*(app, request, raise_ex=False, filenames=None):
> """Builds a w2p package for the application
>
> Args:
> app(str): application name
> request: the global request object
> Returns:
> filename of the w2p file or None on error
>
> """
> try:
> if filenames is None:
> app_cleanup(app, request)
> *filename = apath('../deposit/web2py.app.%s.w2p' % app, request)*
> w2p_pack(filename, apath(app, request), filenames=filenames)
> return filename
> except Exception as e:
> if raise_ex:
> raise
> return False
>
> On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:
>
>> I found where this is occurring (out of the box run, no mods):
>>
>>
>> C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
>> def safe_open(a, b):
>> if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
>> class tmp:
>>
>> def write(self, data):
>> pass
>>
>> def close(self):
>> pass
>> return tmp()
>>
>> a_for_check = os.path.abspath(os.path.normpath(a))
>> web2py_apps_root = os.path.abspath(up(request.folder))
>>
>> *if not a_for_check.startswith(web2py_apps_root):*
>> *raise HTTP(403) *
>>
>> Because:
>> *web2py_apps_root* = 
>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
>> *a_for_check *=  
>> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'
>>
>>
>> On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:
>>
>>> Good Morning,
>>>
>>> We are using IIS 10 with web2py 2.23.0.
>>>
>>> When I try to pack the welcome application (or any other), using 
>>> pack_all I get a 403 error.
>>> When I try to pack the welcome application (or any other), using 
>>> pack_custom, it first displays the file selector and when I click on 
>>> download as .w2p I get a 403 error.
>>>
>>> This seems to be related to the open_redirect changes.  I tried putting 
>>> the 403 error related code from the admin\default.py controller in comment, 
>>> but it still is giving the error.  
>>>
>>> Kind Regards,
>>> David
>>>
>>

-- 
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/626e1767-5d2f-4c78-987b-1fa1befdb665n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-01-09 Thread Davidiam
Which is in turn caused by:

*def app_pack*(app, request, raise_ex=False, filenames=None):
"""Builds a w2p package for the application

Args:
app(str): application name
request: the global request object
Returns:
filename of the w2p file or None on error

"""
try:
if filenames is None:
app_cleanup(app, request)
*filename = apath('../deposit/web2py.app.%s.w2p' % app, request)*
w2p_pack(filename, apath(app, request), filenames=filenames)
return filename
except Exception as e:
if raise_ex:
raise
return False

On Monday, January 9, 2023 at 10:37:57 AM UTC+1 Davidiam wrote:

> I found where this is occurring (out of the box run, no mods):
>
>
> C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
> def safe_open(a, b):
> if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
> class tmp:
>
> def write(self, data):
> pass
>
> def close(self):
> pass
> return tmp()
>
> a_for_check = os.path.abspath(os.path.normpath(a))
> web2py_apps_root = os.path.abspath(up(request.folder))
>
> *if not a_for_check.startswith(web2py_apps_root):*
> *raise HTTP(403) *
>
> Because:
> *web2py_apps_root* = 
> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
> *a_for_check *=  
> 'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'
>
>
> On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:
>
>> Good Morning,
>>
>> We are using IIS 10 with web2py 2.23.0.
>>
>> When I try to pack the welcome application (or any other), using pack_all 
>> I get a 403 error.
>> When I try to pack the welcome application (or any other), using 
>> pack_custom, it first displays the file selector and when I click on 
>> download as .w2p I get a 403 error.
>>
>> This seems to be related to the open_redirect changes.  I tried putting 
>> the 403 error related code from the admin\default.py controller in comment, 
>> but it still is giving the error.  
>>
>> Kind Regards,
>> David
>>
>

-- 
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/6772c522-e442-4ff6-ac64-eda50f2ccce2n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-01-09 Thread Davidiam
I found where this is occurring (out of the box run, no mods):

C:\Users\u30591\web2py_2.23.0\web2py\applications\admin\controllers\default.py:
def safe_open(a, b):
if (DEMO_MODE or is_gae) and ('w' in b or 'a' in b):
class tmp:

def write(self, data):
pass

def close(self):
pass
return tmp()

a_for_check = os.path.abspath(os.path.normpath(a))
web2py_apps_root = os.path.abspath(up(request.folder))

*if not a_for_check.startswith(web2py_apps_root):*
*raise HTTP(403) *

Because:
*web2py_apps_root* = 
'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\applications'
*a_for_check *=  
'C:\\Users\\myuser\\web2py_2.23.0\\web2py\\deposit\\web2py.app.403_test.w2p'


On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:

> Good Morning,
>
> We are using IIS 10 with web2py 2.23.0.
>
> When I try to pack the welcome application (or any other), using pack_all 
> I get a 403 error.
> When I try to pack the welcome application (or any other), using 
> pack_custom, it first displays the file selector and when I click on 
> download as .w2p I get a 403 error.
>
> This seems to be related to the open_redirect changes.  I tried putting 
> the 403 error related code from the admin\default.py controller in comment, 
> but it still is giving the error.  
>
> Kind Regards,
> David
>

-- 
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/9234f487-62f0-4308-a2b1-b55a2774d729n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 is giving a 403 error when I try to package my applications

2023-01-09 Thread Davidiam
I just did a test on my own PC with web2py out of the box and I got a 403 
error when packing the application.  Now that I know that it has nothing to 
do with the webserver, I will try to debug the issue.
I will debug the issue to determine where in the code it is occurring.

On Thursday, January 5, 2023 at 9:54:07 AM UTC+1 Davidiam wrote:

> Good Morning,
>
> We are using IIS 10 with web2py 2.23.0.
>
> When I try to pack the welcome application (or any other), using pack_all 
> I get a 403 error.
> When I try to pack the welcome application (or any other), using 
> pack_custom, it first displays the file selector and when I click on 
> download as .w2p I get a 403 error.
>
> This seems to be related to the open_redirect changes.  I tried putting 
> the 403 error related code from the admin\default.py controller in comment, 
> but it still is giving the error.  
>
> Kind Regards,
> David
>

-- 
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/bfc9c2ff-9ef0-44d5-9343-b3634015c671n%40googlegroups.com.


[web2py] Re: web2py 2.23.0 released

2022-12-29 Thread Raul Monares
Great news. Thanks a lot !!

On Thursday, December 29, 2022 at 3:15:56 AM UTC-7 Stephan wrote:

> Thank you!!
>
> Massimo Di Pierro schrieb am Dienstag, 27. Dezember 2022 um 08:26:00 UTC+1:
>
>> Hello Everybody,
>>
>> My apologies for not being as engaged in this group as I used to be.
>>
>> web2py 2.23.0 was released.
>>
>> It includes:
>> - DKIM support to emails
>> - More configuration options for 2-factor authentication
>> - Fixed an open redirect vulnerability
>> - Some bugs fixes.
>>
>> Thanks everybody who contributed, especially Leonel.
>>
>> As you noticed the pace of changes in web2py is very slow. Once again I 
>> recommend that you take a look at py4web, also based on pydal and the same 
>> template language and helpers as web2py. Yet it is much faster and designed 
>> from scratch to work with python 3.
>>
>> Massimo
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/c7ea8756-2145-4620-8f61-ba2b5f5e9e8en%40googlegroups.com.


[web2py] Re: web2py 2.23.0 released

2022-12-29 Thread Stephan
Thank you!!

Massimo Di Pierro schrieb am Dienstag, 27. Dezember 2022 um 08:26:00 UTC+1:

> Hello Everybody,
>
> My apologies for not being as engaged in this group as I used to be.
>
> web2py 2.23.0 was released.
>
> It includes:
> - DKIM support to emails
> - More configuration options for 2-factor authentication
> - Fixed an open redirect vulnerability
> - Some bugs fixes.
>
> Thanks everybody who contributed, especially Leonel.
>
> As you noticed the pace of changes in web2py is very slow. Once again I 
> recommend that you take a look at py4web, also based on pydal and the same 
> template language and helpers as web2py. Yet it is much faster and designed 
> from scratch to work with python 3.
>
> Massimo
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/ea8dbba8-9935-4160-94a3-8bd86adcdd31n%40googlegroups.com.


[web2py] Re: Web2py deployment on a local so all computers in the network can acess it

2022-09-03 Thread Dave S


On Monday, August 29, 2022 at 3:13:02 AM UTC-7 silvia...@gmail.com wrote:

> I will run it on a virtual server I think
>

Sounds like a good choice.  Many virtual server providers make provisioning 
easy.

/dps
 

>
> snide...@gmail.com schrieb am Montag, 29. August 2022 um 15:14:58 UTC+7:
>
>> On Wednesday, August 24, 2022 at 7:59:43 PM UTC-7 silvia...@gmail.com 
>> wrote:
>>
>>> Thanks Tom I will try that
>>>
>>> Tom Clerckx schrieb am Mittwoch, 24. August 2022 um 16:53:30 UTC+7:
>>>
 Not sure what information you're looking for.
 There is no dependency on having an internet connection to deploy your 
 web2py service.

 With respect to deployment itself, you can follow the deployment 
 recipes in the web2py manual.

 Tom.


>> Yes, the approach for an intranet is basically the same as for the 
>> world-wide realm, but you don't advertise the server outside (you don't 
>> have to list it on a public DNS, and maybe don't have to register a 
>> domain).   The details vary mainly based on the host envirornment of the 
>> server.  If you have a complete choice, I recommend a linux host (or 
>> virtual host) and an nginx front-end.
>>
>> If you're constrained to using an existing environment., you may have 
>> less freedom to assemble the perfect setup.  What sort setup will the 
>> server be running on?
>>
>> /dps
>>
>>
>>
>> On Wednesday, August 24, 2022 at 11:49:13 AM UTC+2 silvia...@gmail.com 
 wrote:

> I would like to deploy web2py on a local server but I dont know what 
> to do exactly it will be the local server will not be connected to the 
> Internet so it will be more used as an intranet. Would be great if 
> someone 
> can help me out.



-- 
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/483da7be-074a-470b-b4e2-c949173142f3n%40googlegroups.com.


[web2py] Re: Web2py deployment on a local so all computers in the network can acess it

2022-08-29 Thread Silvian Cedru
I will run it on a virtual server I think

snide...@gmail.com schrieb am Montag, 29. August 2022 um 15:14:58 UTC+7:

> On Wednesday, August 24, 2022 at 7:59:43 PM UTC-7 silvia...@gmail.com 
> wrote:
>
>> Thanks Tom I will try that
>>
>> Tom Clerckx schrieb am Mittwoch, 24. August 2022 um 16:53:30 UTC+7:
>>
>>> Not sure what information you're looking for.
>>> There is no dependency on having an internet connection to deploy your 
>>> web2py service.
>>>
>>> With respect to deployment itself, you can follow the deployment recipes 
>>> in the web2py manual.
>>>
>>> Tom.
>>>
>>>
> Yes, the approach for an intranet is basically the same as for the 
> world-wide realm, but you don't advertise the server outside (you don't 
> have to list it on a public DNS, and maybe don't have to register a 
> domain).   The details vary mainly based on the host envirornment of the 
> server.  If you have a complete choice, I recommend a linux host (or 
> virtual host) and an nginx front-end.
>
> If you're constrained to using an existing environment., you may have less 
> freedom to assemble the perfect setup.  What sort setup will the server be 
> running on?
>
> /dps
>
>
>
> On Wednesday, August 24, 2022 at 11:49:13 AM UTC+2 silvia...@gmail.com 
>>> wrote:
>>>
 I would like to deploy web2py on a local server but I dont know what to 
 do exactly it will be the local server will not be connected to the 
 Internet so it will be more used as an intranet. Would be great if someone 
 can help me out.
>>>
>>>

-- 
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/496b7460-7e8d-4d89-8cfc-e5722a243e03n%40googlegroups.com.


[web2py] Re: Web2py deployment on a local so all computers in the network can acess it

2022-08-29 Thread Dave S

On Wednesday, August 24, 2022 at 7:59:43 PM UTC-7 silvia...@gmail.com wrote:

> Thanks Tom I will try that
>
> Tom Clerckx schrieb am Mittwoch, 24. August 2022 um 16:53:30 UTC+7:
>
>> Not sure what information you're looking for.
>> There is no dependency on having an internet connection to deploy your 
>> web2py service.
>>
>> With respect to deployment itself, you can follow the deployment recipes 
>> in the web2py manual.
>>
>> Tom.
>>
>>
Yes, the approach for an intranet is basically the same as for the 
world-wide realm, but you don't advertise the server outside (you don't 
have to list it on a public DNS, and maybe don't have to register a 
domain).   The details vary mainly based on the host envirornment of the 
server.  If you have a complete choice, I recommend a linux host (or 
virtual host) and an nginx front-end.

If you're constrained to using an existing environment., you may have less 
freedom to assemble the perfect setup.  What sort setup will the server be 
running on?

/dps



On Wednesday, August 24, 2022 at 11:49:13 AM UTC+2 silvia...@gmail.com 
>> wrote:
>>
>>> I would like to deploy web2py on a local server but I dont know what to 
>>> do exactly it will be the local server will not be connected to the 
>>> Internet so it will be more used as an intranet. Would be great if someone 
>>> can help me out.
>>
>>

-- 
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/d68e1ba4-e93a-4c82-b6ff-35b636a5852bn%40googlegroups.com.


[web2py] Re: Web2py deployment on a local so all computers in the network can acess it

2022-08-24 Thread Silvian Cedru
Thanks Tom I will try that

Tom Clerckx schrieb am Mittwoch, 24. August 2022 um 16:53:30 UTC+7:

> Not sure what information you're looking for.
> There is no dependency on having an internet connection to deploy your 
> web2py service.
>
> With respect to deployment itself, you can follow the deployment recipes 
> in the web2py manual.
>
> Tom.
>
> On Wednesday, August 24, 2022 at 11:49:13 AM UTC+2 silvia...@gmail.com 
> wrote:
>
>> I would like to deploy web2py on a local server but I dont know what to 
>> do exactly it will be the local server will not be connected to the 
>> Internet so it will be more used as an intranet. Would be great if someone 
>> can help me out.
>
>

-- 
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/10c8ac78-f306-4079-ade6-b5ca25a31663n%40googlegroups.com.


[web2py] Re: Web2py deployment on a local so all computers in the network can acess it

2022-08-24 Thread Tom Clerckx
Not sure what information you're looking for.
There is no dependency on having an internet connection to deploy your 
web2py service.

With respect to deployment itself, you can follow the deployment recipes in 
the web2py manual.

Tom.

On Wednesday, August 24, 2022 at 11:49:13 AM UTC+2 silvia...@gmail.com 
wrote:

> I would like to deploy web2py on a local server but I dont know what to do 
> exactly it will be the local server will not be connected to the Internet 
> so it will be more used as an intranet. Would be great if someone can help 
> me out.

-- 
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/b5c25d33-c7ea-48f2-817f-de9fdaac9255n%40googlegroups.com.


[web2py] Re: web2py: How to execute further code after ajax call

2022-08-13 Thread Anthony
FYI, already answered at https://stackoverflow.com/a/73338318/440323.

On Saturday, August 13, 2022 at 10:37:06 PM UTC-4 JPlata wrote:

> 
>
> I have two dropdown/select widgets on a form. I am trying to set the 
> options of the second select through an ajax call in jQuery, and then 
> execute further code. The ajax call is successful and correctly sets the 
> second select options, but it seems the code after the ajax call is not 
> executed at all. How to correct this?
>
> view:
>
>
> {{extend 'layout.html'}}` {{=title}} /This is the 
> library/edit_user.html template {{=grid}}  
> jQuery("#no_table_region_id").change(function(){ region_id = $(this).val(); 
> branch_id = jQuery('#no_table_branch_id').val(); ajax("{{=URL('library', 
> 'branches')}}" + '?region_id=' + region_id, [], 'no_table_branch_id'); 
> jQuery('#no_table_branch_id').val(branch_id); # this does not execute }); 
> jQuery(document).ready(function(){ // todo: solve the unsettable branch_id 
> jQuery("#no_table_region_id").change(); });  
>
> controller:
>
> def branches(): if request.vars.region_id: branches = 
> db(db.branch.region_id==request.vars.region_id).select(db.branch.ALL) 
> ops1 = [''] ops = ops1 + [f" 'id']}>{i['branch_name']}" for i in branches] else: ops = '' 
> return ops 
>
>
>

-- 
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/4b1863dc-4f9b-41d8-9d10-2c9e2c971662n%40googlegroups.com.


[web2py] Re: Web2py on MySQL 8.0

2022-03-28 Thread Fabio Ceccarani
Solved. The problem was PyMySQL for python 2.7 (used by my web2py).

With pip install PyMySQL it install for Python 3.8.

I installed PyMySQL for python 2.7 with:
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py 
python2 get-pip.py 
python2 -m pip install PyMySQL


Il giorno venerdì 25 marzo 2022 alle 23:13:20 UTC+1 Fabio Ceccarani ha 
scritto:

> Hi, 
> I updated Linux Mint to last versione and MySQL was updated from version 
> 5.7 to version 8.0.
> Now my application return this error:
>  (1043, u'Bad handshake')
>
> I tried several possible solutions, install and reinstall pymysql, etc, 
> etc... but nothing!
>
> I tried to install mysq 5.7 but now it's hard to go back!
>
> Someone encountered the same problem??!
>
> Thanks!
> Fabio
>

-- 
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/9c709522-aa3c-4543-b15b-ec29719b5513n%40googlegroups.com.


[web2py] Re: web2py cannot import csv return strings not byte

2021-10-13 Thread Clemens
Have a look here:
https://groups.google.com/g/web2py/c/HGTQlEVc2qw/m/toCPLKKwCAAJ

Best regards
Clemens


On Wednesday, January 6, 2021 at 12:09:14 AM UTC+1 lcham...@gmail.com wrote:

> *To Reproduce*
>
> Steps to reproduce the behavior:
>
>1. Create a new project(*New simple application*).
>2. Go to Models, and edit *db.py*
>Add this:
>
> db.define_table('contacts', Field('first_name'), Field('last_name'), 
> Field('company_name'), Field('address'), Field('city'), Field('county'), 
> Field('state_name'), Field('zip'), Field('phone1'), Field('phone2'), 
> Field('email', requires=IS_EMAIL()), Field('web') )
> code.txt 
>
>1. Download and unpack attached CSV file:
>us-500.zip  
>(Also you can download "us-500.csv" from 
>https://www.briandunning.com/sample-data/ they shall be same)
>2. Return to the administrative interface, select Manage/Edit onto the 
>project you create.
>3. Press the button "*database administration*" under the *Model* 
>label.
>4. Press "db.contacts".
>5. Under the label "*Import/Export*" press *Browse* button
>6. Select unpacked CSV
>7. Press *import* button.
>8. Get same table as it was before(unchanged), and some bubble about 
>the error(which one does not fin into buble).
>
>
> python 3.7
> windows 10
>
> Thank you for your help
>

-- 
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/5fe0f715-2234-4899-867d-c11f10d9c857n%40googlegroups.com.


[web2py] Re: Web2py Scheduler, db query is not executing.

2021-10-05 Thread Jim S
Have you tried adding a db.commit() to your delete_after_hours() function?

-Jim



On Tuesday, October 5, 2021 at 8:49:44 AM UTC-5 Andrew wrote:

> Hello, I am trying to run a database query using the web2py scheduler, but 
> for some reason I can't get the query to commit. I've tested the function 
> in a controller to see that it works, and I'm pretty sure the scheduler is 
> running correctly because I have a scheduler_worker with the status of 
> ACTIVE in my backend.
>
> this is my *scheduler.py* in *models*:
>
> from gluon.scheduler import Scheduler
> scheduler = Scheduler(db)
>
> def delete_after_hours():
> current_start = now
> start = current_start.replace(tzinfo=utc)
> rows = db(db.public_uploads.id > 0).select()
> for row in rows:
> end_time = row.end_time
> end = end_time.replace(tzinfo=utc)
> if start >= end:
> row.delete_record()
>
> scheduler.queue_task(delete_after_hours)
>
>
> Thanks in advance for any advice.
>
> *cheers
>

-- 
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/bcf6429d-18af-4870-bc2b-8928f12aadedn%40googlegroups.com.


[web2py] Re: Web2py site ssl expired

2021-10-03 Thread Massimo Di Pierro
Thanks for reminding me about this. I will renew it asap.

On Wednesday, 22 September 2021 at 00:06:06 UTC-7 snide...@gmail.com wrote:

> On Wednesday, September 15, 2021 at 2:39:19 AM UTC-7 dirman wrote:
>
>>
>> Well same from my end. SSL expired
>> On Saturday, September 11, 2021 at 2:04:38 PM UTC+1 rodrig...@gmail.com 
>> wrote:
>>
>>> Hello my friends, I don't know for report this.
>>> https://web2py.com/ when I access this url.
>>> This not show with http.
>>>
>>
> http probably doesn't check certificates.
>
> However, what Opera says I'm seeing with http*s* now is 
> NET::ERR_CERT_COMMON_NAME_INVALID
>
> /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/2d7e61d3-da80-426b-8142-3d7f82fba1dcn%40googlegroups.com.


[web2py] Re: Web2py site ssl expired

2021-09-22 Thread Dave S


On Wednesday, September 15, 2021 at 2:39:19 AM UTC-7 dirman wrote:

>
> Well same from my end. SSL expired
> On Saturday, September 11, 2021 at 2:04:38 PM UTC+1 rodrig...@gmail.com 
> wrote:
>
>> Hello my friends, I don't know for report this.
>> https://web2py.com/ when I access this url.
>> This not show with http.
>>
>
http probably doesn't check certificates.

However, what Opera says I'm seeing with http*s* now is 
NET::ERR_CERT_COMMON_NAME_INVALID

/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/d2f29fab-4945-4339-81a2-226f0e98affan%40googlegroups.com.


[web2py] Re: Web2py site ssl expired

2021-09-15 Thread dirman

Well same from my end. SSL expired
On Saturday, September 11, 2021 at 2:04:38 PM UTC+1 rodrig...@gmail.com 
wrote:

> Hello my friends, I don't know for report this.
> https://web2py.com/ when I access this url.
> This not show with http.
>

-- 
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/5f10222b-48e3-41ab-9f85-aa66694e4a00n%40googlegroups.com.


[web2py] Re: web2py app on startup trying to create a duplicate table auth_user

2021-04-17 Thread james c.
And the solution is to add fake_migrate=True into the DAL statement and the 
auth.define_tables statement.

On Saturday, April 17, 2021 at 6:35:05 PM UTC-7 james c. wrote:

> db = DAL(myconf.get('db.uri'),
> auto_import = True,
> ignore_field_case = True, 
> entity_quoting = False,
> pool_size = 10
> migrate = True,
> migrate_enabled = True,
> check_reserved = ['common'], 
> lazy_tables = False)
>
> . . .
>
> auth = Auth(db, host_names=myconf.get('host.names'))
>
> auth.settings.extra_fields['auth_user'] = [
> Field('organization', length=128, label=T('Organization')),
> Field('address', length=128, label=T('Street Address'), 
> requires=[IS_NOT_EMPTY()]),
> Field('city', length=64, label=T('City'), requires=[IS_NOT_EMPTY()]),
> Field('statename', length=64, label=T('State'), requires=[IS_NOT_EMPTY()]),
> Field('zip', length=8, label=T('Zip Code'),
> requires=[IS_MATCH(r'^\d{5}(-\d{4})?$', error_message='not a zip code')]),
> Field('phone', length=16, label=T('Phone Number'), requires=[IS_LENGTH(16, 
> 10)])]
>
>
> auth.define_tables(username=True, signature=True)  <--- fails here
>
> """
> This application was developed on windows, The application is now on 
> ubuntu 16.04. The database exist and this code, as it is above, is trying 
> to create a table, auth_user, that already exists. When migrate=True, this 
> is not suppose to happen - but it is. The table auth_user" already exists 
> and the code fails at auth.define_tables(username=True, signature=True), 
> with the following message: 
> DuplicateTable: relation "auth_user" already exists
>
> Thanks in advance, any recommendations appreciated, James
>

-- 
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/76358c98-d5da-4305-b26f-35b84d4f0dc5n%40googlegroups.com.


[web2py] Re: web2py ubuntu 16

2021-01-26 Thread Dave S
On Tuesday, January 26, 2021 at 4:33:59 AM UTC-8 Ovidio Marinho wrote:

>
>
> I installed web2py using the setup_ubuntu.sh script and
> I don't know what is happening with these errors
>
>
> restarting apage
> 
>  * Restarting web server apache2 AH00558: apache2: Could not reliably 
> determine the server's fully qualified domain name, using 127.0.1.1. Set the 
> 'ServerName' directive globally to suppress this message
> [...] 
>
>   File "/home/www-data/web2py/gluon/packages/dal/pydal/validators.py", line 
> 4205, in pbkdf2_hex
> hmac = hashlib.pbkdf2_hmac (
> AttributeError: 'module' object has no attribute 'pbkdf2_hmac'
> done!
>
> I confess that I never saw this error.
>
> Please reveal the versions you are using of 

-- web2py
-- Python
-- Apache
-- Ubuntu

Please note that using Apache is not recommended unless you already have it 
working [for either web2py or other webservers]; new users are encouraged 
to use NginX.

/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/162436ec-d482-4d47-b15d-26c637f42784n%40googlegroups.com.


Re: [web2py] Re: Web2py with python 3.8.5

2021-01-14 Thread Joe Barnhart
Just for the record, because it's not clear from this thread, the Python 
3,8 problem seems to have been taken care of.  I've been running web2py on 
Python 3.8 for the last couple of weeks at least and never noticed a 
problem.


On Sunday, January 3, 2021 at 2:26:52 PM UTC-6 jimka...@yahoo.com wrote:

> While investigating 3.8 issues, should also be aware of the following - 
> "3.9.1 is the first version of Python to support macOS 11 Big Sur."  as per 
> https://www.python.org/downloads/release/python-391/
>
> On Sunday, January 3, 2021 at 1:20:45 AM UTC-8 serge.bo...@gmail.com 
> wrote:
>
>> Hello,
>> I'm trying to convert my web2py apps to Ubuntu 20.4 / apache2/wsgi using 
>> python 3.8.5, and as I'm not an IT expert, the only way I found was to 
>> change the import instructions in a series of modules. I am aware I 
>> shouldn't do this, but I couldn't find any alternative... 
>> I would apreciate getting any feedback with another solution, and/or 
>> corrections of my 'durty coding'.
>>
>> Action 1:
>> - usr/lib/python3/dist-packages/yaml___init.py - line 399: 
>>  replace def class YAMLObject(metaclass=YAMLObjectMetaclass):
>> by
>> def class YAMLObject:
>> __metaclass__=YAMLObjectMetaclass
>> Action 2:
>> create /etc/securetty file (there was an example of content of this file 
>> in /usr/share/doc/util-linux/examples/securetty)
>>
>> Action 3:
>> add following line in 
>> /homr/www-data/web2py/gulon/packages/dal/pydal/adapters/base.py, line 16:
>> if not '/usr/lib/python3/dist-packages' in sys.path:
>> sys.path.append(''/usr/lib/python3/dist-packages')
>>
>> Action 4:
>> This 'import' instrunction of python is incompatible with the previous 
>> version. In each module (for instance gluon), the import of 'brother 
>> modules' (modules in the same folder than gluon) are done with the 
>> following type of instruction: 'from gluon import xxx'
>> This doesn't work in my configuration, because import instructions 
>> starting with a 'from' are supposed to refer to the relative path of the 
>> module, and not the absolute path (which scans sys.path).
>> => this instrunction must be changed (for instance by 'from .gluon import 
>> xxx')
>>
>> I am still working to get my system running, but at least, I can start 
>> web2py...
>>
>> I do not want to enter into phylosophical discussion about what I am 
>> authorized to do or not, and I hope that in early 2021, the evolution of 
>> ubuntu, python, web2py and other usefull packages will take care to keep 
>> harmony in the strategy of their evolution.
>>
>>
>> Le vendredi 29 novembre 2019 à 21:20:38 UTC+1, kell...@gmail.com a 
>> écrit :
>>
>>> Maybe, it wasn't on the radar of the django developers either and had to 
>>> be fixed in the framework after python3 was released.
>>>
>>> Happens sometimes I suppose, hard to keep up with depreciation of 
>>> functions and the impact on a framework. 
>>>
>>> Anyways, I suppose we juar have to file the bug reports and fix each 
>>> function step by step until all deprecated functions are removed and 
>>> replaced with the ones that need to be used for python 3.8 and forward.
>>>
>>>
>>>
>>>
>>>
>>> On Fri, 29 Nov 2019, 20:44 Woody,  wrote:
>>>
 Shouldn't that be done before the release rather than afterward?

 -- 
 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+un...@googlegroups.com.

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/web2py/cbb87866-f170-4338-ba3f-e93dfc3861f3%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/aa9f5f61-8a7e-4f81-b48d-55b40f72c49cn%40googlegroups.com.


Re: [web2py] Re: Web2py with python 3.8.5

2021-01-03 Thread 'jimka...@yahoo.com' via web2py-users
While investigating 3.8 issues, should also be aware of the following - 
"3.9.1 is the first version of Python to support macOS 11 Big Sur."  as per 
https://www.python.org/downloads/release/python-391/

On Sunday, January 3, 2021 at 1:20:45 AM UTC-8 serge.bo...@gmail.com wrote:

> Hello,
> I'm trying to convert my web2py apps to Ubuntu 20.4 / apache2/wsgi using 
> python 3.8.5, and as I'm not an IT expert, the only way I found was to 
> change the import instructions in a series of modules. I am aware I 
> shouldn't do this, but I couldn't find any alternative... 
> I would apreciate getting any feedback with another solution, and/or 
> corrections of my 'durty coding'.
>
> Action 1:
> - usr/lib/python3/dist-packages/yaml___init.py - line 399: 
>  replace def class YAMLObject(metaclass=YAMLObjectMetaclass):
> by
> def class YAMLObject:
> __metaclass__=YAMLObjectMetaclass
> Action 2:
> create /etc/securetty file (there was an example of content of this file 
> in /usr/share/doc/util-linux/examples/securetty)
>
> Action 3:
> add following line in 
> /homr/www-data/web2py/gulon/packages/dal/pydal/adapters/base.py, line 16:
> if not '/usr/lib/python3/dist-packages' in sys.path:
> sys.path.append(''/usr/lib/python3/dist-packages')
>
> Action 4:
> This 'import' instrunction of python is incompatible with the previous 
> version. In each module (for instance gluon), the import of 'brother 
> modules' (modules in the same folder than gluon) are done with the 
> following type of instruction: 'from gluon import xxx'
> This doesn't work in my configuration, because import instructions 
> starting with a 'from' are supposed to refer to the relative path of the 
> module, and not the absolute path (which scans sys.path).
> => this instrunction must be changed (for instance by 'from .gluon import 
> xxx')
>
> I am still working to get my system running, but at least, I can start 
> web2py...
>
> I do not want to enter into phylosophical discussion about what I am 
> authorized to do or not, and I hope that in early 2021, the evolution of 
> ubuntu, python, web2py and other usefull packages will take care to keep 
> harmony in the strategy of their evolution.
>
>
> Le vendredi 29 novembre 2019 à 21:20:38 UTC+1, kell...@gmail.com a écrit :
>
>> Maybe, it wasn't on the radar of the django developers either and had to 
>> be fixed in the framework after python3 was released.
>>
>> Happens sometimes I suppose, hard to keep up with depreciation of 
>> functions and the impact on a framework. 
>>
>> Anyways, I suppose we juar have to file the bug reports and fix each 
>> function step by step until all deprecated functions are removed and 
>> replaced with the ones that need to be used for python 3.8 and forward.
>>
>>
>>
>>
>>
>> On Fri, 29 Nov 2019, 20:44 Woody,  wrote:
>>
>>> Shouldn't that be done before the release rather than afterward?
>>>
>>> -- 
>>> 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+un...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/cbb87866-f170-4338-ba3f-e93dfc3861f3%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/84ce120b-a782-4899-8e36-efbd9bbe6da4n%40googlegroups.com.


Re: [web2py] Re: Web2py with python 3.8.5

2021-01-03 Thread Serge Bourgeois
Hello,
I'm trying to convert my web2py apps to Ubuntu 20.4 / apache2/wsgi using 
python 3.8.5, and as I'm not an IT expert, the only way I found was to 
change the import instructions in a series of modules. I am aware I 
shouldn't do this, but I couldn't find any alternative... 
I would apreciate getting any feedback with another solution, and/or 
corrections of my 'durty coding'.

Action 1:
- usr/lib/python3/dist-packages/yaml___init.py - line 399: 
 replace def class YAMLObject(metaclass=YAMLObjectMetaclass):
by
def class YAMLObject:
__metaclass__=YAMLObjectMetaclass
Action 2:
create /etc/securetty file (there was an example of content of this file in 
/usr/share/doc/util-linux/examples/securetty)

Action 3:
add following line in 
/homr/www-data/web2py/gulon/packages/dal/pydal/adapters/base.py, line 16:
if not '/usr/lib/python3/dist-packages' in sys.path:
sys.path.append(''/usr/lib/python3/dist-packages')

Action 4:
This 'import' instrunction of python is incompatible with the previous 
version. In each module (for instance gluon), the import of 'brother 
modules' (modules in the same folder than gluon) are done with the 
following type of instruction: 'from gluon import xxx'
This doesn't work in my configuration, because import instructions starting 
with a 'from' are supposed to refer to the relative path of the module, and 
not the absolute path (which scans sys.path).
=> this instrunction must be changed (for instance by 'from .gluon import 
xxx')

I am still working to get my system running, but at least, I can start 
web2py...

I do not want to enter into phylosophical discussion about what I am 
authorized to do or not, and I hope that in early 2021, the evolution of 
ubuntu, python, web2py and other usefull packages will take care to keep 
harmony in the strategy of their evolution.


Le vendredi 29 novembre 2019 à 21:20:38 UTC+1, kell...@gmail.com a écrit :

> Maybe, it wasn't on the radar of the django developers either and had to 
> be fixed in the framework after python3 was released.
>
> Happens sometimes I suppose, hard to keep up with depreciation of 
> functions and the impact on a framework. 
>
> Anyways, I suppose we juar have to file the bug reports and fix each 
> function step by step until all deprecated functions are removed and 
> replaced with the ones that need to be used for python 3.8 and forward.
>
>
>
>
>
> On Fri, 29 Nov 2019, 20:44 Woody,  wrote:
>
>> Shouldn't that be done before the release rather than afterward?
>>
>> -- 
>> 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+un...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/cbb87866-f170-4338-ba3f-e93dfc3861f3%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/ba7511c0-ef8e-480e-ab2b-4ad90e64b395n%40googlegroups.com.


[web2py] Re: web2py 2.21.1 is OUT

2020-12-05 Thread Massimo Di Pierro
Will look into this asap.

On Monday, 30 November 2020 at 00:34:48 UTC-8 jpa...@gmail.com wrote:

> Hello, 
>
> I think it is an issue that comes from previous version. It has to do with 
> IS_NOT_IN_DB validator and auth. It worked in 2.17.2 version with no problem
>
> Traceback (most recent call last): 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/restricted.py",
>  
> line 219, in restricted exec(ccode, environment) 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycontroller.py",
>  
> line 199, in  
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/globals.py",
>  
> line 430, in  self._caller = lambda f: f() 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/tools.py",
>  
> line 3875, in f return action(*a, **b) 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycrontroller.py",
>  
> line 110, in crear_usuario if form.accepts(request.vars, session): 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/sqlhtml.py",
>  
> line 1790, in accepts **kwargs 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 2162, in accepts status = self._traverse(status, hideerror) 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>   File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
> newstatus 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 928, in _traverse newstatus = self._validate() 
>  File 
> "/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
>  
> line 1908, in _validate raise Exception(msg) 
> Exception: Validation error, field:email  object at 0x3ebef34de910>
>
> This is the code of the controller where it breaks
>
>
> form = SQLFORM(db.auth_user)
> if form.accepts(request.vars, session):
>
> It also fails in appadmin db.auth_user new record
>
>
> El sábado, 28 de noviembre de 2020 a las 5:22:19 UTC+1, Massimo Di Pierro 
> escribió:
>
>>
>> Hello everybody, 
>>
>> first of all my apologies to you all. I have been absent from this list 
>> for some time, mostly because busy with py4web.
>>
>> I made a new release (2.21.1) of web2py which includes mostly small bug 
>> fixes but no new features. Please report any problem.
>>
>> At this point web2py has been stable for long time so we are not planning 
>> to add features.
>>
>> py4web on the other side is growing fast. It now has Auth, 
>> internationalization, Form, Grid and it is 20x faster than wb2py. pyDAL 
>> woks the in the same way as in web2py. I insist you should check it out and 
>> consider moving you code. It is easy and we will help.
>>
>> Massimo
>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/a6641acd-99b1-4a17-9183-c2961f58eb3an%40googlegroups.com.


[web2py] Re: web2py 2.21.1 is OUT

2020-11-30 Thread Jacinto Parga
Hello, 

I think it is an issue that comes from previous version. It has to do with 
IS_NOT_IN_DB validator and auth. It worked in 2.17.2 version with no problem

Traceback (most recent call last): 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/restricted.py",
 
line 219, in restricted exec(ccode, environment) 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycontroller.py",
 
line 199, in  
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/globals.py",
 
line 430, in  self._caller = lambda f: f() 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/tools.py",
 
line 3875, in f return action(*a, **b) 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/applications/myapp/controllers/mycrontroller.py",
 
line 110, in crear_usuario if form.accepts(request.vars, session): 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/sqlhtml.py",
 
line 1790, in accepts **kwargs 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 2162, in accepts status = self._traverse(status, hideerror) 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
  File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 921, in _traverse newstatus = c._traverse(status, hideerror) and 
newstatus 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 928, in _traverse newstatus = self._validate() 
 File 
"/base/data/home/apps/e~canal-responsable-marcafranca/218.431301544681755891/gluon/html.py",
 
line 1908, in _validate raise Exception(msg) 
Exception: Validation error, field:email 

This is the code of the controller where it breaks


form = SQLFORM(db.auth_user)
if form.accepts(request.vars, session):

It also fails in appadmin db.auth_user new record


El sábado, 28 de noviembre de 2020 a las 5:22:19 UTC+1, Massimo Di Pierro 
escribió:

>
> Hello everybody, 
>
> first of all my apologies to you all. I have been absent from this list 
> for some time, mostly because busy with py4web.
>
> I made a new release (2.21.1) of web2py which includes mostly small bug 
> fixes but no new features. Please report any problem.
>
> At this point web2py has been stable for long time so we are not planning 
> to add features.
>
> py4web on the other side is growing fast. It now has Auth, 
> internationalization, Form, Grid and it is 20x faster than wb2py. pyDAL 
> woks the in the same way as in web2py. I insist you should check it out and 
> consider moving you code. It is easy and we will help.
>
> Massimo
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2698dff8-00b2-4bf0-ae27-3a2f66774a54n%40googlegroups.com.


Re: [web2py] Re: web2py ajax function in py4web

2020-11-09 Thread Tom Campbell
Also, Stifan, could you post a few use cases? py4web includes vue.js by
default and I am trying to understand the most common use cases of this for
documentation purposes. I am guessing:

   - Instant form update on client side when a value is changed (for
   example, a star rating or even a complicated dialog)
   - Instant form update on client side when a database value is changed
   (for example, adding a line item to an invoice)

Note to py4web peeps: Stifan is a gifted web2py person and I am
delighted to see him posting here!

-- 
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/CALXkWBR%3DK6cuqHT-2AZSiEwWGn485Mrt7BVoDtq_TQ%2BS860oZw%40mail.gmail.com.


[web2py] Re: web2py ajax function in py4web

2020-11-09 Thread Jim S
Stifan

Can you post this in the py4web group?

In py4web we don't include any jquery components.  The goal is to be as 
light as possible and require as few additional packages as possible.

I think you'll get better visibility on the py4web list to get this 
question answered.  

I know there are some javascript utilities provided with py4web but I 
haven't used them yet.

-Jim


On Saturday, November 7, 2020 at 5:16:01 PM UTC-6, 黄祥 wrote:
>
>
> http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#The-ajax-function
> how to achieve this in py4web ?
>
> 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/8e9b3ffe-7b13-4f81-a5f0-fd40fd45b1f9o%40googlegroups.com.


[web2py] Re: Web2py adn Gzip

2020-10-31 Thread Gaël Princivalle
Hi.

I was working on a http website.
Anyway the https protocol don't accept gzip, so as all websites now are 
https, it don't have any interest to have gzip.
My https websites load really faster compare to Webfaction.

Good deal.

Il giorno sabato 24 ottobre 2020 alle 22:14:21 UTC+2 Jose C ha scritto:

> On Saturday, 24 October 2020 20:13:23 UTC+1, Jose C wrote:
>>
>> > The zip_static_files.py utility in your web2py scripts directory will 
>> create gzipped versions of all your static files for you. 
>>
>>> Great.
>>> However something goes wrong.
>>>
>>
>>  
> As a workaround, you could probably quite easily customize the script.  
>
> It looks like it only needs the web2py environment to get the 
> request.folder variable to find the static directory of your app.  If you 
> edit the script and change where it gets which folder to scan and assigns 
> to the static_path variable (by either hardcoding or passing in via command 
> line, for example), you should then be able to run it simply from python (3 
> or 2) externally without loading the web2py app.
>
> That should overcome the bug. 
>
> HTH,
>
>
>

-- 
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/764974e7-2ae2-4f6a-9141-2d0ba32fe3b6n%40googlegroups.com.


[web2py] Re: Web2py adn Gzip

2020-10-24 Thread Jose C
On Saturday, 24 October 2020 20:13:23 UTC+1, Jose C wrote:
>
> > The zip_static_files.py utility in your web2py scripts directory will 
> create gzipped versions of all your static files for you. 
>
>> Great.
>> However something goes wrong.
>>
>
>  
As a workaround, you could probably quite easily customize the script.  

It looks like it only needs the web2py environment to get the 
request.folder variable to find the static directory of your app.  If you 
edit the script and change where it gets which folder to scan (hardcode or 
pass in via command line, for example), you should then be able to run it 
simply from python (3 or 2) externally without loading the web2py app.

That should overcome the bug. 

HTH,


-- 
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/0f54bce2-3a67-4e5c-af34-e8f4281f6455o%40googlegroups.com.


[web2py] Re: Web2py adn Gzip

2020-10-24 Thread Jose C
> The zip_static_files.py utility in your web2py scripts directory will 
create gzipped versions of all your static files for you. 

> Great.
> However something goes wrong.
>

hmmm, what is your python version?  And web2py version?  I'm suspecting 
this tool hasn't been updated to py3.

-- 
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/87dd366e-325c-4597-b906-881b19412ddao%40googlegroups.com.


[web2py] Re: Web2py adn Gzip

2020-10-24 Thread Gaël Princivalle
It seems that for a similar error the solution was to update Python to 
almost 2.7.9.
>https://github.com/numba/numba/issues/2642

On Opalstack in the virtualenv I've 2.7.5.
Checking the latest version with python2 --version I obtain 2.7.5.
That's strange as it exists 2.7.16.

Il giorno sabato 24 ottobre 2020 alle 20:38:45 UTC+2 Gaël Princivalle ha 
scritto:

> >Perhaps you can +1 them on this feature request. 
> Done.
>
> > The zip_static_files.py utility in your web2py scripts directory will 
> create gzipped versions of all your static files for you. 
> Great.
> However something goes wrong.
>
> [user@vpsXX web2py]$ python web2py.py -S myapp -R 
> scripts/zip_static_files.py
> Traceback (most recent call last):
>   File "web2py.py", line 41, in 
> import gluon.widget
>   File "/home/user/apps/web2py_folder/web2py/gluon/widget.py", line 27, in 
> 
> from gluon.shell import die, run, test
>   File "/home/user/apps/web2py_folder/web2py/gluon/shell.py", line 285
> exec(read_pyc(pycfile), _env)
> SyntaxError: unqualified exec is not allowed in function 'run' it contains 
> a nested function with free variables
>
> Do you know why?
> Il giorno sabato 24 ottobre 2020 alle 19:00:18 UTC+2 Jose C ha scritto:
>
>> I requested gzip as well for a static media site (https) and they said:
>>
>> Our front-end Nginx server will not use gzip compression for requests 
>>> served over HTTPS. This is by design as a mitigation for the BREACH 
>>> exploit .
>>>
>>> We've an internal feature ticket open to consider making the mitigation 
>>> optional for customers that don't need it. I will make a note of your 
>>> inquiry there.
>>>
>>
>> Perhaps you can +1 them on this feature request.
>>
>> However, if you're serving your static files via web2py itself (and not 
>> via a static app on another domain for speed) then web2py will send the .gz 
>> file version of a requested asset if it exists.  For example, a request for 
>> mysite.css comes in, web2py sends mysite.css.gz automatically if it exists, 
>> else it sends mysite.css.
>>
>> The zip_static_files.py utility in your web2py scripts directory will 
>> create gzipped versions of all your static files for you.
>>
>> HTH,
>>
>

-- 
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/5b4211de-b5a0-49eb-adeb-b58ee1c35295n%40googlegroups.com.


[web2py] Re: Web2py adn Gzip

2020-10-24 Thread Gaël Princivalle
>Perhaps you can +1 them on this feature request. 
Done.

> The zip_static_files.py utility in your web2py scripts directory will 
create gzipped versions of all your static files for you. 
Great.
However something goes wrong.

[user@vpsXX web2py]$ python web2py.py -S myapp -R 
scripts/zip_static_files.py
Traceback (most recent call last):
  File "web2py.py", line 41, in 
import gluon.widget
  File "/home/user/apps/web2py_folder/web2py/gluon/widget.py", line 27, in 

from gluon.shell import die, run, test
  File "/home/user/apps/web2py_folder/web2py/gluon/shell.py", line 285
exec(read_pyc(pycfile), _env)
SyntaxError: unqualified exec is not allowed in function 'run' it contains 
a nested function with free variables

Do you know why?
Il giorno sabato 24 ottobre 2020 alle 19:00:18 UTC+2 Jose C ha scritto:

> I requested gzip as well for a static media site (https) and they said:
>
> Our front-end Nginx server will not use gzip compression for requests 
>> served over HTTPS. This is by design as a mitigation for the BREACH 
>> exploit .
>>
>> We've an internal feature ticket open to consider making the mitigation 
>> optional for customers that don't need it. I will make a note of your 
>> inquiry there.
>>
>
> Perhaps you can +1 them on this feature request.
>
> However, if you're serving your static files via web2py itself (and not 
> via a static app on another domain for speed) then web2py will send the .gz 
> file version of a requested asset if it exists.  For example, a request for 
> mysite.css comes in, web2py sends mysite.css.gz automatically if it exists, 
> else it sends mysite.css.
>
> The zip_static_files.py utility in your web2py scripts directory will 
> create gzipped versions of all your static files for you.
>
> HTH,
>

-- 
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/92795272-f545-4066-b022-e04cab04b1aen%40googlegroups.com.


[web2py] Re: Web2py adn Gzip

2020-10-24 Thread Jose C
I requested gzip as well for a static media site (https) and they said:

Our front-end Nginx server will not use gzip compression for requests 
> served over HTTPS. This is by design as a mitigation for the BREACH 
> exploit .
>
> We've an internal feature ticket open to consider making the mitigation 
> optional for customers that don't need it. I will make a note of your 
> inquiry there.
>

Perhaps you can +1 them on this feature request.

However, if you're serving your static files via web2py itself (and not via 
a static app on another domain for speed) then web2py will send the .gz 
file version of a requested asset if it exists.  For example, a request for 
mysite.css comes in, web2py sends mysite.css.gz automatically if it exists, 
else it sends mysite.css.

The zip_static_files.py utility in your web2py scripts directory will 
create gzipped versions of all your static files for you.

HTH,

-- 
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/fbf7bf49-869a-4de0-84a4-6891be8e2fafo%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-17 Thread Gaël Princivalle
I've made some confusion, you're wright it's not MDDHosting where they're 
some old Webfaction guys but Opalstack.
I'll choose a VPS from Opalstack or OVH. Did someone tried to use 
Webfaction on OVH?

Il giorno venerdì 16 ottobre 2020 alle 18:45:41 UTC+2 Jose C ha scritto:

> Did someone tried this one?
>> https://www.mddhosting.com/
>>
>> It seems a new company made by old Webfaction guys.
>>
>> Not sure about that.  They say their company was created in 2007.  WF was 
> still brilliant then.  The only 'new' company founded by ex-Webfaction guys 
> that I know of is Opalstack.  See: 
> https://www.opalstack.com/2019/03/13/its-time-to-switch-to-an-independently-owned-hosting-company/
>
>  
>

-- 
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/9d084ce8-dbee-4380-b276-c4083b27af0cn%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-16 Thread Jose C

>
> Did someone tried this one?
> https://www.mddhosting.com/
>
> It seems a new company made by old Webfaction guys.
>
> Not sure about that.  They say their company was created in 2007.  WF was 
still brilliant then.  The only 'new' company founded by ex-Webfaction guys 
that I know of is Opalstack.  See: 
https://www.opalstack.com/2019/03/13/its-time-to-switch-to-an-independently-owned-hosting-company/

 

-- 
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/ae13691f-8847-4c86-b0b3-6db17e6426a9o%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-16 Thread Jose C


On Friday, 16 October 2020 15:11:40 UTC+1, Ramos wrote:
>
> This is not good for me , opalstack is offline for support sometimes.
>
> Webfaction is always on and has a ticketing system with a priority flag!
>

Not sure how you got to that screen - looks like an online chat window?   
I've always just send email direct to supp...@opalcom and someone 
responds pretty quickly.

-- 
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/296bbb92-40d6-403b-a175-d26f83f8a9e3o%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-16 Thread Gaël Princivalle
Today Webfaction has send me the confirmation that Postgress and Web2py 
will be not available on tsoHost.

Did someone tried this one?
https://www.mddhosting.com/

It seems a new company made by old Webfaction guys.
Il giorno venerdì 16 ottobre 2020 alle 16:11:40 UTC+2 Ramos ha scritto:

> This is not good for me , opalstack is offline for support sometimes.
>
> Webfaction is always on and has a ticketing system with a priority flag!
>
> [image: image.png]
>
> Em sex., 16 de out. de 2020 às 10:30, Jose C  
> escreveu:
>
>> HI Antonio,
>>
>> Can't speak as to pythonanywhere, but Opalstack definitely supports 
>> automatic Letsencrypt certificates - I have it set up on all my sites.  You 
>> just flip a switch on each website and the rest is handled automatically, 
>> including auto-renewals.
>> See: 
>> https://help.opalstack.com/article/35/how-can-i-use-a-lets-encrypt-ssl-certificate
>>  
>>
>> Also for other general info you may need: 
>> https://help.opalstack.com/category/1/opalstack-guide 
>> 
>>  
>>
>> I also used to use the mail2script functionality when on WF to handle 
>> incoming bounced emails.  Last I inquired Opalstack said it was on their to 
>> do list as they were working on their API, but they suggested an easy 
>> workaround which I've been using since then with no problems.
>>
>> On Opalstack I implemented the same functionality by dumping copies of 
>> incoming emails I wanted to process into one specific dedicated IMAP 
>> mailbox.  Then my script runs via cron (every 5 minutes) and checks that 
>> mailbox periodically for new messages, processes them and deletes them from 
>> the mailbox.
>>
>> The code is simple (sorry, I can't find the code formatting options in 
>> this new google reply interface):
>>
> # Connect to imap mailbox.
>>
> ctx = ssl.create_default_context()
>> server = imaplib.IMAP4_SSL(host=imaphost, ssl_context=ctx)
>> server.login(mailbox,passwd)
>> server.select()
>>
> resp, items = server.search(None, "UNSEEN")
>>
>
>> # process any message(s). 
>> for i in items:
>>  resp, data = server.fetch(i, "(RFC822)") 
>>  do whatever with the message here..
>>  server.store(i, '+FLAGS', '\\Deleted')   # Set delete 
>> flag on this message. 
>>
>> server.expunge()# Physically remove messages that are 
>> flagged as deleted from the mailbox (actually delete). 
>>
> server.close()
>> server.logout()
>>
>  
>>
>> There's also a near realtime example using IMAP IDLE listeners if once a 
>> minute via cron isn't enough.  See this thread for details:  
>> https://community.opalstack.com/d/13-mail2script-functionality
>>
>> HTH,
>>
>> Jose
>>
>>
>> On Friday, 16 October 2020 at 09:44:02 UTC+1 Ramos wrote:
>>
>>> i need https ssl certificates (automatic letsencrypt). opalstack and 
>>> pythonanywhere dont refer this option as available.
>>> also i have a virtual email address that forward incoming emails to 
>>> python script like pic attached. Do pythonanywhare permit this ? i already 
>>> know that opalstack dont permit this yet..
>>> [image: image.png]
>>>  
>>>
>>> -- 
>> 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+un...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/01ce7579-93dd-405b-8aad-e823f3940628n%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/d3adc34a-57c6-46bf-8541-099f20ca86e8n%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-16 Thread António Ramos
This is not good for me , opalstack is offline for support sometimes.

Webfaction is always on and has a ticketing system with a priority flag!

[image: image.png]

Em sex., 16 de out. de 2020 às 10:30, Jose C 
escreveu:

> HI Antonio,
>
> Can't speak as to pythonanywhere, but Opalstack definitely supports
> automatic Letsencrypt certificates - I have it set up on all my sites.  You
> just flip a switch on each website and the rest is handled automatically,
> including auto-renewals.
> See:
> https://help.opalstack.com/article/35/how-can-i-use-a-lets-encrypt-ssl-certificate
>
> Also for other general info you may need:
> https://help.opalstack.com/category/1/opalstack-guide
> 
>
> I also used to use the mail2script functionality when on WF to handle
> incoming bounced emails.  Last I inquired Opalstack said it was on their to
> do list as they were working on their API, but they suggested an easy
> workaround which I've been using since then with no problems.
>
> On Opalstack I implemented the same functionality by dumping copies of
> incoming emails I wanted to process into one specific dedicated IMAP
> mailbox.  Then my script runs via cron (every 5 minutes) and checks that
> mailbox periodically for new messages, processes them and deletes them from
> the mailbox.
>
> The code is simple (sorry, I can't find the code formatting options in
> this new google reply interface):
> # Connect to imap mailbox.
> ctx = ssl.create_default_context()
> server = imaplib.IMAP4_SSL(host=imaphost, ssl_context=ctx)
> server.login(mailbox,passwd)
> server.select()
> resp, items = server.search(None, "UNSEEN")
>
> # process any message(s).
> for i in items:
>  resp, data = server.fetch(i, "(RFC822)")
>  do whatever with the message here..
>  server.store(i, '+FLAGS', '\\Deleted')   # Set delete
> flag on this message.
>
> server.expunge()# Physically remove messages that are
> flagged as deleted from the mailbox (actually delete).
> server.close()
> server.logout()
>
>
> There's also a near realtime example using IMAP IDLE listeners if once a
> minute via cron isn't enough.  See this thread for details:
> https://community.opalstack.com/d/13-mail2script-functionality
>
> HTH,
>
> Jose
>
>
> On Friday, 16 October 2020 at 09:44:02 UTC+1 Ramos wrote:
>
>> i need https ssl certificates (automatic letsencrypt). opalstack and
>> pythonanywhere dont refer this option as available.
>> also i have a virtual email address that forward incoming emails to
>> python script like pic attached. Do pythonanywhare permit this ? i already
>> know that opalstack dont permit this yet..
>> [image: image.png]
>>
>>
>> --
> 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/01ce7579-93dd-405b-8aad-e823f3940628n%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/CAEM0BxOLM6K0bo%3DfJyNOONgHueEOYhUAbK2%3D6Fw1NE7dq6wP9A%40mail.gmail.com.


Re: [web2py] Re: web2py hosting

2020-10-16 Thread Jose C
HI Antonio,

Can't speak as to pythonanywhere, but Opalstack definitely supports 
automatic Letsencrypt certificates - I have it set up on all my sites.  You 
just flip a switch on each website and the rest is handled automatically, 
including auto-renewals.
See: 
https://help.opalstack.com/article/35/how-can-i-use-a-lets-encrypt-ssl-certificate
 

Also for other general info you may need: 
https://help.opalstack.com/category/1/opalstack-guide 

 

I also used to use the mail2script functionality when on WF to handle 
incoming bounced emails.  Last I inquired Opalstack said it was on their to 
do list as they were working on their API, but they suggested an easy 
workaround which I've been using since then with no problems.

On Opalstack I implemented the same functionality by dumping copies of 
incoming emails I wanted to process into one specific dedicated IMAP 
mailbox.  Then my script runs via cron (every 5 minutes) and checks that 
mailbox periodically for new messages, processes them and deletes them from 
the mailbox.

The code is simple (sorry, I can't find the code formatting options in this 
new google reply interface):
# Connect to imap mailbox.
ctx = ssl.create_default_context()
server = imaplib.IMAP4_SSL(host=imaphost, ssl_context=ctx)
server.login(mailbox,passwd)
server.select()
resp, items = server.search(None, "UNSEEN")
   
# process any message(s). 
for i in items:
 resp, data = server.fetch(i, "(RFC822)") 
 do whatever with the message here..
 server.store(i, '+FLAGS', '\\Deleted')   # Set delete flag 
on this message. 

server.expunge()# Physically remove messages that are 
flagged as deleted from the mailbox (actually delete). 
server.close()
server.logout()
 

There's also a near realtime example using IMAP IDLE listeners if once a 
minute via cron isn't enough.  See this thread for details:  
https://community.opalstack.com/d/13-mail2script-functionality

HTH,

Jose


On Friday, 16 October 2020 at 09:44:02 UTC+1 Ramos wrote:

> i need https ssl certificates (automatic letsencrypt). opalstack and 
> pythonanywhere dont refer this option as available.
> also i have a virtual email address that forward incoming emails to python 
> script like pic attached. Do pythonanywhare permit this ? i already 
> know that opalstack dont permit this yet..
> [image: image.png]
>  
>
>

-- 
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/01ce7579-93dd-405b-8aad-e823f3940628n%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-16 Thread António Ramos
i need https ssl certificates (automatic letsencrypt). opalstack and
pythonanywhere dont refer this option as available.
also i have a virtual email address that forward incoming emails to python
script like pic attached. Do pythonanywhare permit this ? i already
know that opalstack dont permit this yet..
[image: image.png]


Em qua., 14 de out. de 2020 às 23:28, Jose C 
escreveu:

> Hi Antonio,
>
> I just saw this announcement:
> https://www.webfaction.com/faq
>
> Reading the "What will not be available when I am migrated to tsohost"...
> makes you wonder what they actually do host on their servers!  And they're
> starting migrations in a couple of weeks and shutting WF down 100% in March.
>
> Anyone who liked the WF control panel, services offered and way of doing
> things AND who wants a seamless transfer of their sites to another host, do
> yourselves a favour and create an account on Opalstack and check them out.
> You should feel right at home.
>
> Either way, good luck with your migrations.
>
> Jose
>
> On Wednesday, 14 October 2020 at 15:51:52 UTC+1 Ramos wrote:
>
>> no python??? on TsoHost??
>>
>> Em qua., 14 de out. de 2020 às 15:50, António Ramos 
>> escreveu:
>>
>>> no postgresql db... i´m doomed
>>>
>>> Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle <
>>> gaelpri...@gmail.com> escreveu:
>>>
 I think the new business TsoHost plans are the ones that will replace
 the Webfaction cloud plans:
 https://www.tsohost.com/business-hosting

 Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël
 Princivalle ha scritto:

> Hi Antonio.
>
> i'm worried about the same thing.
>
> It seems that all the applications gone be migrated to TsoHost, a
> Godaddy company.
>
> Someone have some experience about Web2py on TsoHost  ?
>
> Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:
>
>> I´m a webfaction long time user and from another post here i got
>> worried about the godaddy acquisition.Eventually webfaction may die in a
>> short term period.
>>
>> Can you recommend a good alternative?
>> Can you share your experience?
>>
>> Opalstack
>> pythonanywhere
>>
>> others ?
>>
>> regards
>> António
>>
> --
 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+un...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/web2py/515e3e7a-375e-4a9c-9708-2dd0d59cda3an%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/4560eb38-1896-4402-9021-28da7ae5e065n%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/CAEM0BxM-3OO3%2BM03YrSeUBQj03SAW5BpdwjrV10UUqs2GWia1Q%40mail.gmail.com.


Re: [web2py] Re: web2py hosting

2020-10-14 Thread Jose C
Hi Antonio, 

I just saw this announcement:
https://www.webfaction.com/faq

Reading the "What will not be available when I am migrated to tsohost"...  
makes you wonder what they actually do host on their servers!  And they're 
starting migrations in a couple of weeks and shutting WF down 100% in March.

Anyone who liked the WF control panel, services offered and way of doing 
things AND who wants a seamless transfer of their sites to another host, do 
yourselves a favour and create an account on Opalstack and check them out.  
You should feel right at home.

Either way, good luck with your migrations.

Jose

On Wednesday, 14 October 2020 at 15:51:52 UTC+1 Ramos wrote:

> no python??? on TsoHost?? 
>
> Em qua., 14 de out. de 2020 às 15:50, António Ramos  
> escreveu:
>
>> no postgresql db... i´m doomed
>>
>> Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle <
>> gaelpri...@gmail.com> escreveu:
>>
>>> I think the new business TsoHost plans are the ones that will replace 
>>> the Webfaction cloud plans:
>>> https://www.tsohost.com/business-hosting
>>>
>>> Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël Princivalle 
>>> ha scritto:
>>>
 Hi Antonio.

 i'm worried about the same thing.

 It seems that all the applications gone be migrated to TsoHost, a 
 Godaddy company.

 Someone have some experience about Web2py on TsoHost  ?

 Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:

> I´m a webfaction long time user and from another post here i got 
> worried about the godaddy acquisition.Eventually webfaction may die in a 
> short term period.
>
> Can you recommend a good alternative? 
> Can you share your experience?
>
> Opalstack
> pythonanywhere
>
> others ?
>
> regards
> António
>
 -- 
>>> 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+un...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/web2py/515e3e7a-375e-4a9c-9708-2dd0d59cda3an%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/4560eb38-1896-4402-9021-28da7ae5e065n%40googlegroups.com.


Re: [web2py] Re: web2py hosting

2020-10-14 Thread António Ramos
no python??? on TsoHost??

Em qua., 14 de out. de 2020 às 15:50, António Ramos 
escreveu:

> no postgresql db... i´m doomed
>
> Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle <
> gaelprinciva...@gmail.com> escreveu:
>
>> I think the new business TsoHost plans are the ones that will replace the
>> Webfaction cloud plans:
>> https://www.tsohost.com/business-hosting
>>
>> Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël Princivalle
>> ha scritto:
>>
>>> Hi Antonio.
>>>
>>> i'm worried about the same thing.
>>>
>>> It seems that all the applications gone be migrated to TsoHost, a
>>> Godaddy company.
>>>
>>> Someone have some experience about Web2py on TsoHost  ?
>>>
>>> Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:
>>>
 I´m a webfaction long time user and from another post here i got
 worried about the godaddy acquisition.Eventually webfaction may die in a
 short term period.

 Can you recommend a good alternative?
 Can you share your experience?

 Opalstack
 pythonanywhere

 others ?

 regards
 António

>>> --
>> 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/515e3e7a-375e-4a9c-9708-2dd0d59cda3an%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/CAEM0BxOXusHdEyDaVHqWyx9LuzzyvyHSO0yZ1RKxgc-d4kMTKw%40mail.gmail.com.


Re: [web2py] Re: web2py hosting

2020-10-14 Thread António Ramos
no postgresql db... i´m doomed

Em qua., 14 de out. de 2020 às 15:00, Gaël Princivalle <
gaelprinciva...@gmail.com> escreveu:

> I think the new business TsoHost plans are the ones that will replace the
> Webfaction cloud plans:
> https://www.tsohost.com/business-hosting
>
> Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël Princivalle
> ha scritto:
>
>> Hi Antonio.
>>
>> i'm worried about the same thing.
>>
>> It seems that all the applications gone be migrated to TsoHost, a Godaddy
>> company.
>>
>> Someone have some experience about Web2py on TsoHost  ?
>>
>> Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:
>>
>>> I´m a webfaction long time user and from another post here i got worried
>>> about the godaddy acquisition.Eventually webfaction may die in a short term
>>> period.
>>>
>>> Can you recommend a good alternative?
>>> Can you share your experience?
>>>
>>> Opalstack
>>> pythonanywhere
>>>
>>> others ?
>>>
>>> regards
>>> António
>>>
>> --
> 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/515e3e7a-375e-4a9c-9708-2dd0d59cda3an%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/CAEM0BxPeqChDA6ZLPL7kyZYHsBGrKW7NfuUYq7O8e1r_SzGRHA%40mail.gmail.com.


[web2py] Re: web2py hosting

2020-10-14 Thread Gaël Princivalle
I think the new business TsoHost plans are the ones that will replace the 
Webfaction cloud plans:
https://www.tsohost.com/business-hosting

Il giorno mercoledì 14 ottobre 2020 alle 15:55:32 UTC+2 Gaël Princivalle ha 
scritto:

> Hi Antonio.
>
> i'm worried about the same thing.
>
> It seems that all the applications gone be migrated to TsoHost, a Godaddy 
> company.
>
> Someone have some experience about Web2py on TsoHost  ?
>
> Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:
>
>> I´m a webfaction long time user and from another post here i got worried 
>> about the godaddy acquisition.Eventually webfaction may die in a short term 
>> period.
>>
>> Can you recommend a good alternative? 
>> Can you share your experience?
>>
>> Opalstack
>> pythonanywhere
>>
>> others ?
>>
>> regards
>> António
>>
>

-- 
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/515e3e7a-375e-4a9c-9708-2dd0d59cda3an%40googlegroups.com.


[web2py] Re: web2py hosting

2020-10-14 Thread Gaël Princivalle
Hi Antonio.

i'm worried about the same thing.

It seems that all the applications gone be migrated to TsoHost, a Godaddy 
company.

Someone have some experience about Web2py on TsoHost  ?

Il giorno venerdì 22 maggio 2020 alle 09:45:12 UTC+2 Ramos ha scritto:

> I´m a webfaction long time user and from another post here i got worried 
> about the godaddy acquisition.Eventually webfaction may die in a short term 
> period.
>
> Can you recommend a good alternative? 
> Can you share your experience?
>
> Opalstack
> pythonanywhere
>
> others ?
>
> regards
> António
>

-- 
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/9b40ae01-1e3e-4f00-bf2d-e397e6650027n%40googlegroups.com.


[web2py] Re: web2py hosting

2020-10-13 Thread 'Annet' via web2py-users
Hi Jose,

You're right no regrets at all. Just like you I very much appreciate their 
willingness to
help you solve the problems you run into when deploying your applications.

Annet



Op dinsdag 13 oktober 2020 om 08:51:21 UTC+2 schreef Jose C:

> Hi Annet,  
>
> Just FYI, I'm going on 18 months now with Opalstack and couldn´t be 
> happier.  Running multiple web2py (and other) apps on servers in US and EU, 
> hosted email, etc. with the same access and levels of control I'd had on 
> WF.  And most importantly, always the same incredible customer focus and 
> willingness to help that originally made WF famous, that is, until their 
> encounter with the Borg/GD  ;)
>
> I doubt you'll have any regrets,
>
> Jose
>
>
>
>
> On Saturday, 10 October 2020 at 17:07:20 UTC+1 Annet wrote:
>
>> Hi Antonio,
>>
>> I came across your post, and thought I'd share my experience with 
>> Opalstack.
>>
>> I am a web developer not a server administrator, I hosted at Webfaction 
>> because their
>> support people were very patient and helpful. After joining forces with 
>> GD support no
>> longer stands out from the crowd.
>>
>> Last week I signed up with Opalstack, https://www.opalstack.com/ and I 
>> am glad I did, 
>> great support and a simple but powerful control panel. One of the former 
>> WF support 
>> people wrote a web2py install script which got me up and running in no 
>> time.
>>
>> Hope this was helpful,
>>
>> Annet V.
>>
>> Op vrijdag 22 mei 2020 om 09:45:12 UTC+2 schreef Ramos:
>>
>>> I´m a webfaction long time user and from another post here i got worried 
>>> about the godaddy acquisition.Eventually webfaction may die in a short term 
>>> period.
>>>
>>> Can you recommend a good alternative? 
>>> Can you share your experience?
>>>
>>> Opalstack
>>> pythonanywhere
>>>
>>> others ?
>>>
>>> regards
>>> António
>>>
>>

-- 
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/349b3852-ff30-4416-b2c1-ff1466736f9bn%40googlegroups.com.


[web2py] Re: web2py hosting

2020-10-13 Thread Jose C
Hi Annet,  

Just FYI, I'm going on 18 months now with Opalstack and couldn´t be 
happier.  Running multiple web2py (and other) apps on servers in US and EU, 
hosted email, etc. with the same access and levels of control I'd had on 
WF.  And most importantly, always the same incredible customer focus and 
willingness to help that originally made WF famous, that is, until their 
encounter with the Borg/GD  ;)

I doubt you'll have any regrets,

Jose




On Saturday, 10 October 2020 at 17:07:20 UTC+1 Annet wrote:

> Hi Antonio,
>
> I came across your post, and thought I'd share my experience with 
> Opalstack.
>
> I am a web developer not a server administrator, I hosted at Webfaction 
> because their
> support people were very patient and helpful. After joining forces with GD 
> support no
> longer stands out from the crowd.
>
> Last week I signed up with Opalstack, https://www.opalstack.com/ and I am 
> glad I did, 
> great support and a simple but powerful control panel. One of the former 
> WF support 
> people wrote a web2py install script which got me up and running in no 
> time.
>
> Hope this was helpful,
>
> Annet V.
>
> Op vrijdag 22 mei 2020 om 09:45:12 UTC+2 schreef Ramos:
>
>> I´m a webfaction long time user and from another post here i got worried 
>> about the godaddy acquisition.Eventually webfaction may die in a short term 
>> period.
>>
>> Can you recommend a good alternative? 
>> Can you share your experience?
>>
>> Opalstack
>> pythonanywhere
>>
>> others ?
>>
>> regards
>> António
>>
>

-- 
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/f6ca004f-3e88-485b-90f8-5b3251c447fdn%40googlegroups.com.


[web2py] Re: web2py hosting

2020-10-10 Thread 'Annet' via web2py-users
Hi Antonio,

I came across your post, and thought I'd share my experience with Opalstack.

I am a web developer not a server administrator, I hosted at Webfaction 
because their
support people were very patient and helpful. After joining forces with GD 
support no
longer stands out from the crowd.

Last week I signed up with Opalstack, https://www.opalstack.com/ and I am 
glad I did, 
great support and a simple but powerful control panel. One of the former WF 
support 
people wrote a web2py install script which got me up and running in no time.

Hope this was helpful,

Annet V.

Op vrijdag 22 mei 2020 om 09:45:12 UTC+2 schreef Ramos:

> I´m a webfaction long time user and from another post here i got worried 
> about the godaddy acquisition.Eventually webfaction may die in a short term 
> period.
>
> Can you recommend a good alternative? 
> Can you share your experience?
>
> Opalstack
> pythonanywhere
>
> others ?
>
> regards
> António
>

-- 
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/0b120377-0237-48cb-a6e1-0204a4c13735n%40googlegroups.com.


[web2py] Re: web2py crash - Pickle

2020-09-20 Thread Dave S


On Tuesday, September 15, 2020 at 5:20:23 PM UTC-7, clara wrote:
>
> Either running locally with rocket server or under Apache for every single 
> application (including admin), I am getting this error:
>
>   File "C:\web2py\gluon\main.py", line 433, in wsgibase
> session.connect(request, response)
>   File "C:\web2py\gluon\globals.py", line 1001, in connect
> session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
>   File "C:\web2py\gluon\storage.py", line 52, in 
> __getnewargs__ = lambda self: getattr(dict,self).__getnewargs__(self)
> TypeError: getattr(): attribute name must be string
>
> I deleted the sessions and cookies. 
>
> I read the thread on this but didn't find a solution.
>
> I am using Python 3.7.3
> Web2py: Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
> OS: Windows 10 
>
> Any help will be really appreciated. I need to get the server back up.
>
> Thanks,
>
> Clara
>


I'm afraid I don't have an answer for you.  Sessions and cookies are the 
obvious thing to clear first.  Since you have a nice ticket output, you 
probably don't have issues with old tickets from a previous ticket format 
(which predates the changes to support Python 3).

If you've been running for a while on the versions you listed, then this 
gets more mysterious.  However, there are some objects that can't be 
pickled, and perhaps a recent application code change tried to pickle such 
an object.

Otherwise, I would look for code that wasn't properly updated for Python 3 
(and from what I've read here, there have been some moving targets within 
the Python3 code base itself).

/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/b952539d-cc64-475c-83e1-6298a7879304o%40googlegroups.com.


Re: [web2py] Re: web2py online debugger under python3

2020-07-16 Thread AGRogers
Hi Seth

I have no idea sorry. I would like to know the answer to this question
though.

Andrew

On Fri, 17 Jul 2020, 7:28 am Seth J,  wrote:

> So, what would you recommend for "remote debugging" situation?  I have
> web2py running on internal firewalled Windows 2016 Server and have been
> struggling to adopt anything for debugging purposes.
>
> On Tuesday, May 5, 2020 at 9:11:00 PM UTC-4 roge...@gmail.com wrote:
>
>> Hi Clemens
>>
>> I think a standalone debugger is much better. The online debugger could
>> be great to debug applications in production  though.
>>
>> Where are you doing your development? On your local machine or Python
>> Anywhere or somewhere else?  I don't think it's possible to debug using
>> Visual Studio Code or PyCharm if web2py is not running on your local
>> machine. The debugger needs to connect to the python process.
>>
>> Anyhow, it's not hard to do once you know where to look. I managed to get
>> PyCharm debugging in about 15 minutes - most of that was spent downloading
>> the app for the first time.
>>
>> Cheers
>> Andrew
>>
>> On Wed, 6 May 2020 at 07:04, Clemens 
>> wrote:
>>
>>> Hi Andrew,
>>>
>>> well, I would say, it's because I ever used it and it's okay for me. But
>>> which one would you recommend? And how to connect your favorite debugger
>>> with web2py? Never used another debugger for web2py.
>>>
>>> Regards
>>> Clemens
>>>
>>>
>>> On Tuesday, May 5, 2020 at 1:56:25 AM UTC+2, AGRogers wrote:

 Hi Clemens

 I definitely can't help you with this problem. Sorry. But I am
 interested in why you use the online debugger and not something else?

 Thanks
 Andrew

 On Mon, 4 May 2020 at 23:50, Clemens 
 wrote:

> Hello Massimo,
>
> I hoped the latest web2py version would fix the problem. My current
> configuration is now:
> web2py version 2.20.4-stable+timestamp.2020.05.03.05.18.50, Running on
> Rocket 1.2.6, Python 3.6.9, Ubuntu 18.04., Firefox 75.0 (64-bit)
>
> But the online debugger still doesn't work. The debugger doesn't catch
> the breakpoint, set in my code. Instead, after waiting a few minutes I got
> the following new situation:
>
> [image: Screenshot_2020-05-04 interact.png]
>
> [image: Screenshot_2020-05-04 interact-02.png]
> Do you have any idea, how I can fix this?
>
> Best regards
> Clemens
>
>
> On Sunday, April 26, 2020 at 8:46:00 AM UTC+2, Massimo Di Pierro wrote:
>>
>> what browser?
>>
>> On Monday, 30 March 2020 13:23:57 UTC-7, Clemens wrote:
>>>
>>> Hello everybody!
>>>
>>> I've switched my web2py app from python2 to python3. The app itself
>>> works fine, but the web2py online debugger doesn't work anymore and is
>>> mostly freezing. Sometimes a get the following error message:
>>>
>>> Exception timeout: timeout('timed out',)
>>>
>>> Traceback (most recent call last): File
>>> "/usr/lib/python3.6/socket.py", line 586, in readinto return
>>> self._sock.recv_into(b) socket.timeout: timed out
>>>
>>> My configuration is as follows:
>>>
>>> web2py 2.19.1-stable+timestamp.2020.03.21.21.49.28 (Running on
>>> Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS
>>>
>>> What do I have to change additionally that the online debugger is
>>> working under python3?
>>>
>>>
>>> Thanks a lot for any support!
>>>
>>>
>>> Best regards Clemens
>>>
>> --
> 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/ccc32a55-4a15-4f88-9b0f-69326542b6f0%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+un...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/web2py/73792fd3-310e-43e6-89d6-5f615e12546d%40googlegroups.com
>>> 
>>> .
>>>
>> --

Re: [web2py] Re: web2py online debugger under python3

2020-07-16 Thread Seth J
So, what would you recommend for "remote debugging" situation?  I have 
web2py running on internal firewalled Windows 2016 Server and have been 
struggling to adopt anything for debugging purposes.

On Tuesday, May 5, 2020 at 9:11:00 PM UTC-4 roge...@gmail.com wrote:

> Hi Clemens
>
> I think a standalone debugger is much better. The online debugger could be 
> great to debug applications in production  though.
>
> Where are you doing your development? On your local machine or Python 
> Anywhere or somewhere else?  I don't think it's possible to debug using 
> Visual Studio Code or PyCharm if web2py is not running on your local 
> machine. The debugger needs to connect to the python process. 
>
> Anyhow, it's not hard to do once you know where to look. I managed to get 
> PyCharm debugging in about 15 minutes - most of that was spent downloading 
> the app for the first time.
>
> Cheers
> Andrew
>
> On Wed, 6 May 2020 at 07:04, Clemens  wrote:
>
>> Hi Andrew,
>>
>> well, I would say, it's because I ever used it and it's okay for me. But 
>> which one would you recommend? And how to connect your favorite debugger 
>> with web2py? Never used another debugger for web2py.
>>
>> Regards
>> Clemens
>>
>>
>> On Tuesday, May 5, 2020 at 1:56:25 AM UTC+2, AGRogers wrote:
>>>
>>> Hi Clemens
>>>
>>> I definitely can't help you with this problem. Sorry. But I am 
>>> interested in why you use the online debugger and not something else?
>>>
>>> Thanks
>>> Andrew
>>>
>>> On Mon, 4 May 2020 at 23:50, Clemens  
>>> wrote:
>>>
 Hello Massimo,

 I hoped the latest web2py version would fix the problem. My current 
 configuration is now:
 web2py version 2.20.4-stable+timestamp.2020.05.03.05.18.50, Running on 
 Rocket 1.2.6, Python 3.6.9, Ubuntu 18.04., Firefox 75.0 (64-bit)

 But the online debugger still doesn't work. The debugger doesn't catch 
 the breakpoint, set in my code. Instead, after waiting a few minutes I got 
 the following new situation:

 [image: Screenshot_2020-05-04 interact.png]

 [image: Screenshot_2020-05-04 interact-02.png]
 Do you have any idea, how I can fix this?

 Best regards
 Clemens


 On Sunday, April 26, 2020 at 8:46:00 AM UTC+2, Massimo Di Pierro wrote:
>
> what browser?
>
> On Monday, 30 March 2020 13:23:57 UTC-7, Clemens wrote:
>>
>> Hello everybody!
>>
>> I've switched my web2py app from python2 to python3. The app itself 
>> works fine, but the web2py online debugger doesn't work anymore and is 
>> mostly freezing. Sometimes a get the following error message:
>>
>> Exception timeout: timeout('timed out',)
>>
>> Traceback (most recent call last): File 
>> "/usr/lib/python3.6/socket.py", line 586, in readinto return 
>> self._sock.recv_into(b) socket.timeout: timed out
>>
>> My configuration is as follows:
>>
>> web2py 2.19.1-stable+timestamp.2020.03.21.21.49.28 (Running on Rocket 
>> 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS
>>
>> What do I have to change additionally that the online debugger is 
>> working under python3?
>>
>>
>> Thanks a lot for any support!
>>
>>
>> Best regards Clemens
>>
> -- 
 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/ccc32a55-4a15-4f88-9b0f-69326542b6f0%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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/73792fd3-310e-43e6-89d6-5f615e12546d%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 

[web2py] Re: Web2py + Nginx - Logging

2020-07-02 Thread icodk
 I have a system running  Web2py + Nginx + ubuntu  (installed with provided 
ubuntu script)   and all print statements are logged to the uwsgi log at  
/var/log/uwsgi


On Thursday, July 2, 2020 at 7:19:21 AM UTC+2 snide...@gmail.com wrote:

>
>
> On Wednesday, July 1, 2020 at 2:51:32 PM UTC-7, Luciano Bovio wrote:
>>
>> Is it possible to log web2py output messages  to a file when running 
>> web2py+nginx+uwsgi (installed with provided ubuntu script) ?
>>
>> I need to view the messages that i see in console when running rocket 
>> server.
>>
>> Thanks
>>
>
>
> The built-in logging works pretty good.  Replace your print statements 
> with logger.debug() or logger.error() ...The same formatted string you fed 
> print works for the argument of logger.debug.   Log files are in 
> web2py/logs, and there's an autorotate feature to prevent logs from takng 
> over your server.
>
> http://web2py.com/books/default/chapter/29/04/the-core#Logging>
>
> (I'm running nginx+uwsgi on AWS linux)
>
> /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/80a89819-2336-4757-8134-d8b67e284bd8n%40googlegroups.com.


[web2py] Re: Web2py + Nginx - Logging

2020-07-01 Thread Dave S


On Wednesday, July 1, 2020 at 2:51:32 PM UTC-7, Luciano Bovio wrote:
>
> Is it possible to log web2py output messages  to a file when running 
> web2py+nginx+uwsgi (installed with provided ubuntu script) ?
>
> I need to view the messages that i see in console when running rocket 
> server.
>
> Thanks
>


The built-in logging works pretty good.  Replace your print statements with 
logger.debug() or logger.error() ...The same formatted string you fed print 
works for the argument of logger.debug.   Log files are in web2py/logs, and 
there's an autorotate feature to prevent logs from takng over your server.

http://web2py.com/books/default/chapter/29/04/the-core#Logging>

(I'm running nginx+uwsgi on AWS linux)

/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/97d280e2-37a1-4261-816a-77617878a885o%40googlegroups.com.


  1   2   3   4   5   6   7   8   9   10   >