def __setattr__(self, name, value):
     if (name == 'short_biography' or name == 'long_biography'
             or name == 'speaking_experience'
             or name == 'sponsorship_required'):
         super().__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super().__setattr__(name, value)
Beispiel #2
0
 def __setattr__(self, name, value):
     if (name == 'owner_description' or name == 'description'
             or name == 'code_of_conduct'):
         super(Event, self).__setattr__(name,
                                        clean_html(clean_up_string(value)))
     else:
         super(Event, self).__setattr__(name, value)
Beispiel #3
0
 def __setattr__(self, name, value):
     allow_link = name == 'description' or 'owner_description' or 'after_order_message'
     if (name == 'owner_description' or name == 'description'
             or name == 'code_of_conduct' or name == 'after_order_message'):
         super().__setattr__(
             name, clean_html(clean_up_string(value),
                              allow_link=allow_link))
     else:
         super().__setattr__(name, value)
Beispiel #4
0
 def __setattr__(self, name, value):
     if name == 'description':
         super(Sponsor,
               self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(Sponsor, self).__setattr__(name, value)
Beispiel #5
0
 def __setattr__(self, name, value):
     if name == 'details':
         super().__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super().__setattr__(name, value)
Beispiel #6
0
 def __setattr__(self, name, value):
     if name == 'short_abstract' or name == 'long_abstract' or name == 'comments':
         super().__setattr__(name, clean_html(clean_up_string(value), allow_link=True))
     else:
         super().__setattr__(name, value)
Beispiel #7
0
 def __setattr__(self, name, value):
     if name == 'description':
         super(Sponsor, self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(Sponsor, self).__setattr__(name, value)
 def __setattr__(self, name, value):
     if name == 'details':
         super(User, self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(User, self).__setattr__(name, value)
Beispiel #9
0
 def __setattr__(self, name, value):
     if name == 'short_abstract' or name == 'long_abstract' or name == 'comments':
         super(Session,
               self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(Session, self).__setattr__(name, value)
 def __setattr__(self, name, value):
     if name == 'organizer_description' or name == 'description' or name == 'code_of_conduct':
         super(Event, self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(Event, self).__setattr__(name, value)
 def __setattr__(self, name, value):
     if name == 'short_biography' or name == 'long_biography' or name == 'speaking_experience' or name == 'sponsorship_required':
         super(Speaker, self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(Speaker, self).__setattr__(name, value)
 def __setattr__(self, name, value):
     if name == 'short_abstract' or name == 'long_abstract' or name == 'comments':
         super(Session, self).__setattr__(name, clean_html(clean_up_string(value)))
     else:
         super(Session, self).__setattr__(name, value)
Beispiel #13
0
 def validate_fields(self, data):
     if not data:
         return
     data['message'] = clean_html(data.get('message'), allow_link=True)