Conjunto de mudanças 6095 no repositório publico


Ignorar:
Timestamp:
29/02/2012 16:43:32 (8 anos atrás)
Autor:
davilima6
Mensagem:

Atualiza nomes de interfaces e classes (pep8)

Localização:
PortalInterlegis/produtos/il.portal.theme/trunk/il/portal/theme/browser
Arquivos:
4 editados

Legenda:

Não Modificado
Adicionado
Removido
  • PortalInterlegis/produtos/il.portal.theme/trunk/il/portal/theme/browser/configure.zcml

    r6080 r6095  
    1515      />
    1616
    17   <!--  View Registration -->
    18  
     17  <!--  Views -->
     18
    1919  <browser:page
    2020      for="*"
    21       name="IlPortalView"
    22       class=".views.IlPortalView"
     21      name="ILPortalView"
     22      class=".views.ILPortalView"
    2323      permission="zope.Public"
    24       allowed_interface=".interfaces.IPortalView"
     24      allowed_interface=".interfaces.IILPortalView"
    2525      />
    26      
     26
    2727  <browser:page
    2828      for="*"
    2929      name="paginainicial"
    30       class=".paginainicialview.paginainicialView"
     30      class=".paginainicialview.PaginaInicialView"
    3131      template="templates/paginainicial.pt"
    32       allowed_interface=".paginainicialview.IpaginainicialView"
     32      allowed_interface=".paginainicialview.IPaginaInicialView"
    3333      permission="zope.Public"
    3434      />
    35  
    36    
    37   <!-- Tile-->
    38  
     35
     36  <!-- Tiles -->
     37
    3938  <plone:tile
    4039      name="ilportal.tiles.richtext"
     
    4746      for="*"
    4847      />
    49      
     48
    5049  <plone:tile
    5150      name="ilportal.tiles.plaintext"
     
    5857      for="*"
    5958      />
    60  
     59
    6160  <plone:tile
    6261      name="ilportal.tiles.relateditens"
     
    6968      for="*"
    7069      />
    71  
    7270
    7371  <!-- Viewlets registration -->
    74 
    75   <!--
    76   <browser:viewlet
    77       name="il.portal.theme.languageseletor"
    78       for="*"
    79       manager="plone.app.layout.viewlets.interfaces.IPortalTop"
    80       class=".viewlets.LanguageSelector"
    81       layer=".interfaces.IThemeSpecific"
    82       permission="zope.Public"
    83       />
    84 
    85 
    86   <browser:viewlet
    87       name="il.portal.theme.logo"
    88       for="*"
    89       manager="plone.app.layout.viewlets.interfaces.IPortalHeader"
    90       class=".viewlets.LogoViewlet"
    91       layer=".interfaces.IThemeSpecific"
    92       permission="zope.Public"
    93       />
    94 
    95   <browser:viewlet
    96       name="il.portal.theme.documentactions"
    97       for="*"
    98       manager="plone.app.layout.viewlets.interfaces.IBelowContentBody"
    99       class=".viewlets.DocumentActionsViewlet"
    100       layer=".interfaces.IThemeSpecific"
    101       permission="zope.Public"
    102       />
    103      
    104   <browser:viewlet
    105       name="il.portal.theme.footer"
    106       for="*"
    107       manager="plone.app.layout.viewlets.interfaces.IPortalFooter"
    108       class=".viewlets.FooterViewlet"
    109       layer=".interfaces.IThemeSpecific"
    110       permission="zope.Public"
    111       />
    112   -->
    113 
    114    
    11572
    11673  <browser:viewlet
     
    12279      permission="zope.Public"
    12380      />
    124      
     81
    12582  <browser:viewlet
    12683      name="plone.searchbox"
     
    13188      permission="zope.Public"
    13289      />
    133 
    13490
    13591  <!-- Resource directories registration -->
  • PortalInterlegis/produtos/il.portal.theme/trunk/il/portal/theme/browser/interfaces.py

    r6081 r6095  
    11# -*- coding: utf-8 -*-
     2from zope.interface import Interface
    23from plone.theme.interfaces import IDefaultPloneLayer
    34
     
    67    """Marker interface that defines a Zope 3 browser layer.
    78       If you need to register a viewlet only for the
    8        "il.portal.theme" theme,
    9        this interface must be its layer.
     9       "il.portal.theme" theme, this interface must be its layer.
    1010    """
    1111
    1212
    13 class IPortalView(IDefaultPloneLayer):
    14     """Marker interface that defines a Zope 3 browser layer.
    15        If you need to register a viewlet only for the
    16        "il.portal.theme" theme,
    17        this interface must be its layer.
    18     """
     13class IILPortalView(Interface):
     14    pass
  • PortalInterlegis/produtos/il.portal.theme/trunk/il/portal/theme/browser/paginainicialview.py

    r6072 r6095  
    55
    66
    7 
    8 
    9 class IpaginainicialView(Interface):
     7class IPaginaInicialView(Interface):
    108    """
    11     paginainicial view interface
     9    PaginaInicial view interface
    1210    """
    1311
     
    1614
    1715
    18 class paginainicialView(BrowserView):
     16class PaginaInicialView(BrowserView):
    1917    """
    20     paginainicial browser view
     18    PaginaInicial browser view
    2119    """
    22     implements(IpaginainicialView)
     20    implements(IPaginaInicialView)
    2321
    2422    def __init__(self, context, request):
  • PortalInterlegis/produtos/il.portal.theme/trunk/il/portal/theme/browser/views.py

    r6083 r6095  
    1 #!/usr/bin/python
    2 # coding=utf-8
     1# -*- coding: utf-8 -*-
    32
    43#import locale
    54#from AccessControl import ClassSecurityInfo
    6 from Products.Five import BrowserView
    75#from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
    86#from Products.CMFCore.utils import getToolByName
    9 from Acquisition import aq_inner
    10 from zope.interface import implements
    117#from Products.CMFPlone import utils
    12 from zope.app.component.hooks import getSite
    13 from DateTime import DateTime
    14 import datetime
    15 
    16 from il.portal.theme.browser.interfaces import IPortalView
    178
    189#TODO: Metodo deprecated
     
    2112#context.restrictedTraverse('@@plone').isStructuralFolder()
    2213
     14from Acquisition import aq_inner
     15from Products.Five import BrowserView
     16from zope.interface import implements
     17from zope.app.component.hooks import getSite
    2318
    24 class IlPortalView(BrowserView):
    25     implements(IPortalView)
     19from DateTime import DateTime
     20import datetime
     21
     22from il.portal.theme.browser.interfaces import IILPortalView
     23
     24
     25class ILPortalView(BrowserView):
     26    implements(IILPortalView)
    2627    """View geral para o produto"""
    2728
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.