def get_quota(trans, id):
 id = trans.security.decode_id(id)
 quota = trans.sa_session.query(trans.model.Quota).get(id)
 return quota

def get_quota ( trans , id ) : id = trans . security . decode_id ( id ) quota = trans . sa_session . query ( trans . model . Quota ) . get ( id ) return quota
get a quota from the database by id .