source: publico/ILCertificados/trunk/AssinaturaCertificado.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: AssinaturaCertificado.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    StringField(
40        name='nome',
41        widget=StringWidget(
42            label='Nome',
43            label_msgid='ILCertificados_label_nome',
44            i18n_domain='ILCertificados',
45        )
46    ),
47
48    StringField(
49        name='funcao',
50        widget=StringWidget(
51            label='Funcao',
52            label_msgid='ILCertificados_label_funcao',
53            i18n_domain='ILCertificados',
54        )
55    ),
56
57    StringField(
58        name='imagem',
59        widget=StringWidget(
60            label='Imagem',
61            label_msgid='ILCertificados_label_imagem',
62            i18n_domain='ILCertificados',
63        )
64    ),
65
66),
67)
68
69##code-section after-local-schema #fill in your manual code here
70##/code-section after-local-schema
71
72AssinaturaCertificado_schema = BaseSchema.copy() + \
73    schema.copy()
74
75##code-section after-schema #fill in your manual code here
76##/code-section after-schema
77
78class AssinaturaCertificado(BaseContent):
79    """
80    """
81    security = ClassSecurityInfo()
82    __implements__ = (getattr(BaseContent,'__implements__',()),)
83
84    # This name appears in the 'add' box
85    archetype_name = 'AssinaturaCertificado'
86
87    meta_type = 'AssinaturaCertificado'
88    portal_type = 'AssinaturaCertificado'
89    allowed_content_types = []
90    filter_content_types = 0
91    global_allow = 0
92    #content_icon = 'AssinaturaCertificado.gif'
93    immediate_view = 'base_view'
94    default_view = 'base_view'
95    suppl_views = ()
96    typeDescription = "AssinaturaCertificado"
97    typeDescMsgId = 'description_edit_assinaturacertificado'
98
99    _at_rename_after_creation = True
100
101    schema = AssinaturaCertificado_schema
102
103    ##code-section class-header #fill in your manual code here
104    ##/code-section class-header
105
106    # Methods
107
108registerType(AssinaturaCertificado, PROJECTNAME)
109# end of class AssinaturaCertificado
110
111##code-section module-footer #fill in your manual code here
112##/code-section module-footer
113
114
115
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.