Changeset 10113
- Timestamp:
- Apr 25, 2011, 9:26:56 AM (14 years ago)
- Location:
- accountmanagerplugin/trunk/acct_mgr
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
accountmanagerplugin/trunk/acct_mgr/admin.py
r9587 r10113 291 291 return 'admin_users.html', data 292 292 293 # ITemplateProvider 293 # ITemplateProvider methods 294 294 295 295 def get_htdocs_dirs(self): … … 297 297 static resources (such as images, style sheets, etc). 298 298 """ 299 return [ ]299 return [('acct_mgr', resource_filename(__name__, 'htdocs'))] 300 300 301 301 def get_templates_dirs(self): … … 391 391 return 'account_details.html', data 392 392 393 # ITemplateProvider394 395 def get_htdocs_dirs(self):396 """Return the absolute path of a directory containing additional397 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 59 59 notifier = EmailVerificationNotification(self.env) 60 60 notifier.notify(username, token) 61 61 62 62 63 class AccountChangeNotification(NotifyEmail): … … 192 193 return 'admin_accountsnotification.html', data 193 194 194 # ITemplateProvider 195 # ITemplateProvider methods 195 196 def get_htdocs_dirs(self): 196 197 return [] -
accountmanagerplugin/trunk/acct_mgr/web_ui.py
r9584 r10113 357 357 req.redirect(req.href.logout()) 358 358 359 # ITemplateProvider 359 # ITemplateProvider methods 360 360 361 361 def get_htdocs_dirs(self): … … 662 662 enabled = property(enabled) 663 663 664 # ITemplateProvider 664 # ITemplateProvider methods 665 665 666 666 def get_htdocs_dirs(self): … … 668 668 static resources (such as images, style sheets, etc). 669 669 """ 670 return [ ]670 return [('acct_mgr', resource_filename(__name__, 'htdocs'))] 671 671 672 672 def get_templates_dirs(self): … … 678 678 679 679 class EmailVerificationModule(Component): 680 implements(IRequestFilter, IRequestHandler )680 implements(IRequestFilter, IRequestHandler, ITemplateProvider) 681 681 682 682 # IRequestFilter methods … … 771 771 def _gen_token(self): 772 772 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.