コード例 #1
0
ファイル: paybox_views.py プロジェクト: nicolasderam/shop
 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
ファイル: check_views.py プロジェクト: nicolasderam/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/>')))
コード例 #4
0
ファイル: transfer_views.py プロジェクト: hforge/shop
 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'))