corrections pour paypal et mise en place de l'impression
darcs-hash:20061006190234-f46e9-115dab8e0a8c62e5c0ae08d3a1efd1a73769fa65.gz
This commit is contained in:
parent
28a524ffc9
commit
7d4c2f9e68
3 changed files with 117 additions and 16 deletions
|
@ -7,10 +7,10 @@ sys.path.append('/usr/scripts/gestion/')
|
|||
from config_mail import MailConfig
|
||||
if (cherrypy.config.configMap["global"]["server.environment"] == "development"):
|
||||
from ldap_crans_test import *
|
||||
print("monCompte : unsing test ldap : env=" + cherrypy.config.configMap["global"]["server.environment"])
|
||||
# print("monCompte : unsing test ldap : env=" + cherrypy.config.configMap["global"]["server.environment"])
|
||||
else:
|
||||
from ldap_crans import *
|
||||
print("monCompte : unsing prod ldap : env=" + cherrypy.config.configMap["global"]["server.environment"])
|
||||
# print("monCompte : unsing prod ldap : env=" + cherrypy.config.configMap["global"]["server.environment"])
|
||||
|
||||
|
||||
|
||||
|
@ -221,7 +221,8 @@ class monCompte:
|
|||
return {
|
||||
'template' :'MonCompteRechargePaypal4',
|
||||
'standalone' :True,
|
||||
'values' :{'lienPaypal' : f.urlPaypal()},
|
||||
'values' :{'lienPaypal' : f.urlPaypal(useSandbox = cherrypy.config.get("paypal.useSandbox", False),
|
||||
businessMail = cherrypy.config.get("paypal.businessAdress", "paypal@crans.org"))},
|
||||
}
|
||||
rechargerCompteImpression.exposed = True
|
||||
|
||||
|
@ -394,7 +395,7 @@ class monCompte:
|
|||
del m
|
||||
except ValueError, e:
|
||||
del m
|
||||
return {'error':e.args[0]}
|
||||
return {'error':e.args[0].replace("\n","\\n")}
|
||||
return {'message':u"Machine enregistrée avec succès"}
|
||||
creerMachine.exposed = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue