Changes between Version 1 and Version 2 of Ticket #29799, comment 6
- Timestamp:
- Apr 8, 2022, 11:15:13 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29799, comment 6
v1 v2 6 6 Description of the functions would be as follows 7 7 8 - get_lookups( )8 - get_lookups(selforclass) 9 9 - when called by a field instance, returns all class and instance lookups currently registered for that field instance 10 10 - when called by a class, returns all class lookups currently registered for that class 11 11 12 - register_lookup 12 - register_lookup(selforclass, lookup, lookup_name) 13 13 - when called by a field instance, registers the lookup for that field instance 14 14 - when called by a class, registers the lookup for that class 15 15 16 - unregister_lookup 16 - unregister_lookup(selforclass, lookup_name) 17 17 1. when called by a field instance, 18 18 - if the lookup is already registered with the instance, it gets removed, … … 22 22 23 23 Doubts: 24 1. Should class lookups that are unregistered for an instance be re-registered using the register_lookup methoditself?24 1. Should class lookups that are unregistered for an instance be re-registered using register_lookup() itself? 25 25 2. Should there be a method to specifically get lookups that were registered for the instance and not the class?