source: publico/ILCertificados/trunk/Certificados.py @ 2674

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

Importação do produto de certificados on-line

File size: 3.1 KB
Linha 
1# -*- coding: utf-8 -*-
2#
3# File: Certificados.py
4#
5# Copyright (c) 2006 by Interlegis
6# Generator: ArchGenXML
7#            http://plone.org/products/archgenxml
8#
9# GNU General Public License (GPL)
10#
11# This program is free software; you can redistribute it and/or
12# modify it under the terms of the GNU General Public License
13# as published by the Free Software Foundation; either version 2
14# of the License, or (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24# 02110-1301, USA.
25#
26
27__author__ = """STC Interlegis <admin-stc@interlegis.gov.br>"""
28__docformat__ = 'plaintext'
29
30from AccessControl import ClassSecurityInfo
31from Products.Archetypes.atapi import *
32from Products.ILCertificados.config import *
33
34##code-section module-header #fill in your manual code here
35##/code-section module-header
36
37schema = Schema((
38
39    LinesField(
40        name='tipos',
41        widget=LinesWidget(
42            label='Tipos',
43            label_msgid='ILCertificados_label_tipos',
44            i18n_domain='ILCertificados',
45        )
46    ),
47
48    LinesField(
49        name='papeis',
50        widget=LinesWidget(
51            label='Papeis',
52            label_msgid='ILCertificados_label_papeis',
53            i18n_domain='ILCertificados',
54        )
55    ),
56
57),
58)
59
60##code-section after-local-schema #fill in your manual code here
61##/code-section after-local-schema
62
63Certificados_schema = BaseBTreeFolderSchema.copy() + \
64    schema.copy()
65
66##code-section after-schema #fill in your manual code here
67##/code-section after-schema
68
69class Certificados(BaseBTreeFolder):
70    """
71    """
72    security = ClassSecurityInfo()
73    __implements__ = (getattr(BaseBTreeFolder,'__implements__',()),)
74
75    # This name appears in the 'add' box
76    archetype_name = 'Certificados'
77
78    meta_type = 'Certificados'
79    portal_type = 'Certificados'
80    allowed_content_types = ['TemplateCertificado', 'AssinaturaCertificado', 'EventoCertificado']
81    filter_content_types = 1
82    global_allow = 1
83    #content_icon = 'Certificados.gif'
84    immediate_view = 'base_view'
85    default_view = 'base_view'
86    suppl_views = ()
87    typeDescription = "Certificados"
88    typeDescMsgId = 'description_edit_certificados'
89
90
91    actions =  (
92
93
94       {'action': "string:${object_url}/certificados_view",
95        'category': "object",
96        'id': 'view',
97        'name': 'View',
98        'permissions': ("View",),
99        'condition': 'python:1'
100       },
101
102
103    )
104
105    _at_rename_after_creation = True
106
107    schema = Certificados_schema
108
109    ##code-section class-header #fill in your manual code here
110    ##/code-section class-header
111
112    # Methods
113
114registerType(Certificados, PROJECTNAME)
115# end of class Certificados
116
117##code-section module-footer #fill in your manual code here
118##/code-section module-footer
119
120
121
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.