Пример #1
0
    def delete(cls, scientist_id):
        scientist = yield Scientist.get_by_id(scientist_id)

        try:
            print 'deleting from postgres'
            yield Scientist.delete(scientist_id, tbl=globals.TABLE_ROLES)
        except PSQLException, ex:
            raise ex