server/repository.py
changeset 5736 375819ec7d43
parent 5726 c3b99606644d
parent 5711 ea2538a3c622
child 5752 b0bb553e3be4
equal deleted inserted replaced
5728:12d3da7b3bcf 5736:375819ec7d43
    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):