当前位置: 首页>>代码示例>>Python>>正文


Python Recipient.label方法代码示例

本文整理汇总了Python中weboob.capabilities.bank.Recipient.label方法的典型用法代码示例。如果您正苦于以下问题:Python Recipient.label方法的具体用法?Python Recipient.label怎么用?Python Recipient.label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在weboob.capabilities.bank.Recipient的用法示例。


在下文中一共展示了Recipient.label方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: get_recipients

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
    def get_recipients(self):
        # First, internals recipients
        table = self.document.xpath('//table[@id="transfer_form:receiptAccount"]')
        for tr in table[0].xpath('tbody/tr'):
            tds = tr.xpath('td')
            id = tds[0].xpath('input')[0].attrib['value']
            name = tds[0].xpath('label')[0].text
            name += u" " + tds[1].xpath('label')[0].text.replace('\n', '')
            name += u" " + tds[2].xpath('label')[0].text.replace('\n', '')
            recipient = Recipient()
            recipient.id = id
            recipient.label = name
            recipient._type = "int"
            yield recipient

        # Second, externals recipients
        select = self.document.xpath('//select[@id="transfer_form:externalAccounts"]')
        if len(select) > 0:
            recipients = select[0].xpath('option')
            recipients.pop(0)
            for option in recipients:
                recipient = Recipient()
                recipient.id = option.attrib['value']
                recipient.label = option.text
                recipient._type = "ext"
                yield recipient
开发者ID:lissyx,项目名称:weboob,代码行数:28,代码来源:transfer.py

示例2: copy_recipient_obj

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def copy_recipient_obj(self, recipient):
     rcpt = Recipient()
     rcpt.id = recipient.iban
     rcpt.iban = recipient.iban
     rcpt.label = recipient.label
     rcpt.category = 'Externe'
     rcpt.enabled_at = date.today()
     return rcpt
开发者ID:laurentb,项目名称:weboob,代码行数:10,代码来源:browser.py

示例3: copy_recipient_obj

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def copy_recipient_obj(self, recipient):
     rcpt = Recipient()
     rcpt.id = recipient.iban
     rcpt.iban = recipient.iban
     rcpt.label = recipient.label
     rcpt.category = 'EXTERNE'
     rcpt.enabled_at = date.today()
     rcpt.currency = 'EUR'
     return rcpt
开发者ID:P4ncake,项目名称:weboob,代码行数:11,代码来源:browser.py

示例4: iter_transfer_recipients

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
    def iter_transfer_recipients(self, ignored):
        if self.config['website'].get() != 'pp':
            raise NotImplementedError()

        for account in self.browser.get_transfer_accounts().itervalues():
            recipient = Recipient()
            recipient.id = account.id
            recipient.label = account.label
            yield recipient
开发者ID:ngrislain,项目名称:weboob,代码行数:11,代码来源:module.py

示例5: get_recipient_object

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def get_recipient_object(self, iban, label):
     r = Recipient()
     r.iban = iban
     r.id = iban
     r.label = label
     r.category = u'Externe'
     r.enabled_at = datetime.now().replace(microsecond=0) + timedelta(days=5)
     r.currency = u'EUR'
     r.bank_name = NotAvailable
     return r
开发者ID:laurentb,项目名称:weboob,代码行数:12,代码来源:browser.py

示例6: build_recipient

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def build_recipient(self, recipient):
     r = Recipient()
     r.iban = recipient.iban
     r.id = recipient.iban
     r.label = recipient.label
     r.category = recipient.category
     r.enabled_at = datetime.now().replace(microsecond=0) + timedelta(days=5)
     r.currency = u'EUR'
     r.bank_name = recipient.bank_name
     return r
开发者ID:laurentb,项目名称:weboob,代码行数:12,代码来源:browser.py

示例7: get_recipient

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def get_recipient(self, recipient):
     r = Recipient()
     r.iban = recipient.iban
     r.id = self.get('data.gestionBeneficiaire.identifiantBeneficiaire')
     r.label = recipient.label
     r.category = u'Externe'
     r.enabled_at = datetime.now().replace(microsecond=0) + timedelta(days=5)
     r.currency = u'EUR'
     r.bank_name = NotAvailable
     return r
开发者ID:P4ncake,项目名称:weboob,代码行数:12,代码来源:pages.py

示例8: build_recipient

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def build_recipient(self, recipient):
     r = Recipient()
     r.iban = recipient.iban
     r.id = recipient.iban
     r.label = recipient.label
     r.category = recipient.category
     r.enabled_at = date.today()
     r.currency = u'EUR'
     r.bank_name = recipient.bank_name
     return r
开发者ID:P4ncake,项目名称:weboob,代码行数:12,代码来源:browser.py

