示例#1
0
文件: group.py 项目: petrushev/ckan
 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
示例#2
0
文件: group.py 项目: petrushev/ckan
    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