source: publico/ILSAALRecursosHumanos/trunk/AdicionalTempoServico.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.9 KB
Linha 
1# File: AdicionalTempoServico.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.IAdicionalTempoServico import IAdicionalTempoServico
28
29
30from Products.Archetypes.SQLStorage import *
31# additional imports from tagged value 'import'
32from Products.ILSAAL.saalapi import *
33from DateTime import DateTime
34
35from Products.ILSAALRecursosHumanos.config import *
36##code-section module-header #fill in your manual code here
37##/code-section module-header
38
39schema=Schema((
40    DateTimeField('dat_inicio',
41        default=DateTime(),
42        widget=CalendarWidget(
43            label="Data Inicio",
44            description="Informe a data inicio",
45            format="%d/%m/%Y",
46            date_only=1,
47            label_msgid='ILSAALRecursosHumanos_label_dat_inicio',
48            description_msgid='ILSAALRecursosHumanos_help_dat_inicio',
49            i18n_domain='ILSAALRecursosHumanos',
50        )
51    ),
52
53    StringField('cod_tempo_servico',
54        widget=SelectionWidget(
55            label="Codigo Tempo de Servico",
56            description="Informe o codigo tempo de servico",
57            format="select",
58            label_msgid='ILSAALRecursosHumanos_label_cod_tempo_servico',
59            description_msgid='ILSAALRecursosHumanos_help_cod_tempo_servico',
60            i18n_domain='ILSAALRecursosHumanos',
61        ),
62        enforceVocabulary=1,
63        vocabulary=['1','2']
64    ),
65
66),
67)
68
69
70##code-section after-local-schema #fill in your manual code here
71##/code-section after-local-schema
72
73AdicionalTempoServico_schema = BaseSchema + \
74    schema
75
76##code-section after-schema #fill in your manual code here
77##/code-section after-schema
78
79class AdicionalTempoServico(BaseContent):
80    security = ClassSecurityInfo()
81    __implements__ = (getattr(BaseContent,'__implements__',()),) + (IAdicionalTempoServico,)
82
83
84    # This name appears in the 'add' box
85    archetype_name             = 'AdicionalTempoServico'
86
87    meta_type                  = 'AdicionalTempoServico'
88    portal_type                = 'AdicionalTempoServico'
89    allowed_content_types      = []
90    filter_content_types       = 0
91    global_allow               = 1
92    allow_discussion           = 0
93    #content_icon               = 'AdicionalTempoServico.gif'
94    immediate_view             = 'base_view'
95    default_view               = 'base_view'
96    suppl_views                = ()
97    typeDescription            = "AdicionalTempoServico"
98    typeDescMsgId              = 'description_edit_adicionaltemposervico'
99
100    schema = AdicionalTempoServico_schema
101
102    ##code-section class-header #fill in your manual code here
103    ##/code-section class-header
104
105
106    #Methods
107    #manually created methods
108
109    security.declarePublic('Title')
110    def Title(self):
111        """
112       
113        """
114       
115        pass
116
117
118
119registerType(AdicionalTempoServico,PROJECTNAME)
120# end of class AdicionalTempoServico
121
122##code-section module-footer #fill in your manual code here
123##/code-section module-footer
124
125
126
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.