Conjunto de mudanças 6529 no repositório publico
- Timestamp:
- 18/06/2012 19:53:12 (9 anos atrás)
- Localização:
- Ombudsman/trunk
- Arquivos:
-
- 3 editados
Legenda:
- Não Modificado
- Adicionado
- Removido
-
Ombudsman/trunk/OmbudsmanTool.py
r6423 r6529 1 # -*- coding: utf-8 -*- 2 # 1 3 # File: OmbudsmanTool.py 2 4 # 3 # Copyright (c) 20 06 by Rafahela Garcia Bazzanella5 # Copyright (c) 2012 by Interlegis 4 6 # Generator: ArchGenXML 5 7 # http://plone.org/products/archgenxml … … 23 25 # 24 26 25 __author__ = """Rafahela Bazzanella <rafabazzanella@yahoo.com.br>, Jean Rodrigo Ferri26 <jean rodrigoferri@yahoo.com.br>"""27 __author__ = """Rafahela Garcia Bazzanella <rafahela@gmail.com>, Jean Rodrigo Ferri 28 <jeanferri@gmail.com>""" 27 29 __docformat__ = 'plaintext' 28 30 … … 43 45 LinesField( 44 46 name='vocab_age', 45 widget=Lines Widget(47 widget=LinesField._properties['widget']( 46 48 label="Ages list", 47 49 label_msgid='Ombudsman_label_vocab_age', … … 52 54 LinesField( 53 55 name='vocab_region', 54 widget=Lines Widget(56 widget=LinesField._properties['widget']( 55 57 label="States/Regions list", 56 58 label_msgid='Ombudsman_label_vocab_region', … … 62 64 name='vocab_sex', 63 65 default=['1;Feminine','2;Masculine'], 64 widget=Lines Widget(66 widget=LinesField._properties['widget']( 65 67 label="Sex list", 66 68 label_msgid='Ombudsman_label_vocab_sex', … … 82 84 83 85 class OmbudsmanTool(UniqueObject, BaseContent): 84 """ 85 Tool that manages the vocabularies and responsibles. 86 """Tool that manages the vocabularies and responsibles. 86 87 """ 87 88 security = ClassSecurityInfo() … … 114 115 def __init__(self, id=None): 115 116 BaseContent.__init__(self,'portal_ombudsman') 117 self.setTitle('Ombudsman Tool') 116 118 117 119 ##code-section constructor-footer #fill in your manual code here 118 120 ##/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 119 129 120 130 -
Ombudsman/trunk/__init__.py
r6423 r6529 1 # -*- coding: utf-8 -*- 2 # 1 3 # File: Ombudsman.py 2 4 # 3 # Copyright (c) 20 06 by Rafahela Garcia Bazzanella4 # Generator: ArchGenXML Version 1.5. 0 svn/devel5 # Copyright (c) 2012 by Interlegis 6 # Generator: ArchGenXML Version 1.5.3 dev/svn 5 7 # http://plone.org/products/archgenxml 6 8 # … … 23 25 # 24 26 25 __author__ = """Rafahela Bazzanella <rafabazzanella@yahoo.com.br>, Jean Rodrigo Ferri26 <jean rodrigoferri@yahoo.com.br>"""27 __author__ = """Rafahela Garcia Bazzanella <rafahela@gmail.com>, Jean Rodrigo Ferri 28 <jeanferri@gmail.com>""" 27 29 __docformat__ = 'plaintext' 28 30 … … 38 40 # with a method register(context) to register the policy. 39 41 40 from zLOG import LOG, INFO 41 42 LOG('Ombudsman',INFO,'Installing Product')42 import logging 43 logger = logging.getLogger('Ombudsman') 44 logger.info('Installing Product') 43 45 44 46 try: … … 47 49 CustomizationPolicy = None 48 50 51 import os, os.path 49 52 from Globals import package_home 50 53 from Products.CMFCore import utils as cmfutils 51 from Products.CMFCore import CMFCorePermissions 54 55 try: # New CMF 56 from Products.CMFCore import permissions as CMFCorePermissions 57 except: # Old CMF 58 from Products.CMFCore import CMFCorePermissions 59 52 60 from Products.CMFCore import DirectoryView 53 from Products.CMFPlone. PloneUtilities import ToolInit61 from Products.CMFPlone.utils import ToolInit 54 62 from Products.Archetypes.atapi import * 55 63 from Products.Archetypes import listTypes 56 64 from Products.Archetypes.utils import capitalize 57 58 import os, os.path 59 60 from Products.Ombudsman.config import * 65 from config import * 61 66 62 67 DirectoryView.registerDirectory('skins', product_globals) 63 DirectoryView.registerDirectory('skins/Ombudsman', 64 product_globals) 68 65 69 66 70 ##code-section custom-init-head #fill in your manual code here -
Ombudsman/trunk/config.py
r6423 r6529 1 # -*- coding: utf-8 -*- 2 # 1 3 # File: Ombudsman.py 2 4 # 3 # Copyright (c) 20 06 by Rafahela Garcia Bazzanella4 # Generator: ArchGenXML Version 1.5. 0 svn/devel5 # Copyright (c) 2012 by Interlegis 6 # Generator: ArchGenXML Version 1.5.3 dev/svn 5 7 # http://plone.org/products/archgenxml 6 8 # … … 23 25 # 24 26 25 __author__ = """Rafahela Bazzanella <rafabazzanella@yahoo.com.br>, Jean Rodrigo Ferri26 <jean rodrigoferri@yahoo.com.br>"""27 __author__ = """Rafahela Garcia Bazzanella <rafahela@gmail.com>, Jean Rodrigo Ferri 28 <jeanferri@gmail.com>""" 27 29 __docformat__ = 'plaintext' 28 30 … … 37 39 # in this file if found. 38 40 39 from Products.CMFCore.CMFCorePermissions import setDefaultRoles 41 try: # New CMF 42 from Products.CMFCore.permissions import setDefaultRoles 43 except ImportError: # Old CMF 44 from Products.CMFCore.CMFCorePermissions import setDefaultRoles 45 46 40 47 ##code-section config-head #fill in your manual code here 41 48 ##/code-section config-head
Note: Veja
TracChangeset
para ajuda no uso do visualizador de conjunto de mudanças.