source: publico/PortalInterlegis/produtos/il.portalinterlegis/src/il/portalinterlegis/browser/interfaces.py @ 6473

Última Alteração nesse arquivo desde 6473 foi 6473, incluída por mazza, 9 anos atrás

boxes: row_html

File size: 1.3 KB
Linha 
1# -*- coding: utf-8 -*-
2from zope import schema
3from zope.interface import Interface
4
5from boxes import BoxManager, template
6
7
8class IThemeSpecific(Interface):
9    """Marker interface that defines a Zope 3 browser layer.
10       If you need to register a viewlet only for the
11       "il.portalinterlegis" theme,
12       this interface must be its layer.
13    """
14
15# HOMES
16
17class IComunidadeLegislativa(Interface):
18    "Marker interface para home"
19
20class IInformacao(Interface):
21    "Marker interface para home"
22
23class ICapacitacao(Interface):
24    "Marker interface para home"
25
26class ITecnologia(Interface):
27    "Marker interface para home"
28
29class IComunicacao(Interface):
30    "Marker interface para home"
31
32# BOX INTERFACES
33
34@template('''
35      <div class="simple-box">
36        <h2>%(title)s</h2>
37        <h3 class="icon-news"><a href="">%(subtitle)s</a></h3>
38        <p>
39          %(text)s
40        </p>
41      </div>''')
42class ISimpleBox(Interface):
43    title = schema.TextLine(title=u"Título", required=True)
44    subtitle = schema.TextLine(title=u"Subtítulo", required=True)
45    text = schema.TextLine(title=u"Texto", required=True)
46
47
48################################################################
49
50# initialize all the box managers
51for s in [ISimpleBox,]:
52    BoxManager(s).build_n_forms(10)
53
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.