Skip to content

Commit cfe8f56

Browse files
committedJul 8, 2017
API change in ImportMixin
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 2b37a2f commit cfe8f56

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed
 

‎v7/import_feed/import_feed.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,11 @@ def import_item(self, item, out_folder=None):
207207
LOGGER.warn('Not going to import "{0}" because it seems to contain'
208208
' no content.'.format(title))
209209

210-
@staticmethod
211-
def write_metadata(filename, title, slug, post_date, description, tags):
212-
ImportMixin.write_metadata(filename,
213-
title,
214-
slug,
215-
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
216-
description,
217-
tags)
210+
def write_metadata(self, filename, title, slug, post_date, description, tags):
211+
super(CommandImportFeed, self).write_metadata(
212+
filename,
213+
title,
214+
slug,
215+
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
216+
description,
217+
tags)

‎v7/import_gplus/import_gplus.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ def import_posts(self, zipfile, names):
141141
os.path.join(self.output_folder, out_folder, slug + '.html'),
142142
content)
143143

144-
@staticmethod
145-
def write_metadata(filename, title, slug, post_date, description, tags):
146-
ImportMixin.write_metadata(filename,
147-
title,
148-
slug,
149-
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
150-
description,
151-
tags)
144+
def write_metadata(self, filename, title, slug, post_date, description, tags):
145+
super(CommandImportGplus, self).write_metadata(
146+
filename,
147+
title,
148+
slug,
149+
post_date.strftime(r'%Y/%m/%d %H:%m:%S'),
150+
description,
151+
tags)

0 commit comments

Comments
 (0)
Please sign in to comment.