Skip to content

Commit

Permalink
Merge pull request #227 from collective/export_topic
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer authored Oct 27, 2023
2 parents 80063ca + a277c55 commit f92eeca
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ Changelog
This fixes an error at the end of the export and no errors being written.
[thet]

- Add support for ATTopic export_content
[avoinea]


1.10 (2023-10-11)
-----------------
Expand Down
9 changes: 9 additions & 0 deletions src/collective/exportimport/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
permission="cmf.ManagePortal"
/>

<browser:page
zcml:condition="installed Products.ATContentTypes.content.topic"
name="export_content"
for="Products.ATContentTypes.interfaces.IATTopic"
class=".export_topic.ExportTopic"
template="templates/export_content.pt"
permission="cmf.ManagePortal"
/>

<browser:page
name="export_relations"
for="zope.interface.Interface"
Expand Down
9 changes: 9 additions & 0 deletions src/collective/exportimport/export_topic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
""" Export ATTopic """
from collective.exportimport.export_content import ExportContent


class ExportTopic(ExportContent):
""" Export ATTopic """
def build_query(self):
""" Build the query based on the topic criterias """
return self.context.buildQuery()

0 comments on commit f92eeca

Please sign in to comment.