示例9: get_recipient

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def get_recipient(self, recipient):
     r = Recipient()
     r.iban = recipient.iban
     r.id = recipient.id
     r.label = recipient.label
     r.category = u'Externe'
     r.enabled_at = datetime.now().replace(microsecond=0) + timedelta(days=5)
     r.currency = u'EUR'
     r.bank_name = self.get('data.activationBeneficiaire.nomBanque')
     return r
开发者ID:laurentb,项目名称:weboob,代码行数:12,代码来源:pages.py

示例10: get_recipient_obj

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def get_recipient_obj(self, recipient):
     r = Recipient()
     r.iban = recipient.iban
     r.id = recipient.iban
     r.label = recipient.label
     r.category = u'Externe'
     r.enabled_at = datetime.datetime.now().replace(microsecond=0)
     r.currency = u'EUR'
     r.bank_name = NotAvailable
     return r
开发者ID:laurentb,项目名称:weboob,代码行数:12,代码来源:browser.py

示例11: get_recipient

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
    def get_recipient(self):
        div = self.doc.xpath('//div[@class="confirmation__text"]')[0]

        ret = Recipient()
        ret.label = CleanText('//p[b[contains(text(),"Libellé du compte :")]]/text()')(div)
        ret.iban = ret.id = CleanText('//p[b[contains(text(),"Iban :")]]/text()')(div)
        ret.bank_name = CleanText(u'//p[b[contains(text(),"Établissement bancaire :")]]/text()')(div)
        ret.currency = u'EUR'
        ret.category = u'Externe'
        ret.enabled_at = datetime.date.today()
        assert ret.label
        return ret
开发者ID:laurentb,项目名称:weboob,代码行数:14,代码来源:pages.py

示例12: get_recipients

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
    def get_recipients(self):
        recipients_xpath = '//select[@id="compteDestinataireSelectionne"]/option[not(contains(@selected, "selected"))]'

        for recipient in self.doc.xpath(recipients_xpath):
            rcpt = Recipient()

            rcpt.label = re.sub(r' - \w{2,}\d{6,}', '', CleanText('.')(recipient))
            rcpt.iban = CleanText('./@value')(recipient)
            rcpt.id = rcpt.iban
            rcpt.enabled_at = date.today()
            rcpt.category = 'INTERNE'

            yield rcpt
开发者ID:P4ncake,项目名称:weboob,代码行数:15,代码来源:transfer.py

示例13: rcpt_after_sms

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
    def rcpt_after_sms(self, recipient):
        rcpt_data = self.doc['donnees']

        assert recipient.label == Dict('nomRaisonSociale')(rcpt_data)
        assert recipient.iban == Dict('coordonnee/0/numeroCompte')(rcpt_data)

        rcpt = Recipient()
        rcpt.id = Dict('coordonnee/0/refSICoordonnee')(rcpt_data)
        rcpt.iban = Dict('coordonnee/0/numeroCompte')(rcpt_data)
        rcpt.label = Dict('nomRaisonSociale')(rcpt_data)
        rcpt.category = u'Externe'
        rcpt.enabled_at = date.today()
        return rcpt
开发者ID:laurentb,项目名称:weboob,代码行数:15,代码来源:transfer_pages.py

示例14: do_add_recipient

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
    def do_add_recipient(self, line):
        """
        add_recipient iban label

        Add a recipient to a backend.
        """
        if len(self.enabled_backends) > 1:
            print('Error: select a single backend to add a recipient (Hint: try the command "backends only")', file=self.stderr)
            return 1
        iban, label, origin_account_id = self.parse_command_args(line, 3, 2)
        recipient = Recipient()
        recipient.iban = iban
        recipient.label = label
        recipient.origin_account_id = origin_account_id
        next(iter(self.do('add_recipient', recipient)))
开发者ID:laurentb,项目名称:weboob,代码行数:17,代码来源:boobank.py

示例15: get_recipient_object

# 需要导入模块: from weboob.capabilities.bank import Recipient [as 别名]
# 或者: from weboob.capabilities.bank.Recipient import label [as 别名]
 def get_recipient_object(self, recipient, get_info=False):
     r = Recipient()
     if get_info:
         recap_iban = CleanText('//div[div[contains(text(), "IBAN")]]/div[has-class("recapTextField")]', replace=[(' ', '')])(self.doc)
         assert recap_iban == recipient.iban
         recipient.bank_name = CleanText('//div[div[contains(text(), "Banque du")]]/div[has-class("recapTextField")]', default=NotAvailable)(self.doc)
     r.iban = recipient.iban
     r.id = recipient.iban
     r.label = recipient.label
     r.category = recipient.category
     # On societe generale recipients are immediatly available.
     r.enabled_at = datetime.now().replace(microsecond=0)
     r.currency = u'EUR'
     r.bank_name = recipient.bank_name
     return r
开发者ID:laurentb,项目名称:weboob,代码行数:17,代码来源:transfer.py


注:本文中的weboob.capabilities.bank.Recipient.label方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。