Make PromoteLinkNew subclass of PromoteLinkBase.

Not needed at this point, but for consistency.
This commit is contained in:
Matt Lee
2014-08-27 12:30:05 -07:00
parent 7346abd833
commit d2404e4108

View File

@@ -3581,8 +3581,6 @@ class PromotePage(Reddit):
kw['show_sidebar'] = False
Reddit.__init__(self, nav_menus=nav_menus, *a, **kw)
class PromoteLinkNew(Templated):
pass
class PromoteLinkBase(Templated):
min_start = None
@@ -3631,6 +3629,10 @@ class PromoteLinkBase(Templated):
self.collections = [cl.__dict__ for cl in Collection.get_all()]
class PromoteLinkNew(PromoteLinkBase):
pass
class PromoteLinkEdit(PromoteLinkBase):
def __init__(self, link, listing, *a, **kw):
self.setup(link, listing)