Edgewall Software
Modify

Opened 12 years ago

Closed 9 years ago

Last modified 7 years ago

#9313 closed defect (fixed)

Provide better documentation for IPreferencePanelProvider

Reported by: josh@… Owned by: Peter Suter
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

Attachments (0)

Change History (4)

comment:1 by Remy Blank, 12 years ago

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

Help welcome.

comment:2 by Christian Boos, 9 years ago

Milestone: unschedulednot applicable
Resolution: fixed
Status: newclosed

comment:3 by Christian Boos, 9 years ago

Owner: set to Peter Suter

comment:4 by Ryan J Ollos, 7 years ago

Keywords: preferences added; preference removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Peter Suter.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Peter Suter to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.