Skip to content

Commit

Permalink
Change all RichTextValue.output to RichTextValue.output_relative_to r…
Browse files Browse the repository at this point in the history
…eferences for correct relative link resolving. Also see: plone/plone.app.textfield#17
  • Loading branch information
thet committed Feb 4, 2016
1 parent c9e2fe3 commit e43d1ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,9 @@ Changelog
2.1.3 (unreleased)
------------------

- Nothing changed yet.
- Change all ``RichTextValue.output`` to ``RichTextValue.output_relative_to`` references for correct relative link resolving.
Also see: https://github.com/plone/plone.app.textfield/pull/17
[thet]


2.1.2 (2015-10-06)
Expand Down
2 changes: 1 addition & 1 deletion collective/venue/browser/venue.py
Expand Up @@ -49,5 +49,5 @@ def data(self):
'zip_code': add.zip_code,
'city': add.city,
'country': get_pycountry_name(add.country) or '',
'notes': add.notes and add.notes.output or '',
'notes': add.notes and add.notes.output_relative_to(context) or '',
}
2 changes: 1 addition & 1 deletion collective/venue/indexer.py
Expand Up @@ -32,7 +32,7 @@ def searchable_text_indexer(obj):
address = address_idx(obj)() # returns DelegatingIndexer callable
meta_basic = IBasic(obj)
venue = IVenue(obj)
notes = venue.notes and venue.notes.output or u''
notes = venue.notes and venue.notes.output_relative_to(obj) or u''
if notes:
transforms = getToolByName(obj, 'portal_transforms')
body_plain = transforms.convertTo(
Expand Down

0 comments on commit e43d1ea

Please sign in to comment.