PublicaMundi / ckanext-publicamundi

PublicaMundi main CKAN extension
http://publicamundi.eu
Other
13 stars 12 forks source link

Maybe invoke formatters on bound fields (on dictization) #204

Closed drmalex07 closed 8 years ago

drmalex07 commented 8 years ago

On dictization, when formatting takes place, all formatters are based (adapted) on the original (unbound) field. Thus, they miss the key context .

Unfortunately, for this to change, the basic field-level method for Object.Dictizer has to change significantly. We want something like:

- def _dictize_field(self, f, field, max_depth)
+ def _dictize_field(self, k, f, field, max_depth)