1 | # File: MovimentoOrcamentarioSimulado.py |
---|
2 | # |
---|
3 | # Copyright (c) 2005 by Interlegis |
---|
4 | # Generator: ArchGenXML Version 1.4.0-beta2 devel |
---|
5 | # http://plone.org/products/archgenxml |
---|
6 | # |
---|
7 | # GNU General Public Licence (GPL) |
---|
8 | # |
---|
9 | # This program is free software; you can redistribute it and/or modify it under |
---|
10 | # the terms of the GNU General Public License as published by the Free Software |
---|
11 | # Foundation; either version 2 of the License, or (at your option) any later |
---|
12 | # version. |
---|
13 | # This program is distributed in the hope that it will be useful, but WITHOUT |
---|
14 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
---|
15 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
---|
16 | # details. |
---|
17 | # You should have received a copy of the GNU General Public License along with |
---|
18 | # this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
19 | # Place, Suite 330, Boston, MA 02111-1307 USA |
---|
20 | # |
---|
21 | __author__ = '''STC Interlegis <admin-stc@interlegis.gov.br>''' |
---|
22 | __docformat__ = 'plaintext' |
---|
23 | |
---|
24 | |
---|
25 | from AccessControl import ClassSecurityInfo |
---|
26 | from Products.Archetypes.atapi import * |
---|
27 | from MovimentoOrcamentario import MovimentoOrcamentario |
---|
28 | from Products.ILSAALOrcamento.interfaces.IMovimentoOrcamentarioSimulado import IMovimentoOrcamentarioSimulado |
---|
29 | |
---|
30 | |
---|
31 | from Products.Archetypes.SQLStorage import * |
---|
32 | # additional imports from tagged value 'import' |
---|
33 | from Products.ILSAAL.saalapi import * |
---|
34 | from DateTime import DateTime |
---|
35 | |
---|
36 | from Products.ILSAALOrcamento.config import * |
---|
37 | ##code-section module-header #fill in your manual code here |
---|
38 | ##/code-section module-header |
---|
39 | |
---|
40 | schema=Schema(( |
---|
41 | ), |
---|
42 | ) |
---|
43 | |
---|
44 | |
---|
45 | ##code-section after-local-schema #fill in your manual code here |
---|
46 | ##/code-section after-local-schema |
---|
47 | |
---|
48 | MovimentoOrcamentarioSimulado_schema = BaseSchema + \ |
---|
49 | getattr(MovimentoOrcamentario,'schema',Schema(())) + \ |
---|
50 | schema |
---|
51 | |
---|
52 | ##code-section after-schema #fill in your manual code here |
---|
53 | ##/code-section after-schema |
---|
54 | |
---|
55 | class MovimentoOrcamentarioSimulado(MovimentoOrcamentario,BaseContent): |
---|
56 | """ |
---|
57 | Para fins de simulacao, mantem os registros de todos lancamentos |
---|
58 | de valores informados e/ou gerados segundo criterios definidos |
---|
59 | para o exercicio por classificacao orcamentaria. |
---|
60 | """ |
---|
61 | security = ClassSecurityInfo() |
---|
62 | __implements__ = (getattr(MovimentoOrcamentario,'__implements__',()),) + (getattr(BaseContent,'__implements__',()),) + (IMovimentoOrcamentarioSimulado,) |
---|
63 | |
---|
64 | |
---|
65 | # This name appears in the 'add' box |
---|
66 | archetype_name = 'Movimento Orcamentario Simulado' |
---|
67 | |
---|
68 | meta_type = 'MovimentoOrcamentarioSimulado' |
---|
69 | portal_type = 'MovimentoOrcamentarioSimulado' |
---|
70 | allowed_content_types = [] + list(getattr(MovimentoOrcamentario, 'allowed_content_types', [])) |
---|
71 | filter_content_types = 0 |
---|
72 | global_allow = 0 |
---|
73 | allow_discussion = 0 |
---|
74 | #content_icon = 'MovimentoOrcamentarioSimulado.gif' |
---|
75 | immediate_view = 'base_view' |
---|
76 | default_view = 'base_view' |
---|
77 | suppl_views = () |
---|
78 | typeDescription = "Movimento Orcamentario Simulado" |
---|
79 | typeDescMsgId = 'description_edit_movimentoorcamentariosimulado' |
---|
80 | |
---|
81 | schema = MovimentoOrcamentarioSimulado_schema |
---|
82 | |
---|
83 | ##code-section class-header #fill in your manual code here |
---|
84 | ##/code-section class-header |
---|
85 | |
---|
86 | |
---|
87 | #Methods |
---|
88 | #methods from Interface IMovimentoOrcamentarioSimulado |
---|
89 | |
---|
90 | security.declarePrivate('_titulo') |
---|
91 | def _titulo(self): |
---|
92 | """ |
---|
93 | Define um titulo personalizado para este objeto. |
---|
94 | """ |
---|
95 | |
---|
96 | return self.getNum_lancamento() |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | registerType(MovimentoOrcamentarioSimulado,PROJECTNAME) |
---|
101 | # end of class MovimentoOrcamentarioSimulado |
---|
102 | |
---|
103 | ##code-section module-footer #fill in your manual code here |
---|
104 | ##/code-section module-footer |
---|
105 | |
---|
106 | |
---|
107 | |
---|