projects
/
photoprint.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58f05a
)
Ajout du minimum pour que zope démarre sans paypal installé.
author
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 16 Oct 2013 08:12:15 +0000
(10:12 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 16 Oct 2013 08:12:15 +0000
(10:12 +0200)
order.py
patch
|
blob
|
history
diff --git
a/order.py
b/order.py
index
ea48483
..
66d17fa
100755
(executable)
--- a/
order.py
+++ b/
order.py
@@
-45,7
+45,11
@@
from price import Price
from xml.dom.minidom import Document
from tool import COPIES_COUNTERS
from App.config import getConfiguration
-from paypal.interface import PayPalInterface
+try :
+ from paypal.interface import PayPalInterface
+ paypalAvailable = True
+except ImportError :
+ paypalAvailable = False
from logging import getLogger
console = getLogger('Products.photoprint.order')