Edgewall Software

Opened 14 years ago

Last modified 10 years ago

#9313 closed defect

Provide better documentation for IPreferencePanelProvider — at Version 1

Reported by: josh@… Owned by:
Priority: normal Milestone: not applicable
Component: general Version: 0.11.7
Severity: normal Keywords: plugins, documentation, helpwanted, preferences
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Remy Blank)

Having just spent the last half-day hacking around trying to get a plugin to work, I believe the IPreferencePanelProvider interface either needs a function specifically for setting up data to be saved into the DB, or some better documentation informing developers that they need to add something like this to render_preference_panel in order to get things to save into the DB.

session = req.session
if req.method == "POST":
    session['var'] = req.args.get('var', '')
data = dict(homepage = session.get('var', ''),)
return 'prefs_template.html', data

Change History (1)

comment:1 by Remy Blank, 14 years ago

Description: modified (diff)
Keywords: documentation helpwanted added
Milestone: unscheduled

Help welcome.

Note: See TracTickets for help on using tickets.