Changeset 10113


Ignore:
Timestamp:
Apr 25, 2011, 9:26:56 AM (14 years ago)
Author:
Steffen Hoffmann
Message:

AccountManagerPlugin: Add missing ITemplateProvider content to LoginModule, refs #6821.

Location:
accountmanagerplugin/trunk/acct_mgr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • accountmanagerplugin/trunk/acct_mgr/admin.py

    r9587 r10113  
    291291        return 'admin_users.html', data
    292292
    293     # ITemplateProvider
     293    # ITemplateProvider methods
    294294
    295295    def get_htdocs_dirs(self):
     
    297297        static resources (such as images, style sheets, etc).
    298298        """
    299         return []
     299        return [('acct_mgr', resource_filename(__name__, 'htdocs'))]
    300300
    301301    def get_templates_dirs(self):
     
    391391        return 'account_details.html', data
    392392
    393     # ITemplateProvider
    394 
    395     def get_htdocs_dirs(self):
    396         """Return the absolute path of a directory containing additional
    397         static resources (such as images, style sheets, etc).
    398         """
    399         return [('acct_mgr', resource_filename(__name__, 'htdocs'))]
  • accountmanagerplugin/trunk/acct_mgr/notification.py

    r9338 r10113  
    5959        notifier = EmailVerificationNotification(self.env)
    6060        notifier.notify(username, token)
     61
    6162
    6263class AccountChangeNotification(NotifyEmail):
     
    192193        return 'admin_accountsnotification.html', data
    193194
    194     # ITemplateProvider
     195    # ITemplateProvider methods
    195196    def get_htdocs_dirs(self):
    196197        return []
  • accountmanagerplugin/trunk/acct_mgr/web_ui.py

    r9584 r10113  
    357357        req.redirect(req.href.logout())
    358358
    359     # ITemplateProvider
     359    # ITemplateProvider methods
    360360
    361361    def get_htdocs_dirs(self):
     
    662662    enabled = property(enabled)
    663663
    664     # ITemplateProvider
     664    # ITemplateProvider methods
    665665
    666666    def get_htdocs_dirs(self):
     
    668668        static resources (such as images, style sheets, etc).
    669669        """
    670         return []
     670        return [('acct_mgr', resource_filename(__name__, 'htdocs'))]
    671671
    672672    def get_templates_dirs(self):
     
    678678
    679679class EmailVerificationModule(Component):
    680     implements(IRequestFilter, IRequestHandler)
     680    implements(IRequestFilter, IRequestHandler, ITemplateProvider)
    681681
    682682    # IRequestFilter methods
     
    771771    def _gen_token(self):
    772772        return base64.urlsafe_b64encode(urandom(6))
     773
     774    # ITemplateProvider methods
     775
     776    def get_htdocs_dirs(self):
     777        """Return the absolute path of a directory containing additional
     778        static resources (such as images, style sheets, etc).
     779        """
     780        return []
     781
     782    def get_templates_dirs(self):
     783        """Return the absolute path of the directory containing the provided
     784        Genshi templates.
     785        """
     786        return [resource_filename(__name__, 'templates')]
     787
Note: See TracChangeset for help on using the changeset viewer.