예제 #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
예제 #2
0
파일: check_views.py 프로젝트: hforge/shop
 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/>')))
예제 #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/>')))
예제 #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'))
예제 #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'))