Show email in moderation view

This commit is contained in:
Katja Süss 2017-07-17 11:34:16 +02:00 committed by ksuess
parent 1e19fb25da
commit 8e344cbf2b
5 changed files with 21 additions and 1 deletions

View File

@ -14,6 +14,8 @@ New features:
Bug fixes: Bug fixes:
- Show email in moderation view [ksuess]
- Remove plone.app.robotframework extras (reload and ride). - Remove plone.app.robotframework extras (reload and ride).
They are not needed and they are not Python 3 compatible. They are not needed and they are not Python 3 compatible.
[gforcada] [gforcada]

View File

@ -103,7 +103,10 @@
<input type="hidden" name="selected_obj_paths:list" value="#" <input type="hidden" name="selected_obj_paths:list" value="#"
tal:attributes="value item/getURL" /> tal:attributes="value item/getURL" />
</td> </td>
<td tal:content="python:item.author_name or item.Creator" /> <td>
<span tal:content="python:item.author_name or item.Creator">Name</span>
<div tal:condition="item/author_email"><a tal:attributes="href string:mailto:${item/author_email}" tal:content="item/author_email">Email</a></div>
</td>
<td tal:content="python:toLocalizedTime(item.ModificationDate, long_format=1)" /> <td tal:content="python:toLocalizedTime(item.ModificationDate, long_format=1)" />
<td> <td>
<a tal:attributes="href item/getURL" <a tal:attributes="href item/getURL"

View File

@ -14,5 +14,6 @@
<column value="commentators" /> <column value="commentators" />
<column value="in_response_to" /> <column value="in_response_to" />
<column value="author_name" /> <column value="author_name" />
<column value="author_email" />
</object> </object>

View File

@ -61,3 +61,7 @@ def upgrade_comment_workflows(context):
comment.reindexObjectSecurity() comment.reindexObjectSecurity()
except (AttributeError, KeyError): except (AttributeError, KeyError):
logger.info('Could not reindex comment %s' % brain.getURL()) logger.info('Could not reindex comment %s' % brain.getURL())
def update_catalog(context):
context.runImportStepFromProfile(default_profile, 'catalog')

View File

@ -50,5 +50,15 @@
handler=".upgrades.upgrade_comment_workflows" handler=".upgrades.upgrade_comment_workflows"
/> />
</genericsetup:upgradeSteps> </genericsetup:upgradeSteps>
<genericsetup:upgradeStep
title="show email in moderation view"
description="reload catalog config to add author_email in metadata.'"
source="1000"
destination="1001"
handler=".upgrades.update_catalog"
sortkey="1"
profile="plone.app.discussion:default"
/>
</configure> </configure>