source: publico/ILSAALRecursosHumanos/trunk/Afastamento.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: Afastamento.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.IAfastamento import IAfastamento
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    StringField('cod_motivo',
40        widget=SelectionWidget(
41            label="Codigo do Motivo",
42            description="Preencha o Motivo",
43            label_msgid='ILSAALRecursosHumanos_label_cod_motivo',
44            description_msgid='ILSAALRecursosHumanos_help_cod_motivo',
45            i18n_domain='ILSAALRecursosHumanos',
46        ),
47        required=1
48    ),
49
50    DateTimeField('dat_inicio',
51        widget=CalendarWidget(
52            label="Data de Inicio",
53            description="Preencha a Dara de Inicio",
54            label_msgid='ILSAALRecursosHumanos_label_dat_inicio',
55            description_msgid='ILSAALRecursosHumanos_help_dat_inicio',
56            i18n_domain='ILSAALRecursosHumanos',
57        ),
58        required=1
59    ),
60
61    DateTimeField('dat_termino',
62        widget=CalendarWidget(
63            label="Data Termino",
64            description="Preencha a Data Termino",
65            label_msgid='ILSAALRecursosHumanos_label_dat_termino',
66            description_msgid='ILSAALRecursosHumanos_help_dat_termino',
67            i18n_domain='ILSAALRecursosHumanos',
68        )
69    ),
70
71),
72)
73
74
75##code-section after-local-schema #fill in your manual code here
76##/code-section after-local-schema
77
78Afastamento_schema = BaseSchema + \
79    schema
80
81##code-section after-schema #fill in your manual code here
82##/code-section after-schema
83
84class Afastamento(BaseContent):
85    security = ClassSecurityInfo()
86    __implements__ = (getattr(BaseContent,'__implements__',()),) + (IAfastamento,)
87
88
89    # This name appears in the 'add' box
90    archetype_name             = 'Afastamento'
91
92    meta_type                  = 'Afastamento'
93    portal_type                = 'Afastamento'
94    allowed_content_types      = []
95    filter_content_types       = 0
96    global_allow               = 1
97    allow_discussion           = 0
98    #content_icon               = 'Afastamento.gif'
99    immediate_view             = 'base_view'
100    default_view               = 'base_view'
101    suppl_views                = ()
102    typeDescription            = "Afastamento"
103    typeDescMsgId              = 'description_edit_afastamento'
104
105    schema = Afastamento_schema
106
107    ##code-section class-header #fill in your manual code here
108    ##/code-section class-header
109
110
111    #Methods
112    #manually created methods
113
114    security.declarePublic('Title')
115    def Title(self):
116        """
117       
118        """
119       
120        pass
121
122
123
124registerType(Afastamento,PROJECTNAME)
125# end of class Afastamento
126
127##code-section module-footer #fill in your manual code here
128##/code-section module-footer
129
130
131
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.