Convert front page button selection to be dynamic
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user