source: publico/ILSAALMaterial/trunk/Almoxarifado.py @ 770

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

Codigo gerado do modelo revisado - ticket #92

File size: 4.1 KB
Linha 
1# File: Almoxarifado.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 Products.ILSAALMaterial.interfaces.IAlmoxarifado import IAlmoxarifado
28
29
30from Products.Archetypes.SQLStorage import *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33
34from Products.ILSAALMaterial.config import *
35##code-section module-header #fill in your manual code here
36##/code-section module-header
37
38schema=Schema((
39    StringField('cod_local_armazenamento',
40        widget=StringWidget(
41            label="Local",
42            description="Informe o codigo do local de armazenamento do material.",
43            label_msgid='ILSAALMaterial_label_cod_local_armazenamento',
44            description_msgid='ILSAALMaterial_help_cod_local_armazenamento',
45            i18n_domain='ILSAALMaterial',
46        ),
47        required=1
48    ),
49
50    TextField('des_local_armazenamento',
51        widget=TextAreaWidget(
52            label="Descricao",
53            description="Descreva o local onde os itens estao armazendados.",
54            label_msgid='ILSAALMaterial_label_des_local_armazenamento',
55            description_msgid='ILSAALMaterial_help_des_local_armazenamento',
56            i18n_domain='ILSAALMaterial',
57        ),
58        required=1
59    ),
60
61    StringField('tip_local_armazenamento',
62        widget=StringWidget(
63            label="Tipo",
64            description="Informe o tipo do local onde o item esta armazenado.",
65            label_msgid='ILSAALMaterial_label_tip_local_armazenamento',
66            description_msgid='ILSAALMaterial_help_tip_local_armazenamento',
67            i18n_domain='ILSAALMaterial',
68        ),
69        required=1
70    ),
71
72),
73)
74
75
76##code-section after-local-schema #fill in your manual code here
77##/code-section after-local-schema
78
79Almoxarifado_schema = BaseFolderSchema + \
80    schema
81
82##code-section after-schema #fill in your manual code here
83##/code-section after-schema
84
85class Almoxarifado(BaseFolder):
86    """
87    Representa o local de armazenamento do material.
88    """
89    security = ClassSecurityInfo()
90    __implements__ = (getattr(BaseFolder,'__implements__',()),) + (IAlmoxarifado,)
91
92
93    # This name appears in the 'add' box
94    archetype_name             = 'Almoxarifado'
95
96    meta_type                  = 'Almoxarifado'
97    portal_type                = 'Almoxarifado'
98    allowed_content_types      = ['Estoque']
99    filter_content_types       = 1
100    global_allow               = 0
101    allow_discussion           = 0
102    #content_icon               = 'Almoxarifado.gif'
103    immediate_view             = 'base_view'
104    default_view               = 'base_view'
105    suppl_views                = ()
106    typeDescription            = "Almoxarifado"
107    typeDescMsgId              = 'description_edit_almoxarifado'
108
109    schema = Almoxarifado_schema
110
111    ##code-section class-header #fill in your manual code here
112    ##/code-section class-header
113
114
115    #Methods
116    #methods from Interface IAlmoxarifado
117
118    security.declarePrivate('_titulo')
119    def _titulo(self):
120        """
121       
122        """
123       
124        pass
125
126
127
128registerType(Almoxarifado,PROJECTNAME)
129# end of class Almoxarifado
130
131##code-section module-footer #fill in your manual code here
132##/code-section module-footer
133
134
135
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.