Important! web2py forzen and master py3 only

120 views
Skip to first unread message

Massimo Di Pierro

unread,
Oct 18, 2024, 6:52:04 AM10/18/24
to web2py-users
Hello everybody.

As announced some time ago web2py for python 2 will be frozen to version 2.27.1.

The latest master has been 100% ported to python3.11 and there is no more python2 code. It uses the latest yatl, latest pydal, latest pymysql.

Many bugs have been fixed in the process and some have been added. soap is broken and scheduler is broken.

My plan for the next few days:
- fix scheduler
- fix soap
- port to latest rocket3
- make pydal work on latest GAE

When these issues are addressed a web2py 3.0 will be published. very soon.

I could very much use your help in testing that the latest master works with your existing applications.

I remain of the opinion that you are all better off moving from web2py to py4web which is 10x faster, simpler, more stable, and uses same pydal and templates. In any case the intention is to provide a way to continue run legacy apps but moving on to Python 3.11.


Massimo



xgp.l...@gmail.com

unread,
Oct 29, 2024, 12:01:26 PM10/29/24
to web2py-users
Hi Massimo,

Downloaded 2.27.1 yesterday
Using python 3.9 and python 3.11

Adding elementos to dict:

linea[ "pqrs_id" ] = guardado_id,
linea[ "referencia_id" ] = item["referencia_id"],
linea[ "talla" ] = item["referencia_id"],
linea[ "color_id" ] = item["color_id"],
linea[ "cantidad" ] = item["cantidad"],
linea[ "criterio_id" ] = item["criterio_id"],
linea[ "estado_id" ] = 1,

How the line is created:
print( linea )
{'pqrs_id': (43,), 'referencia_id': ('1',), 'talla': ('198',), 'color_id': ('AGG',), 'cantidad': ('1',), 'criterio_id': ('6',), 'estado_id': (1,)}


Seems like adding a list to each of the fields.


Regards,

Massimiliano

unread,
Oct 29, 2024, 2:01:46 PM10/29/24
to web...@googlegroups.com
Try 

print(guardado_id, )

What you see? 

Massimiliano


--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are 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 visit https://groups.google.com/d/msgid/web2py/6a6c873c-a2b3-499c-90ff-87355bdbbe31n%40googlegroups.com.

xgp.l...@gmail.com

unread,
Oct 29, 2024, 2:19:42 PM10/29/24
to web2py-users
Hi Massimo,

print(guardado_id, )
44
print( item["referencia_id"] )
198

print( linea )
{'pqrs_id': (44,), 'referencia_id': ('1',), 'talla': ('198',), 'color_id': ('AGG',), 'cantidad': ('1',), 'criterio_id': ('6',), 'estado_id': (1,)}


Regards,

Massimiliano

unread,
Oct 29, 2024, 2:22:24 PM10/29/24
to web...@googlegroups.com
Remove the comma at the end of the lines 

Massimiliano


xgp.l...@gmail.com

unread,
Oct 29, 2024, 2:32:02 PM10/29/24
to web2py-users
Hi Massimo,

Silly mistake.


Thanks for your help,
Reply all
Reply to author
Forward
0 new messages