source: publico/ILSAALPatrimonio/trunk/CatalogoBem.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: 4.4 KB
Linha 
1# File: CatalogoBem.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('cod_grupo',
37        widget=IntegerWidget(
38            description="Informe o codigo do grupo",
39            label="Codigo do Grupo",
40            label_msgid='ILSAALPatrimonio_label_cod_grupo',
41            description_msgid='ILSAALPatrimonio_help_cod_grupo',
42            i18n_domain='ILSAALPatrimonio',
43        )
44    ),
45
46    IntegerField('cod_item',
47        widget=IntegerWidget(
48            description="Informe o codigo do item",
49            label="Codigo do Item",
50            label_msgid='ILSAALPatrimonio_label_cod_item',
51            description_msgid='ILSAALPatrimonio_help_cod_item',
52            i18n_domain='ILSAALPatrimonio',
53        )
54    ),
55
56    TextField('des_classificacao',
57        widget=TextAreaWidget(
58            description="Forneca uma descricao detalhada da clasificacao",
59            label="Classificacao",
60            label_msgid='ILSAALPatrimonio_label_des_classificacao',
61            description_msgid='ILSAALPatrimonio_help_des_classificacao',
62            i18n_domain='ILSAALPatrimonio',
63        )
64    ),
65
66    IntegerField('cod_classificacao',
67        widget=IntegerWidget(
68            description="Informe o codigo de classificacao do item",
69            label="Codigo da Classificacao",
70            label_msgid='ILSAALPatrimonio_label_cod_classificacao',
71            description_msgid='ILSAALPatrimonio_help_cod_classificacao',
72            i18n_domain='ILSAALPatrimonio',
73        )
74    ),
75
76
77    ReferenceField('cod_classe',
78        widget=ReferenceWidget(
79            label='Cod_classe',
80            label_msgid='ILSAALPatrimonio_label_cod_classe',
81            description_msgid='ILSAALPatrimonio_help_cod_classe',
82            i18n_domain='ILSAALPatrimonio',
83        ),
84        allowed_types=('CodClasse',),
85        multiValued=0,
86        relationship='CatalogoBem_CodClasse'
87    ),
88
89),
90)
91
92
93##code-section after-local-schema #fill in your manual code here
94##/code-section after-local-schema
95
96CatalogoBem_schema = BaseSchema + \
97    schema
98
99##code-section after-schema #fill in your manual code here
100##/code-section after-schema
101
102class CatalogoBem(BaseContent):
103    """
104    Representa o catalogo classificatorio dos bens do patrimonio
105    """
106    security = ClassSecurityInfo()
107    __implements__ = (getattr(BaseContent,'__implements__',()),)
108
109
110    # This name appears in the 'add' box
111    archetype_name             = 'CatalogoBem'
112
113    meta_type                  = 'CatalogoBem'
114    portal_type                = 'CatalogoBem'
115    allowed_content_types      = []
116    filter_content_types       = 0
117    global_allow               = 1
118    allow_discussion           = 0
119    #content_icon               = 'CatalogoBem.gif'
120    immediate_view             = 'base_view'
121    default_view               = 'base_view'
122    suppl_views                = ()
123    typeDescription            = "CatalogoBem"
124    typeDescMsgId              = 'description_edit_catalogobem'
125
126    schema = CatalogoBem_schema
127
128    ##code-section class-header #fill in your manual code here
129    ##/code-section class-header
130
131
132    #Methods
133
134registerType(CatalogoBem,PROJECTNAME)
135# end of class CatalogoBem
136
137##code-section module-footer #fill in your manual code here
138##/code-section module-footer
139
140
141
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.