Hi, 

I'm currently migrating some plugins to Trac 0.11.

My admin plugin is still using the process_admin_request method, and
when I try:

req.redirect(self.env.href.admin(cat, page))

the browser is redirected to:

http://host/admin/projectmanager/properties

instead of 

http://host/trac/project/admin/projectmanager/properties

(so the "trac/project" part is missing).

The same sentence is used in trac code and it works. For example in
BasicAdminPanel:

    def render_admin_panel(self, req, cat, page, path_info):
        req.perm.require('TRAC_ADMIN')

        if req.method == 'POST':
            for option in ('name', 'url', 'descr'):
                self.config.set('project', option, req.args.get(option))
            self.config.save()
            req.redirect(req.href.admin(cat, page))

Am I doing something wrong, or is there something wrong with the
req.href object passed to process_admin_request? 

Thanks very much.

-- 
--------------------------------------

        Álvaro J. Iradier Muro
     [EMAIL PROTECTED]

   AM&B - Dept. de Desarrollo e I+D

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to