Conjunto de mudanças 6529 no repositório publico


Ignorar:
Timestamp:
18/06/2012 19:53:12 (9 anos atrás)
Autor:
jeanferri
Mensagem:

Atualizando os arquivos de inicialização, configuração e tool da ouvidoria após regeração do código

Localização:
Ombudsman/trunk
Arquivos:
3 editados

Legenda:

Não Modificado
Adicionado
Removido
  • Ombudsman/trunk/OmbudsmanTool.py

    r6423 r6529  
     1# -*- coding: utf-8 -*-
     2#
    13# File: OmbudsmanTool.py
    24#
    3 # Copyright (c) 2006 by Rafahela Garcia Bazzanella
     5# Copyright (c) 2012 by Interlegis
    46# Generator: ArchGenXML
    57#            http://plone.org/products/archgenxml
     
    2325#
    2426
    25 __author__ = """Rafahela Bazzanella <rafabazzanella@yahoo.com.br>, Jean Rodrigo Ferri
    26 <jeanrodrigoferri@yahoo.com.br>"""
     27__author__ = """Rafahela Garcia Bazzanella <rafahela@gmail.com>, Jean Rodrigo Ferri
     28<jeanferri@gmail.com>"""
    2729__docformat__ = 'plaintext'
    2830
     
    4345    LinesField(
    4446        name='vocab_age',
    45         widget=LinesWidget(
     47        widget=LinesField._properties['widget'](
    4648            label="Ages list",
    4749            label_msgid='Ombudsman_label_vocab_age',
     
    5254    LinesField(
    5355        name='vocab_region',
    54         widget=LinesWidget(
     56        widget=LinesField._properties['widget'](
    5557            label="States/Regions list",
    5658            label_msgid='Ombudsman_label_vocab_region',
     
    6264        name='vocab_sex',
    6365        default=['1;Feminine','2;Masculine'],
    64         widget=LinesWidget(
     66        widget=LinesField._properties['widget'](
    6567            label="Sex list",
    6668            label_msgid='Ombudsman_label_vocab_sex',
     
    8284
    8385class OmbudsmanTool(UniqueObject, BaseContent):
    84     """
    85     Tool that manages the vocabularies and responsibles.
     86    """Tool that manages the vocabularies and responsibles.
    8687    """
    8788    security = ClassSecurityInfo()
     
    114115    def __init__(self, id=None):
    115116        BaseContent.__init__(self,'portal_ombudsman')
     117        self.setTitle('Ombudsman Tool')
    116118       
    117119        ##code-section constructor-footer #fill in your manual code here
    118120        ##/code-section constructor-footer
     121
     122
     123    # tool should not appear in portal_catalog
     124    def at_post_edit_script(self):
     125        self.unindexObject()
     126       
     127        ##code-section post-edit-method-footer #fill in your manual code here
     128        ##/code-section post-edit-method-footer
    119129
    120130
  • Ombudsman/trunk/__init__.py

    r6423 r6529  
     1# -*- coding: utf-8 -*-
     2#
    13# File: Ombudsman.py
    24#
    3 # Copyright (c) 2006 by Rafahela Garcia Bazzanella
    4 # Generator: ArchGenXML Version 1.5.0 svn/devel
     5# Copyright (c) 2012 by Interlegis
     6# Generator: ArchGenXML Version 1.5.3 dev/svn
    57#            http://plone.org/products/archgenxml
    68#
     
    2325#
    2426
    25 __author__ = """Rafahela Bazzanella <rafabazzanella@yahoo.com.br>, Jean Rodrigo Ferri
    26 <jeanrodrigoferri@yahoo.com.br>"""
     27__author__ = """Rafahela Garcia Bazzanella <rafahela@gmail.com>, Jean Rodrigo Ferri
     28<jeanferri@gmail.com>"""
    2729__docformat__ = 'plaintext'
    2830
     
    3840#       with a method register(context) to register the policy.
    3941
    40 from zLOG import LOG, INFO
    41 
    42 LOG('Ombudsman',INFO, 'Installing Product')
     42import logging
     43logger = logging.getLogger('Ombudsman')
     44logger.info('Installing Product')
    4345
    4446try:
     
    4749    CustomizationPolicy = None
    4850
     51import os, os.path
    4952from Globals import package_home
    5053from Products.CMFCore import utils as cmfutils
    51 from Products.CMFCore import CMFCorePermissions
     54
     55try: # New CMF
     56    from Products.CMFCore import permissions as CMFCorePermissions
     57except: # Old CMF
     58    from Products.CMFCore import CMFCorePermissions
     59
    5260from Products.CMFCore import DirectoryView
    53 from Products.CMFPlone.PloneUtilities import ToolInit
     61from Products.CMFPlone.utils import ToolInit
    5462from Products.Archetypes.atapi import *
    5563from Products.Archetypes import listTypes
    5664from Products.Archetypes.utils import capitalize
    57 
    58 import os, os.path
    59 
    60 from Products.Ombudsman.config import *
     65from config import *
    6166
    6267DirectoryView.registerDirectory('skins', product_globals)
    63 DirectoryView.registerDirectory('skins/Ombudsman',
    64                                     product_globals)
     68
    6569
    6670##code-section custom-init-head #fill in your manual code here
  • Ombudsman/trunk/config.py

    r6423 r6529  
     1# -*- coding: utf-8 -*-
     2#
    13# File: Ombudsman.py
    24#
    3 # Copyright (c) 2006 by Rafahela Garcia Bazzanella
    4 # Generator: ArchGenXML Version 1.5.0 svn/devel
     5# Copyright (c) 2012 by Interlegis
     6# Generator: ArchGenXML Version 1.5.3 dev/svn
    57#            http://plone.org/products/archgenxml
    68#
     
    2325#
    2426
    25 __author__ = """Rafahela Bazzanella <rafabazzanella@yahoo.com.br>, Jean Rodrigo Ferri
    26 <jeanrodrigoferri@yahoo.com.br>"""
     27__author__ = """Rafahela Garcia Bazzanella <rafahela@gmail.com>, Jean Rodrigo Ferri
     28<jeanferri@gmail.com>"""
    2729__docformat__ = 'plaintext'
    2830
     
    3739# in this file if found.
    3840
    39 from Products.CMFCore.CMFCorePermissions import setDefaultRoles
     41try: # New CMF
     42    from Products.CMFCore.permissions import setDefaultRoles
     43except ImportError: # Old CMF
     44    from Products.CMFCore.CMFCorePermissions import setDefaultRoles
     45
     46
    4047##code-section config-head #fill in your manual code here
    4148##/code-section config-head
Note: Veja TracChangeset para ajuda no uso do visualizador de conjunto de mudanças.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.