source: publico/ILIntranet/trunk/PastaLigacaoInterurbana.py @ 486

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

Criados os índices e metadados do catálogo para a view da pasta

File size: 2.8 KB
Linha 
1# File: PastaLigacaoInterurbana.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.ILIntranet.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 PastaLigacaoInterurbana(BaseBTreeFolder):
43    security = ClassSecurityInfo()
44    __implements__ = (getattr(BaseBTreeFolder,'__implements__',()),)
45
46
47    # This name appears in the 'add' box
48    archetype_name             = 'Ligacoes Interurbanas'
49
50    meta_type                  = 'PastaLigacaoInterurbana'
51    portal_type                = 'PastaLigacaoInterurbana'
52    allowed_content_types      = ['LigacaoInterurbana']
53    filter_content_types       = 1
54    global_allow               = 1
55    allow_discussion           = 0
56    #content_icon               = 'PastaLigacaoInterurbana.gif'
57    immediate_view             = 'base_view'
58    default_view               = 'base_view'
59    typeDescription            = "Ligacoes Interurbanas"
60    typeDescMsgId              = 'description_edit_pastaligacaointerurbana'
61
62    actions =  (
63
64
65       {'action':      "string:$object_url/ligacoesinterurbanas_view",
66        'category':    "object",
67        'id':          'view',
68        'name':        'View',
69        'permissions': ("View",),
70        'condition'  : 'python:1'
71       },
72       
73
74    )
75
76    schema = BaseBTreeFolderSchema + \
77             schema
78
79    ##code-section class-header #fill in your manual code here
80    ##/code-section class-header
81
82
83    #Methods
84
85registerType(PastaLigacaoInterurbana,PROJECTNAME)
86# end of class PastaLigacaoInterurbana
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.