Esempio n. 1
0
def deferred_bank_widget(node, kw):
    """
    Renvoie le widget pour la sélection d'une banque
    """
    options = [(bank.id, bank.label) for bank in BankAccount.query()]
    widget = forms.get_select(options)
    return widget
Esempio n. 2
0
def deferred_bank_validator(node, kw):
    return colander.OneOf([bank.id for bank in BankAccount.query()])