/
bidsheets.py
29 lines (17 loc) · 890 Bytes
/
bidsheets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /usr/bin/env python
from django.conf import settings
from models import Piece
preprint = __import__(settings.ARTSHOW_PREPRINT_MODULE, globals(), locals(),
['bid_sheets', 'control_forms', 'piece_stickers', 'mailing_labels'])
def generate_bidsheets_for_artists(output, artists):
pieces = Piece.objects.filter(artist__in=artists).order_by('artist__artistid', 'pieceid')
preprint.bid_sheets(pieces, output)
def generate_bidsheets(output, pieces):
preprint.bid_sheets(pieces, output)
def generate_mailing_labels(output, artists):
preprint.mailing_labels(artists, output)
def generate_control_forms(output, artists):
pieces = Piece.objects.filter(artist__in=artists).order_by('artist__artistid', 'pieceid')
preprint.control_forms(pieces, output)
def generate_piece_stickers(output, pieces):
preprint.piece_stickers(pieces, output)