Changeset 2656 in products for quintagroup.blog.star/trunk/quintagroup
- Timestamp:
- Jul 9, 2010 2:45:51 PM (14 years ago)
- Location:
- quintagroup.blog.star/trunk/quintagroup/blog/star
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.blog.star/trunk/quintagroup/blog/star/browser/blog.py
r2652 r2656 2 2 from Products.CMFCore.utils import getToolByName 3 3 from Products.CMFPlone.PloneBatch import Batch 4 from collective.blog.view.interfaces import IBlogEntryRetriever4 from quintagroup.blog.star.interfaces import IQGBlogEntryRetriever 5 5 try: 6 6 from plone.app.discussion.interfaces import IConversation … … 24 24 year = int(self.request.form.get('year',0)) 25 25 month = int(self.request.form.get('month',0)) 26 return IBlogEntryRetriever(self.context).get_entries(year=year, month=month) 26 subject = list(self.request.form.get('Subject','')) 27 return IQGBlogEntryRetriever(self.context).get_entries( 28 year=year, month=month, Subject=subject) 27 29 28 30 def batch(self): -
quintagroup.blog.star/trunk/quintagroup/blog/star/configure.zcml
r2639 r2656 11 11 <include package=".browser" /> 12 12 13 <genericsetup:registerProfile 14 name="default" 15 title="Quintagroup blog.star customization" 16 directory="profiles/default" 17 description="Generic setup for Quintagroup blogging" 18 provides="Products.GenericSetup.interfaces.EXTENSION" 19 /> 13 <adapter 14 factory=".adapters.FolderEntryGetter" 15 /> 16 17 <adapter 18 factory=".adapters.TopicEntryGetter" 19 /> 20 20 21 21 22 <genericsetup:registerProfile 22 name="uninstall" 23 title="Uninstall Quintagroup blog.star customization" 24 directory="profiles/uninstall" 25 description="Uninstall Quintagroup blogging" 26 provides="Products.GenericSetup.interfaces.EXTENSION" 27 /> 23 name="default" 24 title="Quintagroup blog.star customization" 25 directory="profiles/default" 26 description="Generic setup for Quintagroup blogging" 27 provides="Products.GenericSetup.interfaces.EXTENSION" 28 /> 29 30 <genericsetup:registerProfile 31 name="uninstall" 32 title="Uninstall Quintagroup blog.star customization" 33 directory="profiles/uninstall" 34 description="Uninstall Quintagroup blogging" 35 provides="Products.GenericSetup.interfaces.EXTENSION" 36 /> 28 37 29 38 </configure> -
quintagroup.blog.star/trunk/quintagroup/blog/star/interfaces.py
r2655 r2656 5 5 """Marker interface that defines a Zope 3 browser layer. 6 6 """ 7 8 class IQGBlogEntryRetriever(interface.Interface): 9 10 def get_entries(year, month, **kw): 11 """Retrieves all blog entries as catalog brains. 12 with filtering by year, month and additional 13 catalog indexes. 14 """
Note: See TracChangeset
for help on using the changeset viewer.