コード例 #1
0
 def updateFields(self):
     super(BaseReplyForm,
           self).updateFields()  # skipping BaseReplyForm itself
     manage_email_fields(self, 'add')
     manage_fields(self, 'omail_fields', 'edit')
     self.update_fields_irn()
     # Completing form values wasn't working anymore, but relations must be set here too !
     if self.uids:  # view is called a 2d time by MS. uids is empty. We don't want to change request form values
         form = self.request.form
         if "form.widgets.reply_to" not in form:
             form["form.widgets.reply_to"] = tuple(
                 [b.getPath() for b in self.brains])
         if "form.widgets.recipients" not in form:
             sender_uids = set([
                 sender for b in self.brains for sender in b.sender_index
                 if not sender.startswith('l:')
             ])
             form["form.widgets.recipients"] = [
                 b.getPath() for b in brains_from_uids(list(sender_uids))
             ]
     imio_dmsoutgoingmail_updatefields(self)
コード例 #2
0
 def updateFieldsFromSchemata(self):
     super(OMView, self).updateFieldsFromSchemata()
     manage_email_fields(self, 'view')
     manage_fields(self, 'omail_fields', 'view')
コード例 #3
0
 def updateFields(self):
     super(OMCustomAddForm, self).updateFields()
     manage_email_fields(self, 'add')
     manage_fields(self, 'omail_fields', 'edit')
     imio_dmsoutgoingmail_updatefields(self)
コード例 #4
0
 def updateFields(self):
     super(OMEdit, self).updateFields()
     manage_email_fields(self, 'edit')
     manage_fields(self, 'omail_fields', 'edit')
     imio_dmsoutgoingmail_updatefields(self)
コード例 #5
0
 def updateFields(self):
     super(CustomAddForm, self).updateFields()
     manage_fields(self, 'imail_fields', 'edit')
     imio_dmsincomingmail_updatefields(self)
コード例 #6
0
 def updateFields(self):
     super(IMEdit, self).updateFields()
     manage_fields(self, 'imail_fields', 'edit')
     imio_dmsincomingmail_updatefields(self)