Convert front page button selection to be dynamic

This commit is contained in:
Roberto Rosario
2015-01-26 18:22:55 -04:00
parent 1494390f0b
commit 73f0a4082a
9 changed files with 29 additions and 30 deletions
+10
View File
@@ -0,0 +1,10 @@
class FrontPageButton(object):
_registry = []
@classmethod
def get_all(cls):
return cls._registry
def __init__(self, link):
self.link = link
self.__class__._registry.append(link)