Opened 7 years ago
Last modified 7 years ago
#29382 closed Uncategorized
don't call objects with __call__ instantly — at Version 1
Reported by: | alex | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.11 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Some objects have \call\ defined but have sub-attributes.
In my case the wtforms Label object.
I cannot access Label.text because Label is callable and the resulting str object has not the attribute text.
Please evaluate first the object fully and then check if \call\ is available. Elsewise the behaviour is inconsistent and confusing.
Note:
See TracTickets
for help on using tickets.