source: publico/ILSAALOrcamento/trunk/OrcamentoReal.py @ 849

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

Implementado _titulo em algumas classes

File size: 3.2 KB
Linha 
1# File: OrcamentoReal.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 Orcamento import Orcamento
28from Products.ILSAALOrcamento.interfaces.IOrcamentoReal import IOrcamentoReal
29
30
31from Products.Archetypes.SQLStorage import *
32# additional imports from tagged value 'import'
33from Products.ILSAAL.saalapi import *
34from DateTime import DateTime
35
36from Products.ILSAALOrcamento.config import *
37##code-section module-header #fill in your manual code here
38##/code-section module-header
39
40schema=Schema((
41),
42)
43
44
45##code-section after-local-schema #fill in your manual code here
46##/code-section after-local-schema
47
48OrcamentoReal_schema = BaseFolderSchema + \
49    getattr(Orcamento,'schema',Schema(())) + \
50    schema
51
52##code-section after-schema #fill in your manual code here
53##/code-section after-schema
54
55class OrcamentoReal(Orcamento,BaseFolder):
56    security = ClassSecurityInfo()
57    __implements__ = (getattr(Orcamento,'__implements__',()),) + (getattr(BaseFolder,'__implements__',()),) + (IOrcamentoReal,)
58
59
60    # This name appears in the 'add' box
61    archetype_name             = 'Orcamento Real'
62
63    meta_type                  = 'OrcamentoReal'
64    portal_type                = 'OrcamentoReal'
65    allowed_content_types      = ['MovimentoOrcamentarioReal'] + list(getattr(Orcamento, 'allowed_content_types', []))
66    filter_content_types       = 1
67    global_allow               = 0
68    allow_discussion           = 0
69    #content_icon               = 'OrcamentoReal.gif'
70    immediate_view             = 'base_view'
71    default_view               = 'base_view'
72    suppl_views                = ()
73    typeDescription            = "Orcamento Real"
74    typeDescMsgId              = 'description_edit_orcamentoreal'
75
76    schema = OrcamentoReal_schema
77
78    ##code-section class-header #fill in your manual code here
79    ##/code-section class-header
80
81
82    #Methods
83    #methods from Interface IOrcamentoReal
84
85    security.declarePrivate('_titulo')
86    def _titulo(self):
87        """
88        Define um titulo personalizado para este objeto.
89        """
90       
91        return self.getAno_exercicio()
92
93
94
95registerType(OrcamentoReal,PROJECTNAME)
96# end of class OrcamentoReal
97
98##code-section module-footer #fill in your manual code here
99##/code-section module-footer
100
101
102
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.