~awojdel/moovida/account_simplified

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/account/new_account.py

  • Committer: Anna Wojdel
  • Date: 2009-11-11 15:02:15 UTC
  • Revision ID: awojdel@fluendo.com-20091111150215-pfbj6faa4t40wuhc
display Settings Account controller for user not logged in as 'normal' popup

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
 
332
332
    def create_buttons(self):
333
333
        # Overridden from base class.
334
 
        self._create_account_button = _("Create Account")
335
 
        self._login_button = _("Login")
336
 
        self._help_button = _("More Info")
337
 
        self._use_moovida_button = _("Skip")
338
 
        buttons = [(self._create_account_button, self._create_account),
339
 
                   (self._login_button, self._login_account),
340
 
                   (self._help_button, self._help),
341
 
                   (self._use_moovida_button, self._use_moovida),]
 
334
        create_account_button = _("Create Account")
 
335
        login_button = _("Login")
 
336
        help_button = _("More Info")
 
337
        use_moovida_button = _("Skip")
 
338
        buttons = [(create_account_button, self._create_account),
 
339
                   (login_button, self._login_account),
 
340
                   (help_button, self._help),
 
341
                   (use_moovida_button, self._use_moovida),]
342
342
        return buttons
343
343
 
 
344
    def create_popup(self, title, subtitle, text, buttons):
 
345
        # Overridden from base class.
 
346
        return WelcomePopup(title, text, buttons)
 
347
 
344
348
    def _login_account(self):
345
349
        controller_path = '/poblesec/account/login_email'
346
350
        label = 'Login to Moovida Account'
354
358
                                                can_go_back=True)
355
359
 
356
360
 
357
 
class FirstRunIntroAccountController(IntroAccountController):
358
 
    """
359
 
    DOCME:
360
 
    """
361
 
    def create_popup(self, title, subtitle, text, buttons):
362
 
        # Overridden from base class.
363
 
        return WelcomePopup(title, text, buttons)
364
 
 
365
 
 
366
361
class EmailEntryController(GenericEntryValidationController):
367
362
    """
368
363
    DOCME: