Skip to content

Commit

Permalink
Merge pull request #114 from marwoodandrew/fix-nitf-formatter
Browse files Browse the repository at this point in the history
Fix nitf formatter, some method names changed
  • Loading branch information
Mayur Dhamanwala authored Sep 6, 2016
2 parents 2653b7c + 8a77c5b commit 0eb4aff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions server/aap/publish/formatters/aap_nitf_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def can_format(self, format_type, article):
return format_type == 'aap_nitf' and \
article[ITEM_TYPE] in (CONTENT_TYPE.TEXT, CONTENT_TYPE.PREFORMATTED)

def _append_meta(self, article, head, destination, pub_seq_num):
def _format_meta(self, article, head, destination, pub_seq_num):
"""
Appends <meta> elements to <head>
"""
super()._append_meta(article, head, destination, pub_seq_num)
super()._format_meta(article, head, destination, pub_seq_num)

if 'anpa_category' in article and article['anpa_category'] is not None and len(
article.get('anpa_category')) > 0:
Expand Down Expand Up @@ -76,7 +76,7 @@ def _append_meta(self, article, head, destination, pub_seq_num):
if SIGN_OFF in article:
SubElement(head, 'meta', {'name': 'aap-signoff', 'content': article.get(SIGN_OFF, '') or ''})

def _append_meta_priority(self, article, head):
def _format_meta_priority(self, article, head):
if 'priority' in article:
SubElement(head, 'meta', {'name': 'aap-priority', 'content': str(article['priority'])})

Expand Down
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pyodbc==3.0.10
unidecode==0.04.19


git+git://github.com/superdesk/superdesk-core.git@a3965a579#egg=Superdesk-Core
git+git://github.com/superdesk/superdesk-core.git@3c7eb1e64#egg=Superdesk-Core

0 comments on commit 0eb4aff

Please sign in to comment.