source: publico/ILSAALPatrimonio/trunk/Parametro.py @ 946

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

Codigo gerado do modelo Patromonio para resolver ticker #88

File size: 3.8 KB
Linha 
1# File: Parametro.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 <stc@interlegis.gov.br>'''
22__docformat__ = 'plaintext'
23
24
25from AccessControl import ClassSecurityInfo
26from Products.Archetypes.atapi import *
27
28
29
30from Products.Archetypes.SQLStorage import *
31from Products.ILSAALPatrimonio.config import *
32##code-section module-header #fill in your manual code here
33##/code-section module-header
34
35schema=Schema((
36    IntegerField('ano_mes_referencia',
37        widget=IntegerWidget(
38            label="Ano e Mes de Referencia",
39            description="Informe o ano e o mes de referencia",
40            label_msgid='ILSAALPatrimonio_label_ano_mes_referencia',
41            description_msgid='ILSAALPatrimonio_help_ano_mes_referencia',
42            i18n_domain='ILSAALPatrimonio',
43        ),
44        required=1
45    ),
46
47    IntegerField('cod_sit_movimento',
48        widget=IntegerWidget(
49            label="Situacao do Movimento",
50            description="Informe o codigo da situacao do movimento",
51            label_msgid='ILSAALPatrimonio_label_cod_sit_movimento',
52            description_msgid='ILSAALPatrimonio_help_cod_sit_movimento',
53            i18n_domain='ILSAALPatrimonio',
54        ),
55        required=1
56    ),
57
58    DateTimeField('dat_referencia',
59        widget=CalendarWidget(
60            label="Data de Referencia",
61            description="Informe a data de referencia",
62            format="%d/%m/%Y",
63            date_only=1,
64            label_msgid='ILSAALPatrimonio_label_dat_referencia',
65            description_msgid='ILSAALPatrimonio_help_dat_referencia',
66            i18n_domain='ILSAALPatrimonio',
67        ),
68        required=1
69    ),
70
71),
72)
73
74
75##code-section after-local-schema #fill in your manual code here
76##/code-section after-local-schema
77
78Parametro_schema = BaseSchema + \
79    schema
80
81##code-section after-schema #fill in your manual code here
82##/code-section after-schema
83
84class Parametro(BaseContent):
85    """
86    Representa a pasta com os movimentos mensais
87    """
88    security = ClassSecurityInfo()
89    __implements__ = (getattr(BaseContent,'__implements__',()),)
90
91
92    # This name appears in the 'add' box
93    archetype_name             = 'Parametro'
94
95    meta_type                  = 'Parametro'
96    portal_type                = 'Parametro'
97    allowed_content_types      = ['Transferencia', 'Baixa', 'Alteracao', 'Depreciacao']
98    filter_content_types       = 0
99    global_allow               = 0
100    allow_discussion           = 0
101    #content_icon               = 'Parametro.gif'
102    immediate_view             = 'base_view'
103    default_view               = 'base_view'
104    suppl_views                = ()
105    typeDescription            = "Parametro"
106    typeDescMsgId              = 'description_edit_parametro'
107
108    schema = Parametro_schema
109
110    ##code-section class-header #fill in your manual code here
111    ##/code-section class-header
112
113
114    #Methods
115
116registerType(Parametro,PROJECTNAME)
117# end of class Parametro
118
119##code-section module-footer #fill in your manual code here
120##/code-section module-footer
121
122
123
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.