This is intended to be used for the backports ACL to allow all buildd
keys to upload.
import sys
from daklib.config import Config
-from daklib.dbconn import DBConn, Fingerprint, Uid, ACL
+from daklib.dbconn import DBConn, Fingerprint, Keyring, Uid, ACL
def usage():
print """Usage:
uid:<uid>
name:<name>
fpr:<fingerprint>
+ keyring:<keyring-name>
@type entry: string
@param entry: ACL entry
q = q.join(Fingerprint.uid).filter(Uid.name == value)
elif field == 'fpr':
q = q.filter(Fingerprint.fingerprint == value)
+ elif field == 'keyring':
+ q = q.join(Fingerprint.keyring).filter(Keyring.keyring_name == value)
return q.all()