Web site chrome assembly manager.
Chrome is everything that is not actual page content.
|
|
mainnav(...)
Configures the main navigation bar,
which by default contains //Wiki//, //Timeline//, //Roadmap//,
//Browse Source//, //View Tickets//, //New Ticket//, //Search// and
//Admin//. |
source code
|
|
|
|
metanav(...)
Configures the meta navigation
entries, which by default are //Login//, //Logout//, //Preferences//,
''!Help/Guide'' and //About Trac//. |
source code
|
|
|
|
|
|
|
|
|
|
environment_created(self)
Add the sample templates to the environment templates dir. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_permission_actions(self)
EMAIL_VIEW permission allows for showing email addresses even
if [trac] show_email_addresses is false. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_all_templates_dirs(self)
Return a list of the names of all known templates directories. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_interface_customization_files(self)
Returns a dictionary containing the lists of files present in the
site and shared templates and htdocs directories. |
source code
|
|
|
|
author_email(self,
author,
email_map)
Returns the author email from the email_map if author
doesn't look like an email address. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
cc_list(self,
cc_field)
Split a CC: value in a list of addresses. |
source code
|
|
|
|
|
|
|
|
|
|
get_email_map(self)
Get the email addresses of all known users. |
source code
|
|
|
|
add_textarea_grips(self,
req)
Make <textarea class="trac-resizable"> fields resizable if enabled
by configuration. |
source code
|
|
|
|
add_wiki_toolbars(self,
req)
Add wiki toolbars to <textarea class="wikitext"> fields. |
source code
|
|
|
|
add_auto_preview(self,
req)
Setup auto-preview for <textarea> fields. |
source code
|
|
|
|
add_jquery_ui(self,
req)
Add a reference to the jQuery UI script and link the stylesheet. |
source code
|
|
|
|
populate_data(self,
req=None,
data=None,
d=None)
Fills a dictionary with the standard set of fields expected
by templates. |
source code
|
|
|
|
|
|
|
render_template(self,
req,
filename,
data,
metadata=None,
fragment=False,
iterable=False,
method=None)
Renders the filename template using data for the context. |
source code
|
|
|
|
generate_fragment(self,
req,
filename,
data,
text=False,
domain=None)
Produces content ready to be sent from the given template
filename and input data, with minimal overhead. |
source code
|
|
the generated output is an unicode string if text
is True, or a Markup string otherwise.
|
render_fragment(self,
req,
filename,
data,
text=False,
domain=None)
Produces a string from given template filename and input data,
with minimal overhead. |
source code
|
|
a pair of Jinja2 Template and a dict.
|
|
str or an iterable of str, depending on iterable
|
|
unicode if text is True, Markup otherwise.
|
|
|
|
iterable_content(self,
stream,
text=False,
**kwargs)
Generate an iterable object which iterates str instances
from the given stream instance. |
source code
|
|
|
Inherited from core.Component:
__repr__
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|
|
|
required = True
|
|
|
is_valid_default_handler = False
|
|
|
shared_templates_dir = <PathOption [inherit] 'templates_dir'>
|
|
|
shared_htdocs_dir = <PathOption [inherit] 'htdocs_dir'>
|
|
|
auto_reload = <BoolOption [trac] 'auto_reload'>
|
|
|
genshi_cache_size = <IntOption [trac] 'genshi_cache_size'>
|
|
|
htdocs_location = <Option [trac] 'htdocs_location'>
|
|
|
jquery_location = <Option [trac] 'jquery_location'>
|
|
|
jquery_ui_location = <Option [trac] 'jquery_ui_location'>
|
|
|
jquery_ui_theme_location = <Option [trac] 'jquery_ui_theme_loc...
|
|
|
logo_link = <Option [header_logo] 'link'>
|
|
|
logo_src = <Option [header_logo] 'src'>
|
|
|
logo_alt = <Option [header_logo] 'alt'>
|
|
|
logo_width = <IntOption [header_logo] 'width'>
|
|
|
logo_height = <IntOption [header_logo] 'height'>
|
|
|
show_email_addresses = <BoolOption [trac] 'show_email_addresses'>
|
|
|
show_full_names = <BoolOption [trac] 'show_full_names'>
|
|
|
never_obfuscate_mailto = <BoolOption [trac] 'never_obfuscate_m...
|
|
|
resizable_textareas = <BoolOption [trac] 'resizable_textareas'>
|
|
|
wiki_toolbars = <BoolOption [trac] 'wiki_toolbars'>
|
|
|
auto_preview_timeout = <FloatOption [trac] 'auto_preview_timeo...
|
|
|
default_dateinfo_format = <ChoiceOption [trac] 'default_datein...
|
|
|
use_chunked_encoding = <BoolOption [trac] 'use_chunked_encoding'>
|
|
|
templates = None
hash(x)
|
|
|
jenv = None
hash(x)
|
|
|
jenv_text = None
hash(x)
|
|
|
html_doctype = ('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 'h...
|