Exemplo n.º 1
0
 def bind_setServicePassword(self, ctx):
     return annotate.MethodBinding(
         'setServicePassword',
         annotate.Method(arguments=[
             annotate.Argument('ctx', annotate.Context()),
             annotate.Argument(
                 'newPassword',
                 annotate.PasswordEntry(required=True,
                                        label=_('New password'))),
             annotate.Argument(
                 'again',
                 annotate.PasswordEntry(required=True, label=_('Again'))),
         ],
                         label=_('Set password')),
         action=_('Set password'))
Exemplo n.º 2
0
 def login(ctx=annotate.Context(),
           userName=annotate.String(
               required=True, requiredFailMessage='Please enter your name'),
           password=annotate.PasswordEntry(
               required=True,
               requiredFailMessage='Please enter your name')):
     pass
Exemplo n.º 3
0
 def bind_add(self, ctx):
     return annotate.MethodBinding(
         'add',
         annotate.Method(arguments=[
             annotate.Argument('ctx', annotate.Context()),
             annotate.Argument(
                 'serviceName',
                 annotate.String(required=True, label=_('Service name'))),
             annotate.Argument(
                 'newPassword',
                 annotate.PasswordEntry(
                     required=False,
                     label=_('New password'),
                     description=_(
                         "Leave empty to generate random password."))),
             annotate.Argument(
                 'again',
                 annotate.PasswordEntry(required=False, label=_('Again'))),
         ],
                         label=_('Add')),
         action=_('Add'))
Exemplo n.º 4
0
    def fwd(self, req=annotate.Request(), name=annotate.String(label="Configuration Name"), username=annotate.String(), password=annotate.PasswordEntry()):
        """Free World Dialup Account

        Add a configuration for a FWD account.
        """
        pass
Exemplo n.º 5
0
    def divmod(self, req=annotate.Request(), name=annotate.String(label="Configuration Name"), username=annotate.String(), password=annotate.PasswordEntry()):
        """Divmod Account

        Add a configuration for a Divmod account.
        """
        pass
Exemplo n.º 6
0
 def modifyUser(self,
                ctx=annotate.Context(),
                oldPassword=annotate.PasswordEntry(),
                password=annotate.Password(),
                isAdministrator=isAdmin):
     pass