Maybe implementing a CAS server for py4web... But I am not sure right now
what will be the recommended way for implementing
modules/components/plugins in py4web...
El vie., 3 de enero de 2020 4:56 p. m., Jim S
escribió:
> Hi
>
> I have a large web2py application that I want to start migrating
Val K, thank you now I use list wich contain dicts without json and all
work.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message
Finally, the session is saved on disk or in db or in cookies between requests,
web2py uses pickle to do that, so all that you store in the session must be
pickable. In your case it is enough to trasform your class object into dict,
you don't need to convert it into json
--
Resources:
-
Val K, yes I want transfer class objects in list like variable at first.
Then I tried save that variable in session, but it was unsuccess too. And
now I serialised all objects in list like that
json.dumps(my_object.__dict__) append all of them in list and save in
session.
вс, 5 янв. 2020 г.,
You want to keep python object in memory between requests? - it is bad idea.
You should transform it to something that can be saved on disk or in db and
recreate it in each request
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
5 matches
Mail list logo