Skip to content

Commit

Permalink
Merge pull request #559 from jerome-poisson/SDNTB-280_2
Browse files Browse the repository at this point in the history
[NITF] [FORMATTER] added distributor method
  • Loading branch information
jerome-poisson committed Sep 5, 2016
2 parents 7170eca + 5e39179 commit 959c6bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superdesk/publish/formatters/nitf_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def _format_body_head_abstract(self, article, body_head):
abstract = SubElement(body_head, 'abstract')
self.map_html_to_xml(abstract, article.get('abstract'))

def _format_body_head_distributor(self, article, body_head):
pass

def _format_body_head_dateline(self, article, body_head):
if article.get('dateline', {}).get('text'):
dateline = SubElement(body_head, 'dateline')
Expand All @@ -131,8 +134,8 @@ def _format_body_head(self, article, body_head):
byline = SubElement(body_head, 'byline')
byline.text = "By " + article['byline']

self._format_body_head_distributor(article, body_head)
self._format_body_head_dateline(article, body_head)

self._format_body_head_abstract(article, body_head)

for company in article.get('company_codes', []):
Expand Down

0 comments on commit 959c6bb

Please sign in to comment.