source: publico/ILSAALMaterial/trunk/Fechamento.py @ 770

Última Alteração nesse arquivo desde 770 foi 770, incluída por edsonma, 14 anos atrás

Codigo gerado do modelo revisado - ticket #92

File size: 4.1 KB
Linha 
1# File: Fechamento.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
25from AccessControl import ClassSecurityInfo
26from Products.Archetypes.atapi import *
27from Products.ILSAALMaterial.interfaces.IFechamento import IFechamento
28
29
30from Products.Archetypes.SQLStorage import *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33
34from Products.ILSAALMaterial.config import *
35##code-section module-header #fill in your manual code here
36##/code-section module-header
37
38schema=Schema((
39    DateTimeField('dat_fechamento',
40        widget=CalendarWidget(
41            label="Fechamento",
42            description="Data ano/mes de referencia do fechamento.",
43            label_msgid='ILSAALMaterial_label_dat_fechamento',
44            description_msgid='ILSAALMaterial_help_dat_fechamento',
45            i18n_domain='ILSAALMaterial',
46        ),
47        required=1
48    ),
49
50    DateTimeField('dat_inicio',
51        widget=CalendarWidget(
52            label="Inicio",
53            description="Data inicio do periodo do fechamento.",
54            date_only="pyhton:1",
55            format="%d/%m%Y",
56            label_msgid='ILSAALMaterial_label_dat_inicio',
57            description_msgid='ILSAALMaterial_help_dat_inicio',
58            i18n_domain='ILSAALMaterial',
59        ),
60        required=1
61    ),
62
63    DateTimeField('dat_fim',
64        widget=CalendarWidget(
65            label="Fim",
66            description="Data fim do periodo do fechamento.",
67            date_only=1,
68            format="%d/%m/%Y",
69            label_msgid='ILSAALMaterial_label_dat_fim',
70            description_msgid='ILSAALMaterial_help_dat_fim',
71            i18n_domain='ILSAALMaterial',
72        ),
73        required=1
74    ),
75
76),
77)
78
79
80##code-section after-local-schema #fill in your manual code here
81##/code-section after-local-schema
82
83Fechamento_schema = BaseFolderSchema + \
84    schema
85
86##code-section after-schema #fill in your manual code here
87##/code-section after-schema
88
89class Fechamento(BaseFolder):
90    """
91    Define o fechamento mensal.
92    """
93    security = ClassSecurityInfo()
94    __implements__ = (getattr(BaseFolder,'__implements__',()),) + (IFechamento,)
95
96
97    # This name appears in the 'add' box
98    archetype_name             = 'Fechamento'
99
100    meta_type                  = 'Fechamento'
101    portal_type                = 'Fechamento'
102    allowed_content_types      = ['Consolidacao']
103    filter_content_types       = 1
104    global_allow               = 0
105    allow_discussion           = 0
106    #content_icon               = 'Fechamento.gif'
107    immediate_view             = 'base_view'
108    default_view               = 'base_view'
109    suppl_views                = ()
110    typeDescription            = "Fechamento"
111    typeDescMsgId              = 'description_edit_fechamento'
112
113    schema = Fechamento_schema
114
115    ##code-section class-header #fill in your manual code here
116    ##/code-section class-header
117
118
119    #Methods
120    #methods from Interface IFechamento
121
122    security.declarePrivate('_titulo')
123    def _titulo(self):
124        """
125       
126        """
127       
128        pass
129
130
131
132registerType(Fechamento,PROJECTNAME)
133# end of class Fechamento
134
135##code-section module-footer #fill in your manual code here
136##/code-section module-footer
137
138
139
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.