Exemple #1
0
 def get_namespace(self, resource, context):
     namespace = PaymentWay_EndView.get_namespace(self, resource, context)
     erreur = context.query['NUMERR']
     if erreur:
         # Send mail
         root = context.root
         server = context.server
         from_addr = server.smtp_from
         subject = u'Paybox problem'
         body = 'Paybox error: %s' % PayboxCGIErrors.get_value(erreur)
         root.send_email(from_addr, subject, from_addr, body)
     state = PBXState.get_value(context.query['state'])
     namespace['state'] = state.gettext()
     return namespace
Exemple #2
0
 def get_namespace(self, resource, context):
     address = resource.get_property('address').encode('utf-8')
     return merge_dicts(
         PaymentWay_EndView.get_namespace(self, resource, context),
         to=resource.get_property('to'),
         address=XMLParser(address.replace('\n', '<br/>')))
Exemple #3
0
 def get_namespace(self, resource, context):
     address = resource.get_property('address').encode('utf-8')
     return merge_dicts(PaymentWay_EndView.get_namespace(
         self, resource, context),
                        to=resource.get_property('to'),
                        address=XMLParser(address.replace('\n', '<br/>')))
Exemple #4
0
 def get_namespace(self, resource, context):
     return merge_dicts(
         PaymentWay_EndView.get_namespace(self, resource, context),
         RIB=resource.get_property('RIB'),
         IBAN=resource.get_property('IBAN'))
Exemple #5
0
 def get_namespace(self, resource, context):
     return merge_dicts(PaymentWay_EndView.get_namespace(
         self, resource, context),
                        RIB=resource.get_property('RIB'),
                        IBAN=resource.get_property('IBAN'))