source: publico/ILSAALPatrimonio/trunk/CentrosDeCusto.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.2 KB
Linha 
1# File: CentrosDeCusto.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 *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33
34from Products.ILSAALPatrimonio.config import *
35##code-section module-header #fill in your manual code here
36##/code-section module-header
37
38schema=Schema((
39),
40)
41
42
43##code-section after-local-schema #fill in your manual code here
44##/code-section after-local-schema
45
46CentrosDeCusto_schema = BaseBTreeFolderSchema + \
47    getattr(UniqueObject,'schema',Schema(())) + \
48    schema
49
50##code-section after-schema #fill in your manual code here
51##/code-section after-schema
52
53class CentrosDeCusto(UniqueObject,BaseBTreeFolder):
54    """
55    Um objeto do tipo CentrosDeCusto atua como um repositorio de
56    objetos do tipo CentroCusto.
57    """
58    security = ClassSecurityInfo()
59    __implements__ = (getattr(UniqueObject,'__implements__',()),) + (getattr(BaseBTreeFolder,'__implements__',()),)
60
61
62    # This name appears in the 'add' box
63    archetype_name             = 'Pasta de Centros de Custo'
64
65    meta_type                  = 'CentrosDeCusto'
66    portal_type                = 'CentrosDeCusto'
67    allowed_content_types      = ['CentroCusto'] + list(getattr(UniqueObject, 'allowed_content_types', []))
68    filter_content_types       = 1
69    global_allow               = 0
70    allow_discussion           = 0
71    #content_icon               = 'CentrosDeCusto.gif'
72    immediate_view             = 'base_view'
73    default_view               = 'base_view'
74    suppl_views                = ()
75    typeDescription            = "Pasta de Centros de Custo"
76    typeDescMsgId              = 'description_edit_centrosdecusto'
77
78    schema = CentrosDeCusto_schema
79
80    ##code-section class-header #fill in your manual code here
81    ##/code-section class-header
82
83
84    #Methods
85
86    # Use class/module security defaults
87    def __init__(self,id=None):
88        """
89        Construtor da classe. Fixa o id para nao ser mais alterado.
90        """
91       
92        BaseBTreeFolder.__init__(self, 'centros_de_custo')
93
94
95
96registerType(CentrosDeCusto,PROJECTNAME)
97# end of class CentrosDeCusto
98
99##code-section module-footer #fill in your manual code here
100##/code-section module-footer
101
102
103
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.