Changeset 1861

Show
Ignore:
Timestamp:
01/11/07 19:13:12 (2 years ago)
Author:
mgood
Message:

AccountManagerPlugin:

trunk version should use req.href instead of env.href for generating links

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • accountmanagerplugin/trunk/acct_mgr/web_ui.py

    r1709 r1861  
    163163    def _do_account(self, req): 
    164164        if not req.authname or req.authname == 'anonymous': 
    165             req.redirect(self.env.href.wiki()) 
     165            req.redirect(req.href.wiki()) 
    166166        action = req.args.get('action') 
    167167        delete_enabled = AccountManager(self.env).supports('delete_user') 
     
    234234 
    235235        mgr.delete_user(user) 
    236         req.redirect(self.env.href.logout()) 
     236        req.redirect(req.href.logout()) 
    237237 
    238238    # ITemplateProvider 
     
    286286        if req.authname == 'anonymous': 
    287287            yield 'metanav', 'register', Markup('<a href="%s">Register</a>', 
    288                                                 (self.env.href.register())) 
     288                                                (req.href.register())) 
    289289 
    290290    # IRequestHandler methods 
     
    295295    def process_request(self, req): 
    296296        if req.authname != 'anonymous': 
    297             req.redirect(self.env.href.prefs('account')) 
     297            req.redirect(req.href.prefs('account')) 
    298298        action = req.args.get('action') 
    299299        data = {} 
     
    304304                data['registration_error'] = e.message 
    305305            else: 
    306                 req.redirect(self.env.href.login()) 
     306                req.redirect(req.href.login()) 
    307307        data['reset_password_enabled'] = \ 
    308308            (self.env.is_component_enabled(AccountModule)