source: publico/ILSAALPatrimonio/trunk/Bens.py @ 450

Última Alteração nesse arquivo desde 450 foi 450, incluída por jeanferri, 15 anos atrás

Normalizado o modelo, removendo-se as aspas dos tagged values e validadores, para que permita ao Zope levantar o serviço

File size: 2.4 KB
Linha 
1# File: Bens.py
2#
3# Copyright (c) 2005 by Interlegis
4# Generator: ArchGenXML Version 1.4.0-beta1 devel http://sf.net/projects/archetypes/
5#
6# GNU General Public Licence (GPL)
7#
8# This program is free software; you can redistribute it and/or modify it under
9# the terms of the GNU General Public License as published by the Free Software
10# Foundation; either version 2 of the License, or (at your option) any later
11# version.
12# This program is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
15# details.
16# You should have received a copy of the GNU General Public License along with
17# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
18# Place, Suite 330, Boston, MA  02111-1307  USA
19#
20__author__  = '''STC Interlegis <admin-stc@interlegis.gov.br>'''
21__docformat__ = 'plaintext'
22
23from AccessControl import ClassSecurityInfo
24from Products.Archetypes.atapi import *
25
26
27
28
29from Products.Archetypes.SQLStorage import *
30from Products.ILSAALPatrimonio.config import *
31##code-section module-header #fill in your manual code here
32##/code-section module-header
33
34schema=Schema((
35),
36)
37
38
39##code-section after-schema #fill in your manual code here
40##/code-section after-schema
41
42class Bens(BaseFolder):
43    """
44    Um objeto do tipo Bens atua como um repositorio de objetos do
45    tipo Bem.
46    """
47    security = ClassSecurityInfo()
48    __implements__ = (getattr(BaseFolder,'__implements__',()),)
49
50
51    # This name appears in the 'add' box
52    archetype_name             = 'Bens'
53
54    meta_type                  = 'Bens'
55    portal_type                = 'Bens'
56    allowed_content_types      = ['Bem']
57    filter_content_types       = 1
58    global_allow               = 0
59    allow_discussion           = 0
60    #content_icon               = 'Bens.gif'
61    immediate_view             = 'base_view'
62    default_view               = 'base_view'
63    typeDescription            = "Bens"
64    typeDescMsgId              = 'description_edit_bens'
65
66    schema = BaseFolderSchema + \
67             schema
68
69    ##code-section class-header #fill in your manual code here
70    ##/code-section class-header
71
72
73    #Methods
74
75registerType(Bens,PROJECTNAME)
76# end of class Bens
77
78##code-section module-footer #fill in your manual code here
79##/code-section module-footer
80
81
82
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.