from AccessControl.requestmethod import postonly
from zope.interface import implements
from zope.component.factory import Factory
from AccessControl.requestmethod import postonly
from zope.interface import implements
from zope.component.factory import Factory
from OFS.SimpleItem import SimpleItem
from ZTUtils import make_query
from DateTime import DateTime
from OFS.SimpleItem import SimpleItem
from ZTUtils import make_query
from DateTime import DateTime
from interfaces import IPrintOrderTemplate, IPrintOrder
from permissions import ManagePrintOrderTemplate, ManagePrintOrders
from price import Price
from interfaces import IPrintOrderTemplate, IPrintOrder
from permissions import ManagePrintOrderTemplate, ManagePrintOrders
from price import Price
from xml.dom.minidom import Document
from tool import COPIES_COUNTERS
from App.config import getConfiguration
from xml.dom.minidom import Document
from tool import COPIES_COUNTERS
from App.config import getConfiguration
self.billing = PersistentMapping()
self.shipping = PersistentMapping()
self.shippingFees = Price(0,0)
self.billing = PersistentMapping()
self.shipping = PersistentMapping()
self.shippingFees = Price(0,0)
ppi = self._initPayPalInterface()
response = ppi.set_express_checkout(**options)
response = PrintOrder.recordifyPPResp(response)
ppi = self._initPayPalInterface()
response = ppi.set_express_checkout(**options)
response = PrintOrder.recordifyPPResp(response)
ppi = self._initPayPalInterface()
response = ppi.get_express_checkout_details(TOKEN=token)
response = PrintOrder.recordifyPPResp(response)
ppi = self._initPayPalInterface()
response = ppi.get_express_checkout_details(TOKEN=token)
response = PrintOrder.recordifyPPResp(response)