source: publico/ILSAALRecursosHumanos/trunk/AdicionalTempoServico.py

Última Alteração nesse arquivo foi 1526, incluída por jeanferri, 15 anos atrás

Atualizada a versão do ArchGenXml para a 1.4RC2

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