source: publico/ILSAALPatrimonio/trunk/Fornecedores.py @ 958

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

Regerado o código para o novo modelo do Patrimônio

File size: 3.0 KB
Linha 
1# File: Fornecedores.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.CMFCore.utils import UniqueObject
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),
37)
38
39
40##code-section after-local-schema #fill in your manual code here
41##/code-section after-local-schema
42
43Fornecedores_schema = BaseBTreeFolderSchema + \
44    getattr(UniqueObject,'schema',Schema(())) + \
45    schema
46
47##code-section after-schema #fill in your manual code here
48##/code-section after-schema
49
50class Fornecedores(UniqueObject,BaseBTreeFolder):
51    """
52    Classe que define o container de objetos Fornecedores.
53    """
54    security = ClassSecurityInfo()
55    __implements__ = (getattr(UniqueObject,'__implements__',()),) + (getattr(BaseBTreeFolder,'__implements__',()),)
56
57
58    # This name appears in the 'add' box
59    archetype_name             = 'Fornecedores'
60
61    meta_type                  = 'Fornecedores'
62    portal_type                = 'Fornecedores'
63    allowed_content_types      = ['Fornecedor'] + list(getattr(UniqueObject, 'allowed_content_types', []))
64    filter_content_types       = 1
65    global_allow               = 0
66    allow_discussion           = 0
67    #content_icon               = 'Fornecedores.gif'
68    immediate_view             = 'base_view'
69    default_view               = 'base_view'
70    suppl_views                = ()
71    typeDescription            = "Fornecedores"
72    typeDescMsgId              = 'description_edit_fornecedores'
73
74    schema = Fornecedores_schema
75
76    ##code-section class-header #fill in your manual code here
77    ##/code-section class-header
78
79
80    #Methods
81
82    # Use class/module security defaults
83    def __init__(self,id=None):
84        """
85       
86        """
87       
88        pass
89
90
91
92registerType(Fornecedores,PROJECTNAME)
93# end of class Fornecedores
94
95##code-section module-footer #fill in your manual code here
96##/code-section module-footer
97
98
99
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.