def _update_authz(self, fs): validation = fs.validate() if not validation: c.form = self._render_edit_form(fs) raise ValidationException(fs) try: fs.sync() except Exception, inst: model.Session.rollback() raise
def _update(self, fs, group_name, group_id): ''' Writes the POST data (associated with a group edit) to the database @input c.error ''' validation = fs.validate() if not validation: c.form = self._render_edit_form(fs) raise ValidationException(fs) try: fs.sync() except Exception, inst: model.Session.rollback() raise