Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Overview

This package contains a blog-like view. It allows you to use all Archtypes based content to be viewed as blog entries, as long as they follow the specs of bda.contentproxy.

If commenting is allowed on an object, the comments are displayed as well. The view provides commenting controls for the displayed objects directly.

To make the blogview work, you have to provide an IBlogItemProvider implementing object.

Example:

from zope.interface import implements
from zope.component import getMultiAdapter

from Acquisition import Explicit

from Products.CMFPlone.utils import getToolByName

from bda.blogview.interfaces import IBlogItemProvider
from bda.blogview.interfaces import IBlogItemIterator
from bda.blogview.atiterator import ATBlogItemQuery

class BlogItemProvider(Explicit):

    implements(IBlogItemProvider)

    def __init__(self, context, request):
        self.context = context
        self.request = request

    @property
    def items(self):
        putils = getToolByName(self.context.context, 'plone_utils')
        query = ATBlogItemQuery({
            'portal_type': putils.getUserFriendlyTypes(),
            'sort_on': 'modified',
            'sort_order': 'reverse',
        })
        iterator = getMultiAdapter((self.context, query), IBlogItemIterator)
        return [i for i in iterator]

You have to register this implementation as follows:

<adapter
  for="zope.interface.Interface
       zope.publisher.interfaces.browser.IBrowserRequest"
  provides="bda.blogview.interfaces.IBlogItemProvider"
  factory=".yourmodule.BlogItemProvider"
  name="blog"
 />

Dependencies

  • plone 3

  • cornerstone.ui.core

  • cornerstone.ui.result

  • bda.contentproxy

Installation

  1. Make the dependent eggs available in your instance,

  2. Import extension profiles in your plone instance.

Credits

Licence

  • GNU General Public Licence 2.0 or later

Release files for bda.blogview 1.0-beta1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bda.blogview 1.0-beta1
File Size Uploaded
bda.blogview-1.0-beta1.tar.gz 12.9 kB Details

Release files / bda.blogview-1.0-beta1.tar.gz

Download URL bda.blogview-1.0-beta1.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f4b7934f87a02d4e9bdee2e324a1da3401d69086e524379ac255bc4d0fc90a7f
BLAKE2b-256 checksum
How to use checksums
182a879a37b1f651194cdb91a62d956896a0df924ab8966bb102b67fd51b5c6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0-beta1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page