source: publico/ILSAALRecursosHumanos/trunk/Empregados.py @ 1159

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

Codigo gerado do modelo de RH atualizado

File size: 3.0 KB
RevLinha 
[292]1# File: Empregados.py
[454]2#
[292]3# Copyright (c) 2005 by Interlegis
[1159]4# Generator: ArchGenXML Version 1.4.0-beta2 devel
[918]5#            http://plone.org/products/archgenxml
[292]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#
[1131]21__author__  = '''STC Interlegis <stc@interlegis.gov.br>'''
[292]22__docformat__ = 'plaintext'
23
[918]24
[292]25from AccessControl import ClassSecurityInfo
26from Products.Archetypes.atapi import *
[1131]27from Products.CMFCore.utils import UniqueObject
[292]28
29
[1131]30from Products.Archetypes.SQLStorage import *
[292]31from Products.ILSAALRecursosHumanos.config import *
32##code-section module-header #fill in your manual code here
33##/code-section module-header
34
[454]35schema=Schema((
[292]36),
37)
38
[454]39
[918]40##code-section after-local-schema #fill in your manual code here
41##/code-section after-local-schema
42
[1131]43Empregados_schema = BaseBTreeFolderSchema + \
44    getattr(UniqueObject,'schema',Schema(())) + \
[918]45    schema
46
[292]47##code-section after-schema #fill in your manual code here
48##/code-section after-schema
49
[1131]50class Empregados(UniqueObject,BaseBTreeFolder):
[292]51    security = ClassSecurityInfo()
[1131]52    __implements__ = (getattr(UniqueObject,'__implements__',()),) + (getattr(BaseBTreeFolder,'__implements__',()),)
[292]53
54
55    # This name appears in the 'add' box
56    archetype_name             = 'Empregados'
57
[918]58    meta_type                  = 'Empregados'
59    portal_type                = 'Empregados'
[1131]60    allowed_content_types      = ['Empregado'] + list(getattr(UniqueObject, 'allowed_content_types', []))
[292]61    filter_content_types       = 1
62    global_allow               = 1
63    allow_discussion           = 0
64    #content_icon               = 'Empregados.gif'
65    immediate_view             = 'base_view'
66    default_view               = 'base_view'
[918]67    suppl_views                = ()
[292]68    typeDescription            = "Empregados"
69    typeDescMsgId              = 'description_edit_empregados'
70
[918]71    schema = Empregados_schema
[292]72
73    ##code-section class-header #fill in your manual code here
74    ##/code-section class-header
75
76
77    #Methods
78
[1131]79    # Use class/module security defaults
80    def __init__(self,id=None):
81        """
[1138]82        Construtor da classe. Fixa o id para nao ser mais alterado.
[1131]83        """
84       
[1138]85        BaseBTreeFolder.__init__(self, 'empregados')
[1131]86
87
[1141]88
[292]89registerType(Empregados,PROJECTNAME)
90# end of class Empregados
91
92##code-section module-footer #fill in your manual code here
93##/code-section module-footer
94
95
96
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.