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
def deferred_bank_validator(node, kw): return colander.OneOf([bank.id for bank in BankAccount.query()])