web/formfields.py
branchstable
changeset 2724 7966d87202d7
parent 2723 d38c2b01d766
child 2726 03e7a6efd960
equal deleted inserted replaced
2723:d38c2b01d766 2724:7966d87202d7
   246         # context dictionnary
   246         # context dictionnary
   247         req = form.req
   247         req = form.req
   248         try:
   248         try:
   249             return req.data[self]
   249             return req.data[self]
   250         except KeyError:
   250         except KeyError:
   251             fkwargs = {}
   251             fkwargs = {'eidparam': self.eidparam}
   252             if self.use_fckeditor(form):
   252             if self.use_fckeditor(form):
   253                 # if fckeditor is used and format field isn't explicitly
   253                 # if fckeditor is used and format field isn't explicitly
   254                 # deactivated, we want an hidden field for the format
   254                 # deactivated, we want an hidden field for the format
   255                 fkwargs['widget'] = HiddenInput()
   255                 fkwargs['widget'] = HiddenInput()
   256                 fkwargs['initial'] = 'text/html'
   256                 fkwargs['initial'] = 'text/html'