07819e8b928a6a0db2bd111e955e2e2f8874395c
1 # -*- coding: utf-8 -*-
2 ############################################################
3 # Copyright © 2009 Benoît PIN <pinbe@luxia.fr> #
4 # Cliché - http://luxia.fr #
6 # This program is free software; you can redistribute it #
7 # and/or modify it under the terms of the Creative Commons #
8 # "Attribution-Noncommercial 2.0 Generic" #
9 # http://creativecommons.org/licenses/by-nc/2.0/ #
10 ############################################################
12 Printable objects interfaces
18 from zope
.interface
import Interface
, Attribute
20 class IPrintingSupport(Interface
) :
22 Used to describe physical printing support
25 title
= Attribute("Support title")
26 description
= Attribute("support description - HTML format")
27 manufacturer
= Attribute("Manufacturer name")
28 surfaceWeight
= Attribute("Surface weight. SI unit (kg/m**2)")
29 category
= Attribute("Category of support (glossy, mate...)")
30 availableSize
= Attribute("Paper sheet or roll paper available for this support")
33 class IPrintableSheet(Interface
) :
35 Printable sheet description
38 width
= Attribute("Physical support width")
39 height
= Attribute("Physical support height")
40 formatName
= Attribute("Format name if exists")
41 deviceMargins
= Attribute("Mapping of margins indexed by device model.")
43 sizeUnits
= Attribute("Measurement units for all sizing attributes")
45 price
= Attribute("Public price of the printed sheet")
46 manufacturerReference
= Attribute("Manufacturer reference")
49 class IPrintableRoll(Interface
):
51 Printable roll description
53 width
= Attribute("Roll width")
54 maxLength
= Attribute("Roll length")
55 formatName
= Attribute("Format name if exists")
56 deviceMargins
= Attribute("Mapping of margins (top and bottom) indexed by device model.")
58 sizeUnits
= Attribute("Measurement units for all sizing attributes")
60 pricePerLength
= Attribute("Public price of the printed support per length unit (ie. €/m)")
61 manufacturerReference
= Attribute("Manufacturer reference")
63 class IPrintOrderTemplate(Interface
):
65 predefined print order, suggested by the seller.
68 title
= Attribute("order name")
69 description
= Attribute("order description")
71 price
= Attribute("Public price of the order")
73 class IPrintOrder(Interface
) :
75 the general purpose print order