'Form processor'

def save(self):

    try:
        ModuleSetting.set_for_module('default_contact_type', self.cleaned_data['default_contact_type'].id, 'treeio.messaging')
    except:
        pass
    try:
        ModuleSetting.set_for_module('default_imap_folder', self.cleaned_data['default_imap_folder'], 'treeio.messaging')
    except:
        pass
    try:
        ModuleSetting.set_for_module('signature', self.cleaned_data['signature'], 'treeio.messaging', user=self.user)
    except:
        pass
