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

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

Normalizado o modelo, removendo-se as aspas dos tagged values e validadores, para que permita ao Zope levantar o serviço

File size: 3.4 KB
Linha 
1# File: Transferencia.py
2#
3# Copyright (c) 2005 by Interlegis
4# Generator: ArchGenXML Version 1.4.0-beta1 devel http://sf.net/projects/archetypes/
5#
6# GNU General Public Licence (GPL)
7#
8# This program is free software; you can redistribute it and/or modify it under
9# the terms of the GNU General Public License as published by the Free Software
10# Foundation; either version 2 of the License, or (at your option) any later
11# version.
12# This program is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
15# details.
16# You should have received a copy of the GNU General Public License along with
17# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18# Place, Suite 330, Boston, MA  02111-1307  USA
19#
20__author__  = '''STC Interlegis <admin-stc@interlegis.gov.br>'''
21__docformat__ = 'plaintext'
22
23from AccessControl import ClassSecurityInfo
24from Products.Archetypes.atapi import *
25
26from Movimento import Movimento
27
28
29from Products.Archetypes.SQLStorage import *
30from Products.ILSAALPatrimonio.config import *
31##code-section module-header #fill in your manual code here
32##/code-section module-header
33
34schema=Schema((
35    DateTimeField('dat_transferencia',
36        widget=CalendarWidget(
37            label="Data",
38            description="Informe a data da transferencia",
39            label_msgid='ILSAALPatrimonio_label_dat_transferencia',
40            description_msgid='ILSAALPatrimonio_help_dat_transferencia',
41            i18n_domain='ILSAALPatrimonio',
42        ),
43        required=1
44    ),
45   
46    IntegerField('cod_centro_custo_anterior',
47        widget=IntegerWidget(
48            label="Centro de Custo Anterior",
49            description="Informe o codigo do centro de custo anterior",
50            label_msgid='ILSAALPatrimonio_label_cod_centro_custo_anterior',
51            description_msgid='ILSAALPatrimonio_help_cod_centro_custo_anterior',
52            i18n_domain='ILSAALPatrimonio',
53        ),
54        required=1
55    ),
56   
57),
58)
59
60
61##code-section after-schema #fill in your manual code here
62##/code-section after-schema
63
64class Transferencia(Movimento,BaseContent):
65    """
66    Representa as tranferencias de bens do patrimonio
67    """
68    security = ClassSecurityInfo()
69    __implements__ = (getattr(Movimento,'__implements__',()),) + (getattr(BaseContent,'__implements__',()),)
70
71
72    # This name appears in the 'add' box
73    archetype_name             = 'Transferencia'
74
75    meta_type                  = 'Transferencia'
76    portal_type                = 'Transferencia'
77    allowed_content_types      = [] + list(getattr(Movimento, 'allowed_content_types', []))
78    filter_content_types       = 0
79    global_allow               = 0
80    allow_discussion           = 0
81    #content_icon               = 'Transferencia.gif'
82    immediate_view             = 'base_view'
83    default_view               = 'base_view'
84    typeDescription            = "Transferencia"
85    typeDescMsgId              = 'description_edit_transferencia'
86
87    schema = BaseSchema + \
88             getattr(Movimento,'schema',Schema(())) + \
89             schema
90
91    ##code-section class-header #fill in your manual code here
92    ##/code-section class-header
93
94
95    #Methods
96
97registerType(Transferencia,PROJECTNAME)
98# end of class Transferencia
99
100##code-section module-footer #fill in your manual code here
101##/code-section module-footer
102
103
104
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.