This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
univcloud/univcloud/apps/feed.py

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