Changeset 1215 in products


Ignore:
Timestamp:
Aug 6, 2009 2:48:25 PM (15 years ago)
Author:
mylan
Message:

Added support of both qPloneComments or quintagroup.plonecomments products

Location:
quintagroup.quills.extras/branches/no_webresults/quintagroup/quills/extras
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.quills.extras/branches/no_webresults/quintagroup/quills/extras/__init__.py

    r719 r1215  
     1# -*- coding: utf-8 -*- 
    12#import weblogfolder_patch, keywords_widget_patch 
    23import keywords_widget_patch 
    34from zope.i18nmessageid import MessageFactory 
    45quintagroupQuillsMessageFactory = MessageFactory('quintagroup.quills.extras') 
    5  
  • quintagroup.quills.extras/branches/no_webresults/quintagroup/quills/extras/browser/comments.py

    r859 r1215  
     1# -*- coding: utf-8 -*- 
    12from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile 
    2 from Products.qPloneComments.browser import comments 
     3try: 
     4    from Products.qPloneComments.browser import comments 
     5except ImportError: 
     6    from quintagroup.plonecomments.browser import comments 
    37 
    48class CommentsViewlet(comments.CommentsViewlet): 
  • quintagroup.quills.extras/branches/no_webresults/quintagroup/quills/extras/browser/overrides.zcml

    r1213 r1215  
    33    xmlns:browser="http://namespaces.zope.org/browser" 
    44    xmlns:plone="http://namespaces.plone.org/plone" 
     5    xmlns:zcml="http://namespaces.zope.org/zcml" 
    56    i18n_domain="quintagroup.quills.extras"> 
    67 
     
    3839 
    3940      <browser:page 
    40           for="*" 
    41           name="discussion_reply_redirect" 
    42           class=".discussionreply.DiscussionReply" 
    43           permission="zope.Public" 
    44           allowed_attributes="__call__" 
    45           /> 
     41          for="*" 
     42          name="discussion_reply_redirect" 
     43          class=".discussionreply.DiscussionReply" 
     44          permission="zope.Public" 
     45          allowed_attributes="__call__" 
     46          /> 
    4647 
    47       <include package="Products.qPloneComments" file="overrides.zcml" /> 
     48      <include zcml:condition="installed Products.qPloneComments" 
     49          package="Products.qPloneComments" file="overrides.zcml" /> 
    4850      <browser:viewlet 
    49           name="plone.comments" 
    50           for="Products.CMFCore.interfaces.IContentish" 
    51           manager="plone.app.layout.viewlets.interfaces.IBelowContent" 
    52           view="plone.app.layout.globals.interfaces.IViewView" 
    53           class=".comments.CommentsViewlet" 
    54           layer="Products.qPloneComments.interfaces.IPloneCommentsLayer" 
    55           permission="zope2.View" 
    56           /> 
     51          zcml:condition="installed Products.qPloneComments" 
     52          name="plone.comments" 
     53          for="Products.CMFCore.interfaces.IContentish" 
     54          manager="plone.app.layout.viewlets.interfaces.IBelowContent" 
     55          view="plone.app.layout.globals.interfaces.IViewView" 
     56          class=".comments.CommentsViewlet" 
     57          layer="Products.qPloneComments.interfaces.IPloneCommentsLayer" 
     58          permission="zope2.View" 
     59          /> 
     60 
     61      <include zcml:condition="installed quintagroup.plonecomments" 
     62          package="quintagroup.plonecomments" file="overrides.zcml" /> 
     63 
     64      <browser:viewlet 
     65          zcml:condition="installed quintagroup.plonecomments" 
     66          name="plone.comments" 
     67          for="Products.CMFCore.interfaces.IContentish" 
     68          manager="plone.app.layout.viewlets.interfaces.IBelowContent" 
     69          view="plone.app.layout.globals.interfaces.IViewView" 
     70          class=".comments.CommentsViewlet" 
     71          layer="quintagroup.plonecomments.interfaces.IPloneCommentsLayer" 
     72          permission="zope2.View" 
     73          /> 
    5774 
    5875    <!-- metal macros --> 
    59     <view for="*" 
     76    <browser:page 
     77        for="*" 
    6078        name="quills_header_macros" 
    6179        class=".macros.HeaderMacros" 
Note: See TracChangeset for help on using the changeset viewer.