source: publico/ILSAALPatrimonio/trunk/Transferencia.py @ 895

Última Alteração nesse arquivo desde 895 foi 895, incluída por jeanferri, 15 anos atrás

Corrigida toda a documentação das classes do patrimônio baseado na documentação do Colab

File size: 3.7 KB
Linha 
1# File: Transferencia.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 Movimento import Movimento
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    DateTimeField('dat_transferencia',
37        widget=CalendarWidget(
38            label="Data",
39            description="Informe a data da transferencia",
40            label_msgid='ILSAALPatrimonio_label_dat_transferencia',
41            description_msgid='ILSAALPatrimonio_help_dat_transferencia',
42            i18n_domain='ILSAALPatrimonio',
43        ),
44        required=1
45    ),
46
47    IntegerField('cod_centro_custo_anterior',
48        widget=IntegerWidget(
49            label="Centro de Custo Anterior",
50            description="Informe o codigo do centro de custo anterior",
51            label_msgid='ILSAALPatrimonio_label_cod_centro_custo_anterior',
52            description_msgid='ILSAALPatrimonio_help_cod_centro_custo_anterior',
53            i18n_domain='ILSAALPatrimonio',
54        ),
55        required=1
56    ),
57
58),
59)
60
61
62##code-section after-local-schema #fill in your manual code here
63##/code-section after-local-schema
64
65Transferencia_schema = BaseSchema + \
66    getattr(Movimento,'schema',Schema(())) + \
67    schema
68
69##code-section after-schema #fill in your manual code here
70##/code-section after-schema
71
72class Transferencia(Movimento,BaseContent):
73    """
74    Contem registros das movimentacoes dos bens entre as Unidades na
75    Casa Legislativa. Cada instancia refere-se a movimentacao de um
76    bem.
77    """
78    security = ClassSecurityInfo()
79    __implements__ = (getattr(Movimento,'__implements__',()),) + (getattr(BaseContent,'__implements__',()),)
80
81
82    # This name appears in the 'add' box
83    archetype_name             = 'Transferencia'
84
85    meta_type                  = 'Transferencia'
86    portal_type                = 'Transferencia'
87    allowed_content_types      = [] + list(getattr(Movimento, 'allowed_content_types', []))
88    filter_content_types       = 0
89    global_allow               = 0
90    allow_discussion           = 0
91    #content_icon               = 'Transferencia.gif'
92    immediate_view             = 'base_view'
93    default_view               = 'base_view'
94    suppl_views                = ()
95    typeDescription            = "Transferencia"
96    typeDescMsgId              = 'description_edit_transferencia'
97
98    schema = Transferencia_schema
99
100    ##code-section class-header #fill in your manual code here
101    ##/code-section class-header
102
103
104    #Methods
105
106registerType(Transferencia,PROJECTNAME)
107# end of class Transferencia
108
109##code-section module-footer #fill in your manual code here
110##/code-section module-footer
111
112
113
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.