Opened 6 years ago

Last modified 6 years ago

#29382 closed Uncategorized

don't call objects with __call__ instantly — at Version 2

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 alex)

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.

Change History (2)

comment:1 by alex, 6 years ago

Description: modified (diff)

comment:2 by alex, 6 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top