1 | from Products.CMFPlone.interfaces import IPloneSiteRoot |
---|
2 | from five import grok |
---|
3 | |
---|
4 | from boxes import GridView |
---|
5 | from interfaces import \ |
---|
6 | IComunidadeLegislativa, IInformacao, ICapacitacao, ITecnologia, IComunicacao, \ |
---|
7 | ISimpleBox |
---|
8 | |
---|
9 | |
---|
10 | class Home(GridView): |
---|
11 | grok.name('home') |
---|
12 | grok.context(IPloneSiteRoot) |
---|
13 | grok.require('zope2.View') |
---|
14 | |
---|
15 | grid = [ |
---|
16 | ((4, ISimpleBox, 9), (4, ISimpleBox, 1), (4, ISimpleBox, 2), (4, ISimpleBox, 3)) |
---|
17 | ] |
---|
18 | |
---|
19 | |
---|
20 | class ComunidadeLegislativaHome(grok.View): |
---|
21 | grok.name('home') |
---|
22 | grok.context(IComunidadeLegislativa) |
---|
23 | grok.require('zope2.View') |
---|
24 | |
---|
25 | |
---|
26 | class InformacaoHome(grok.View): |
---|
27 | grok.name('home') |
---|
28 | grok.context(IInformacao) |
---|
29 | grok.require('zope2.View') |
---|
30 | |
---|
31 | |
---|
32 | class CapacitacaoHome(grok.View): |
---|
33 | grok.name('home') |
---|
34 | grok.context(ICapacitacao) |
---|
35 | grok.require('zope2.View') |
---|
36 | |
---|
37 | |
---|
38 | class TecnologiaHome(grok.View): |
---|
39 | grok.name('home') |
---|
40 | grok.context(ITecnologia) |
---|
41 | grok.require('zope2.View') |
---|
42 | |
---|
43 | |
---|
44 | class ComunicacaoHome(grok.View): |
---|
45 | grok.name('home') |
---|
46 | grok.context(IComunicacao) |
---|
47 | grok.require('zope2.View') |
---|
48 | |
---|