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
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/>')))
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/>')))
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'))
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'))