source: publico/ILSAALRecursosHumanos/trunk/Recisao.py @ 1131

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

codigo gerado a partir do novo modelo

File size: 4.5 KB
Linha 
1# File: Recisao.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.IRecisao import IRecisao
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_recisao',
41        widget=CalendarWidget(
42            label='Dat_recisao',
43            label_msgid='ILSAALRecursosHumanos_label_dat_recisao',
44            description_msgid='ILSAALRecursosHumanos_help_dat_recisao',
45            i18n_domain='ILSAALRecursosHumanos',
46        )
47    ),
48
49    DateTimeField('dat_aviso_previo',
50        widget=CalendarWidget(
51            label='Dat_aviso_previo',
52            label_msgid='ILSAALRecursosHumanos_label_dat_aviso_previo',
53            description_msgid='ILSAALRecursosHumanos_help_dat_aviso_previo',
54            i18n_domain='ILSAALRecursosHumanos',
55        )
56    ),
57
58    DateTimeField('dat_homologacao',
59        widget=CalendarWidget(
60            label='Dat_homologacao',
61            label_msgid='ILSAALRecursosHumanos_label_dat_homologacao',
62            description_msgid='ILSAALRecursosHumanos_help_dat_homologacao',
63            i18n_domain='ILSAALRecursosHumanos',
64        )
65    ),
66
67    FloatField('num_hs_reducao_horario',
68        widget=DecimalWidget(
69            label='Num_hs_reducao_horario',
70            label_msgid='ILSAALRecursosHumanos_label_num_hs_reducao_horario',
71            description_msgid='ILSAALRecursosHumanos_help_num_hs_reducao_horario',
72            i18n_domain='ILSAALRecursosHumanos',
73        )
74    ),
75
76    IntegerField('num_dias_corridos',
77        widget=IntegerWidget(
78            label='Num_dias_corridos',
79            label_msgid='ILSAALRecursosHumanos_label_num_dias_corridos',
80            description_msgid='ILSAALRecursosHumanos_help_num_dias_corridos',
81            i18n_domain='ILSAALRecursosHumanos',
82        )
83    ),
84
85),
86)
87
88
89##code-section after-local-schema #fill in your manual code here
90##/code-section after-local-schema
91
92Recisao_schema = BaseSchema + \
93    schema
94
95##code-section after-schema #fill in your manual code here
96##/code-section after-schema
97
98class Recisao(BaseContent):
99    security = ClassSecurityInfo()
100    __implements__ = (getattr(BaseContent,'__implements__',()),) + (IRecisao,)
101
102
103    # This name appears in the 'add' box
104    archetype_name             = 'Recisao'
105
106    meta_type                  = 'Recisao'
107    portal_type                = 'Recisao'
108    allowed_content_types      = []
109    filter_content_types       = 0
110    global_allow               = 1
111    allow_discussion           = 0
112    #content_icon               = 'Recisao.gif'
113    immediate_view             = 'base_view'
114    default_view               = 'base_view'
115    suppl_views                = ()
116    typeDescription            = "Recisao"
117    typeDescMsgId              = 'description_edit_recisao'
118
119    schema = Recisao_schema
120
121    ##code-section class-header #fill in your manual code here
122    ##/code-section class-header
123
124
125    #Methods
126    #methods from Interface IRecisao
127
128    security.declarePrivate('_titulo')
129    def _titulo(self):
130        """
131       
132        """
133       
134        pass
135
136    #manually created methods
137
138    security.declarePublic('Title')
139    def Title(self):
140        """
141       
142        """
143       
144        pass
145
146
147
148registerType(Recisao,PROJECTNAME)
149# end of class Recisao
150
151##code-section module-footer #fill in your manual code here
152##/code-section module-footer
153
154
155
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.