server/repository.py
branchstable
changeset 5711 ea2538a3c622
parent 5641 4c1d0e80a376
child 5736 375819ec7d43
child 5747 d6ac0cd30fde
equal deleted inserted replaced
5710:1c17e47df974 5711:ea2538a3c622
    90                 session.execute('DELETE X %s Y WHERE X eid %%(x)s, '
    90                 session.execute('DELETE X %s Y WHERE X eid %%(x)s, '
    91                                 'NOT Y eid %%(y)s' % rtype,
    91                                 'NOT Y eid %%(y)s' % rtype,
    92                                 {'x': eidfrom, 'y': eidto})
    92                                 {'x': eidfrom, 'y': eidto})
    93     if card[1] in '1?':
    93     if card[1] in '1?':
    94         with security_enabled(session, read=False):
    94         with security_enabled(session, read=False):
    95             session.execute('DELETE X %sY WHERE Y eid %%(y)s, '
    95             session.execute('DELETE X %s Y WHERE Y eid %%(y)s, '
    96                             'NOT X eid %%(x)s' % rtype,
    96                             'NOT X eid %%(x)s' % rtype,
    97                             {'x': eidfrom, 'y': eidto})
    97                             {'x': eidfrom, 'y': eidto})
    98 
    98 
    99 
    99 
   100 class Repository(object):
   100 class Repository(object):