web/component.py
branchstable
changeset 7516 9989b69e2a19
parent 6987 d62d4ba5ef3e
child 7536 29961a416faa
equal deleted inserted replaced
7515:e1ba23fdcf2d 7516:9989b69e2a19
   408         w(u'<div id="%s"></div>' % holderid)
   408         w(u'<div id="%s"></div>' % holderid)
   409         params = self.cw_extra_kwargs.copy()
   409         params = self.cw_extra_kwargs.copy()
   410         params.pop('view', None)
   410         params.pop('view', None)
   411         params.pop('entity', None)
   411         params.pop('entity', None)
   412         form = params.pop('formparams', {})
   412         form = params.pop('formparams', {})
   413         form['pageid'] = self._cw.pageid
       
   414         if entity.has_eid():
   413         if entity.has_eid():
   415             eid = entity.eid
   414             eid = entity.eid
   416         else:
   415         else:
   417             eid = None
   416             eid = None
   418             form['etype'] = entity.__regid__
   417             form['etype'] = entity.__regid__