Ticket #2221 (closed defect: fixed)

Opened 1 year ago

Last modified 10 months ago

IniAdmin Plugin Apply changes button bug

Reported by: anonymous Assigned to: athomas
Priority: highest Component: IniAdminPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

IniAdmin? Plugin version 0.11

modifiy some settings and click Apply changes button. 404 file not found. (apache error log, File does not exist C:/Program Files/Apache Group/Apache2/htdocs/trac/exampleproject/admin/tracini/trac)

solution...

        # Apply changes
        if req.method == 'POST':
            options = [option.name for (section, _), option in
                       Option.registry.iteritems() if section == page]
            modified = False
            for option, value in req.args.iteritems():
                if option in options:
                    if self.env.config.get(page, option) != value:
                        self.env.config.set(page, option, value)
                        modified = True
            if modified:
                self.env.log.debug("Updating trac.ini")
                self.env.config.save()
            #req.redirect(self.env.href.admin(cat, page))

I comment out "req.redirect(self.env.href.admin(cat, page))"

Attachments

Change History

01/10/08 19:22:50 changed by athomas

Fixed in r3024.

01/10/08 19:23:16 changed by athomas

  • status changed from new to closed.
  • resolution set to fixed.

Add/Change #2221 (IniAdmin Plugin Apply changes button bug)




Change Properties
Action