Revert r35608 since this was breaking the comment moderation bulk actions. The BulkActionsView expects the absolute path of the comments without the portal url (e.g. '/plone/doc1/++conversation++default/1285346769126020'). This fixes https://dev.plone.org/plone/ticket/11156.
svn path=/plone.app.discussion/trunk/; revision=40227
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
class="noborder"
|
||||
name="paths:list" id="#"
|
||||
value="#"
|
||||
tal:attributes="value python:view.item_path(item);
|
||||
tal:attributes="value item/getPath;
|
||||
id string:cb_${item/id};
|
||||
checked item/checked|nothing;
|
||||
alt string:Select ${item/Title};
|
||||
|
||||
@@ -48,11 +48,6 @@ class View(BrowserView):
|
||||
self.request.set('disable_border', True)
|
||||
|
||||
context = aq_inner(self.context)
|
||||
|
||||
# Help for path mangling
|
||||
portal_url = getToolByName(context, 'portal_url')
|
||||
self.portal_url = portal_url()
|
||||
self.portal_path = portal_url.getPortalPath()
|
||||
|
||||
catalog = getToolByName(context, 'portal_catalog')
|
||||
|
||||
@@ -76,11 +71,6 @@ class View(BrowserView):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
def item_path(self, item):
|
||||
# Path mangling to support virtual hosting
|
||||
path = item.getPath()[len(self.portal_path):]
|
||||
return self.portal_url + path
|
||||
|
||||
|
||||
class DeleteComment(BrowserView):
|
||||
|
||||
Reference in New Issue
Block a user