source: publico/ILSAALPatrimonio/trunk/CodClasse.py @ 971

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

Gerado o código para o novo modelo em 18/10/2005.

File size: 3.5 KB
Linha 
1# File: CodClasse.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 *
27from Products.ILSAALPatrimonio.Interface.ICodClasse import ICodClasse
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('cod_classe',
37        widget=IntegerWidget(
38            label="Codigo da Classe",
39            description="Informe o codigo da classe",
40            label_msgid='ILSAALPatrimonio_label_cod_classe',
41            description_msgid='ILSAALPatrimonio_help_cod_classe',
42            i18n_domain='ILSAALPatrimonio',
43        ),
44        required=1
45    ),
46
47    IntegerField('cod_conta_contabilidade',
48        widget=IntegerWidget(
49            label="Codigo da Conta",
50            description="Informe o codigo da conta",
51            label_msgid='ILSAALPatrimonio_label_cod_conta_contabilidade',
52            description_msgid='ILSAALPatrimonio_help_cod_conta_contabilidade',
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
65CodClasse_schema = BaseSchema + \
66    schema
67
68##code-section after-schema #fill in your manual code here
69##/code-section after-schema
70
71class CodClasse(BaseContent):
72    """
73    Representa o codigo de classe
74    """
75    security = ClassSecurityInfo()
76    __implements__ = (getattr(BaseContent,'__implements__',()),) + (ICodClasse,)
77
78
79    # This name appears in the 'add' box
80    archetype_name             = 'CodClasse'
81
82    meta_type                  = 'CodClasse'
83    portal_type                = 'CodClasse'
84    allowed_content_types      = []
85    filter_content_types       = 0
86    global_allow               = 0
87    allow_discussion           = 0
88    #content_icon               = 'CodClasse.gif'
89    immediate_view             = 'base_view'
90    default_view               = 'base_view'
91    suppl_views                = ()
92    typeDescription            = "CodClasse"
93    typeDescMsgId              = 'description_edit_codclasse'
94
95    schema = CodClasse_schema
96
97    ##code-section class-header #fill in your manual code here
98    ##/code-section class-header
99
100
101    #Methods
102    #methods from Interface ICodClasse
103
104    security.declarePrivate('_titulo')
105    def _titulo(self):
106        """
107       
108        """
109       
110        pass
111
112
113
114registerType(CodClasse,PROJECTNAME)
115# end of class CodClasse
116
117##code-section module-footer #fill in your manual code here
118##/code-section module-footer
119
120
121
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.