Opened 14 years ago
Last modified 10 years ago
#9313 closed defect
Provide better documentation for IPreferencePanelProvider — at Initial Version
Reported by: | 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
Having just spent the last half-day hacking around trying to get a plugin to work, I believe the 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
Note:
See TracTickets
for help on using tickets.