processo.py
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*- coding: utf-8 -*-
from zope import schema
from five import grok
from plone.dexterity.content import Item
from plone.supermodel import model
from plone.namedfile.field import NamedBlobImage
from plone.directives import form
from plone.app.z3cform.wysiwyg import WysiwygFieldWidget
from collective import dexteritytextindexer
from pf.biblioteca import MessageFactory as _
class IProcesso(model.Schema):
"""
Página de Processo
"""
dexteritytextindexer.searchable('title')
title = schema.TextLine(
title=u"Nome do processo",
description=u'',
required=True
)
dexteritytextindexer.searchable('description')
description = schema.Text(
title=u"Descrição",
description=u"",
required=False,
)
form.widget(description=WysiwygFieldWidget)
imagem_processo = NamedBlobImage(
title=_(u"Imagem do Processo"),
required=False,
)
dexteritytextindexer.searchable('diretoria_responsavel')
diretoria_responsavel = schema.TextLine(
title=u"Diretoria Responsavel (Dono)",
description=u"",
required=True
)
dexteritytextindexer.searchable('unidade_responsavel')
unidade_responsavel = schema.TextLine(
title=u"Unidade Responsavel (Gestor)",
description=u"",
required=True
)
email_unidade = schema.TextLine(
title=u"E-mail da Unidade Responsavel",
description=u"",
required=True
)
telefone_unidade = schema.TextLine(
title=u"Telefone da Unidade Responsavel",
description=u"",
required=True
)
link_bizagi = schema.TextLine(
title=u"Fluxo do Processo",
description=u"Informe o link para o fluxo do processo.",
required=True
)
responsavel_fluxo = schema.TextLine(
title=u"Responsavel pela Publicacao do Fluxo na CIGE/DPF",
description=u"",
required=True
)
email_responsavel_fluxo = schema.TextLine(
title=u"E-mail do Responsavel pela Publicacao do Fluxo na CIGE/DPF",
description=u"",
required=True
)
class Processo(Item):
grok.implements(IProcesso)