source: publico/ILSAALRecursosHumanos/trunk/Sindicato.py @ 918

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

Implementada a documentação das classes do módulo de recursos humanos, mas faltam várias definições ainda que não estão na documentação

File size: 3.5 KB
Linha 
1# File: Sindicato.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 <admin-stc@interlegis.gov.br>'''
22__docformat__ = 'plaintext'
23
24
25from AccessControl import ClassSecurityInfo
26from Products.Archetypes.atapi import *
27from Products.ILSAALRecursosHumanos.interfaces.ISindicato import ISindicato
28
29
30from Products.Archetypes.SQLStorage import *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33
34from Products.ILSAALRecursosHumanos.config import *
35##code-section module-header #fill in your manual code here
36##/code-section module-header
37
38schema=Schema((
39    IntegerField('cod_cnpj',
40        widget=IntegerWidget(
41            label="CNPJ",
42            description="Preencha o CNPJ do Sindicato",
43            label_msgid='ILSAALRecursosHumanos_label_cod_cnpj',
44            description_msgid='ILSAALRecursosHumanos_help_cod_cnpj',
45            i18n_domain='ILSAALRecursosHumanos',
46        ),
47        required=1
48    ),
49
50    StringField('nom_sindicato',
51        widget=StringWidget(
52            label="Nome do Sindicato",
53            description="Preencha o Nome do Sindicato",
54            label_msgid='ILSAALRecursosHumanos_label_nom_sindicato',
55            description_msgid='ILSAALRecursosHumanos_help_nom_sindicato',
56            i18n_domain='ILSAALRecursosHumanos',
57        ),
58        requered="1"
59    ),
60
61),
62)
63
64
65##code-section after-local-schema #fill in your manual code here
66##/code-section after-local-schema
67
68Sindicato_schema = BaseSchema + \
69    schema
70
71##code-section after-schema #fill in your manual code here
72##/code-section after-schema
73
74class Sindicato(BaseContent):
75    security = ClassSecurityInfo()
76    __implements__ = (getattr(BaseContent,'__implements__',()),) + (ISindicato,)
77
78
79    # This name appears in the 'add' box
80    archetype_name             = 'Sindicato'
81
82    meta_type                  = 'Sindicato'
83    portal_type                = 'Sindicato'
84    allowed_content_types      = []
85    filter_content_types       = 0
86    global_allow               = 1
87    allow_discussion           = 0
88    #content_icon               = 'Sindicato.gif'
89    immediate_view             = 'base_view'
90    default_view               = 'base_view'
91    suppl_views                = ()
92    typeDescription            = "Sindicato"
93    typeDescMsgId              = 'description_edit_sindicato'
94
95    schema = Sindicato_schema
96
97    ##code-section class-header #fill in your manual code here
98    ##/code-section class-header
99
100
101    #Methods
102    #manually created methods
103
104    security.declarePublic('Title')
105    def Title(self):
106        """
107       
108        """
109       
110        pass
111
112
113
114registerType(Sindicato,PROJECTNAME)
115# end of class Sindicato
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.