Skip to content

Commit

Permalink
small fix so it is possible to create object without need of REQUEST or
Browse files Browse the repository at this point in the history
without need of mocking it.

svn path=/plone.outputfilters/trunk/; revision=47731
  • Loading branch information
garbas committed Feb 24, 2011
1 parent 3df9a5a commit 5de3be2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

1.0b4 (unreleased)
------------------

- small fix so it is possible to create object without need of REQUEST or
without need of mocking it.
[garbas]

1.0b3 (2011-02-24)
------------------

Expand Down Expand Up @@ -34,4 +41,4 @@ Changelog
------------------

- Initial implementation.
[davisagli]
[davisagli]
6 changes: 4 additions & 2 deletions plone/outputfilters/filters/resolveuid_and_caption.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ def __init__(self, context=None, request=None):
self.context = context
self.request = request
self.pieces = []
self.captioned_image_template = context.restrictedTraverse(
'plone.outputfilters_captioned_image')
self.in_link = False

# IFilter implementation
order = 800

@lazy_property
def captioned_image_template(self):
return self.context.restrictedTraverse('plone.outputfilters_captioned_image')

@lazy_property
def captioned_images(self):
for u in getAllUtilitiesRegisteredFor(IImageCaptioningEnabler):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os

version = '1.0b3'
version = '1.0b4'

setup(name='plone.outputfilters',
version=version,
Expand Down

0 comments on commit 5de3be2

Please sign in to comment.