source: publico/ILSAALRecursosHumanos/trunk/AdicionalTempoServico.py @ 1200

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

gerado a partir do novo modelo

File size: 4.2 KB
Linha 
1# File: AdicionalTempoServico.py
2#
3# Copyright (c) 2005 by Interlegis
4# Generator: ArchGenXML Version 1.4.0-RC1 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 <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        required=1
52    ),
53
54    StringField('cod_tempo_servico',
55        widget=SelectionWidget(
56            label="Codigo Tempo de Servico",
57            description="Informe o codigo tempo de servico.",
58            format="select",
59            label_msgid='ILSAALRecursosHumanos_label_cod_tempo_servico',
60            description_msgid='ILSAALRecursosHumanos_help_cod_tempo_servico',
61            i18n_domain='ILSAALRecursosHumanos',
62        ),
63        enforceVocabulary=1,
64        vocabulary=['1','2'],
65        required=1
66    ),
67
68),
69)
70
71
72##code-section after-local-schema #fill in your manual code here
73##/code-section after-local-schema
74
75AdicionalTempoServico_schema = BaseSchema + \
76    schema
77
78##code-section after-schema #fill in your manual code here
79##/code-section after-schema
80
81class AdicionalTempoServico(BaseContent):
82    security = ClassSecurityInfo()
83    __implements__ = (getattr(BaseContent,'__implements__',()),) + (IAdicionalTempoServico,)
84
85
86    # This name appears in the 'add' box
87    archetype_name             = 'AdicionalTempoServico'
88
89    meta_type                  = 'AdicionalTempoServico'
90    portal_type                = 'AdicionalTempoServico'
91    allowed_content_types      = []
92    filter_content_types       = 0
93    global_allow               = 1
94    allow_discussion           = 0
95    #content_icon               = 'AdicionalTempoServico.gif'
96    immediate_view             = 'base_view'
97    default_view               = 'base_view'
98    suppl_views                = ()
99    typeDescription            = "AdicionalTempoServico"
100    typeDescMsgId              = 'description_edit_adicionaltemposervico'
101
102    schema = AdicionalTempoServico_schema
103
104    ##code-section class-header #fill in your manual code here
105    ##/code-section class-header
106
107
108    #Methods
109    #methods from Interface IAdicionalTempoServico
110
111    security.declarePrivate('_titulo')
112    def _titulo(self):
113        """
114        Configuracao do titulo que esse objeto deseja disponibilizar.
115        """
116       
117        return str(self.getDat_inicio())
118
119
120    #manually created methods
121
122    security.declarePublic('Title')
123    def Title(self):
124        """
125       
126        """
127       
128        pass
129
130
131
132registerType(AdicionalTempoServico,PROJECTNAME)
133# end of class AdicionalTempoServico
134
135##code-section module-footer #fill in your manual code here
136##/code-section module-footer
137
138
139
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.