I am upgrading web2py 2.14.6 running on python 2.7 to latest web2py
2.22.5. May I know which python 3 version should i go with? Can I use
python 3.10?
Thank You
- Gaurav
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
In controllers/default.py, inside *user* function set *readable* and
*writable* to *False* for the fields that you want to hide.
def user():
*db.auth_user.field_name.readable = False
db.auth_user.field_name.writable = False*
return dict(form=auth())
On Wednesday, June 8, 2022 at 2:0
I use python 3:10.Nothing much apart from e.g. print being a function.
On Thu, Jun 9, 2022, 11:47 AM Gaurav Vichare
wrote:
> I am upgrading web2py 2.14.6 running on python 2.7 to latest web2py
> 2.22.5. May I know which python 3 version should i go with? Can I use
> python 3.10?
>
> Thank You
>
Thank you, Jim, I was aware of this parameter, but I wasn't sure where
exactly to set it. But just got the answer. Thank you very much.
On Wednesday, June 8, 2022 at 11:01:24 AM UTC-4 Jim S wrote:
> Can you just set readable and writable to False?
>
> -Jim
>
>
> On Tuesday, June 7, 2022 at 3:32
Got it, thank you very much!
On Thursday, June 9, 2022 at 4:54:26 AM UTC-4 gauravv...@gmail.com wrote:
> In controllers/default.py, inside *user* function set *readable* and
> *writable* to *False* for the fields that you want to hide.
>
> def user():
>
> *db.auth_user.field_name.readable =
Please help - I can't figure it out!
My question is a bit detailed, but it's not about details - I am totally
missing how to properly handle this kind of thing:
I have the following query:
query = (db.ladore_order.created_on>=dt1) &
(db.ladore_order.created_on<=dt2)
rows = db(query).select(db
6 matches
Mail list logo