<div id='div-{{ domid }}'>
{% for son in sons %}
{#<h3>{{ son.title }}</h3>#}
-<div id='tab-{{ son.domid }}'>
+<div id='stack-{{ son.domid }}'>
{{ son.rendered }}
</div>
{% endfor %}
class Stack (Composite) :
def template_file (self): return "stack.html"
+ def template_env (self, request):
+ env = Composite.template_env (self, request)
+ env['domid'] = self.domid
+ return env
div#sidelist table.with-datatables {
font-size: 130%;
}
+# demo to show how to tweak a given section by setting its domid
+#complete-quickfilter {
+ background-color: #f080f0;
+}
toggled=False,
),
QuickFilter (
+ domid='quickfilter',
page=page,
title='play with filters',
criterias=quickfilter_criterias,
# . True : to debug all plugin
DEBUG= False
-DEBUG= [ 'SimpleList' ]
-DEBUG=True
+#DEBUG= [ 'SimpleList' ]
+#DEBUG=True
# decorator to deflect calls on Plugin to its Prelude through self.page.prelude
def to_prelude (method):
{#<!--begin {{ classname }}{{ domid }}-->#}
{% if visible %}
-<div class='plugin-toggle{% if need_spin %} need-spin{% endif %}' id='toggle-{{ domid }}'>
+<div class='plugin-toggle{% if need_spin %} need-spin{% endif %}' id='complete-{{ domid }}'>
{% if togglable %}
<h4 id='show-{{ domid }}' class='plugin-show'{% if toggled %} style='display:none;'{% endif %}><i class="icon-hand-right"></i>
<a href='#' class='plugin-tooltip' data-toggle='tooltip' data-original-title='Show plugin "{{ title }}" ({{ classname }})'>{{ title }}</a></h4>