Example #1
0
class CERNAgentForm(AgentForm):
    server_url = URLField(
        _('URL'), [DataRequired(), URL(require_tld=False)],
        description=_("The URL of CERNsearch's import endpoint"))
    username = StringField(_('Username'), [DataRequired()])
    password = IndicoPasswordField(_('Password'), [DataRequired()],
                                   toggle=True)
Example #2
0
class SettingsForm(IndicoForm):
    username = StringField(
        _("Username"),
        validators=[DataRequired()],
        description=_("The username to access the category ID/title mapping"))
    password = IndicoPasswordField(
        _('Password'), [DataRequired()],
        toggle=True,
        description=_("The password to access the category ID/title mapping"))