source: publico/ILSAALOrcamento/trunk/OrcamentoSimulado.py @ 952

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

resolucao do ticket #109

File size: 3.0 KB
Linha 
1# File: OrcamentoSimulado.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 Orcamento import Orcamento
28
29
30from Products.Archetypes.SQLStorage import *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33from DateTime import DateTime
34
35from Products.ILSAALOrcamento.config import *
36##code-section module-header #fill in your manual code here
37##/code-section module-header
38
39schema=Schema((
40),
41)
42
43
44##code-section after-local-schema #fill in your manual code here
45##/code-section after-local-schema
46
47OrcamentoSimulado_schema = BaseFolderSchema + \
48    getattr(Orcamento,'schema',Schema(())) + \
49    schema
50
51##code-section after-schema #fill in your manual code here
52##/code-section after-schema
53
54class OrcamentoSimulado(Orcamento,BaseFolder):
55    """
56    Para fins de simulacao, reproduz a posicao atualizada dos
57    valores orcamentarios
58    """
59    security = ClassSecurityInfo()
60    __implements__ = (getattr(Orcamento,'__implements__',()),) + (getattr(BaseFolder,'__implements__',()),)
61
62
63    # This name appears in the 'add' box
64    archetype_name             = 'Orcamento Simulado'
65
66    meta_type                  = 'OrcamentoSimulado'
67    portal_type                = 'OrcamentoSimulado'
68    allowed_content_types      = ['MovimentoOrcamentarioSimulado'] + list(getattr(Orcamento, 'allowed_content_types', []))
69    filter_content_types       = 1
70    global_allow               = 0
71    allow_discussion           = 0
72    #content_icon               = 'OrcamentoSimulado.gif'
73    immediate_view             = 'base_view'
74    default_view               = 'base_view'
75    suppl_views                = ()
76    typeDescription            = "Orcamento Simulado"
77    typeDescMsgId              = 'description_edit_orcamentosimulado'
78
79    schema = OrcamentoSimulado_schema
80
81    ##code-section class-header #fill in your manual code here
82    ##/code-section class-header
83
84   
85registerType(OrcamentoSimulado,PROJECTNAME)
86# end of class OrcamentoSimulado
87
88##code-section module-footer #fill in your manual code here
89##/code-section module-footer
90
91
92
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.