18 lines
449 B
Python
18 lines
449 B
Python
from .base import BaseApp
|
|
|
|
class App(BaseApp):
|
|
app_id = 'feed-app'
|
|
template_name = 'apps/feed.html'
|
|
sizex = 2
|
|
sizey = 2
|
|
scroll = True
|
|
|
|
def __init__(self, app_id, feed_url='#', **kwargs):
|
|
super(App, self).__init__(app_id, **kwargs)
|
|
self.feed_url = feed_url
|
|
|
|
def get_content_args(self):
|
|
args = super(App, self).get_content_args()
|
|
args.update({'feed_url': self.feed_url})
|
|
return args
|