Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install bda.blogview

How to install bda.blogview

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install bda.blogview
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0-beta1 Available View build log
Windows (64-bit)
1.0-beta1 Available View build log
Mac OS X (10.5+)
1.0-beta1 Available View build log
Linux (32-bit)
1.0-beta1 Available View build log
Linux (64-bit)
1.0-beta1 Available View build log
Web
 
License
GPL
Dependencies
Lastest release
version 1.0-beta1 on Jan 5th, 2011

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:

System Message: WARNING/2 (<string>, line 21)

Literal block expected; none found.

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

System Message: ERROR/3 (<string>, line 55)

Inconsistent literal block quoting.

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

System Message: WARNING/2 (<string>, line 94)

Bullet list ends without a blank line; unexpected unindent.

Squarewave Computing, BlueDynamics Alliance, Austria

Licence

  • GNU General Public Licence 2.0 or later

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.