Trees Indices Help
Trac
Package trac :: Package prefs :: Module api

Source Code for Module trac.prefs.api

 1 # -*- coding: utf-8 -*- 
 2 # 
 3 # Copyright (C)2006-2009 Edgewall Software 
 4 # All rights reserved. 
 5 # 
 6 # This software is licensed as described in the file COPYING, which 
 7 # you should have received as part of this distribution. The terms 
 8 # are also available at http://trac.edgewall.org/wiki/TracLicense. 
 9 # 
10 # This software consists of voluntary contributions made by many 
11 # individuals. For the exact contribution history, see the revision 
12 # history and logs, available at http://trac.edgewall.org/log/. 
13 
14 from trac .core  import * 
15 
16 
17 - class IPreferencePanelProvider (Interface):
18
19 - def get_preference_panels (req):
20 """Return a list of available preference panels. 21 22 The items returned by this function must be tuple of the form 23 `(panel, label)`. 24 """
25
26 - def render_preference_panel (req, panel):
27 """Process a request for a preference panel. 28 29 This function should return a tuple of the form `(template, data)`, 30 where `template` is the name of the template to use and `data` is the 31 data to be passed to the template. 32 """
33

Trees Indices Help
Trac
Generated by Epydoc 3.0.1 on Mon Feb 13 23:37:33 2023 http://epydoc.sourceforge.net

AltStyle によって変換されたページ (->オリジナル) /