py4web virtual fields not included when rows retrieved
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the documented db(db.item).select() virtual-field example in py4web and confirm that row.total_price is absent. Compare the behavior with web2py and pyDAL, as described in the issue. Done means selected rows include computed virtual fields consistently with the documented behavior.
Written by the indexing model from the issue text.
Description
The documentation says:
A virtual field defined as the one above is automatically computed for all records when the records are selected:
for row in db(db.item).select():
print(row.total_price)
However, this is not happening. Virtual fields are not included in the selected rows. Works as documented in web2py, which is curious as both use pyDAL.
see https://groups.google.com/g/py4web/c/vHvUoXW4fh8/m/-Omdzbi0CQAJ
- Dominant language
- HTML
- Stars
- 319
- Forks
- 144
- Avg merge
- 6d 20h
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from web2py/py4web
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenLiberty/open-liberty#35839 ·
-
affects-9.0 found-by-ai may-affects-25.10 may-affects-26.3 may-affects-26.9 may-affects-7.5 may-affects-8.1 may-affects-8.5 severity/major sig/execution type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
antlr/grammars-v4#5014 · 1 comment ·