web/formfields.py
branchstable
changeset 8238 087bb529035c
parent 7990 a673d1d9a738
child 8248 9550555e4c26
equal deleted inserted replaced
8235:c2a91d6639d8 8238:087bb529035c
   616 
   616 
   617     def get_format_field(self, form):
   617     def get_format_field(self, form):
   618         if self.format_field:
   618         if self.format_field:
   619             return self.format_field
   619             return self.format_field
   620         # we have to cache generated field since it's use as key in the
   620         # we have to cache generated field since it's use as key in the
   621         # context dictionnary
   621         # context dictionary
   622         req = form._cw
   622         req = form._cw
   623         try:
   623         try:
   624             return req.data[self]
   624             return req.data[self]
   625         except KeyError:
   625         except KeyError:
   626             fkwargs = {'eidparam': self.eidparam, 'role': self.role}
   626             fkwargs = {'eidparam': self.eidparam, 'role': self.role}