ClientScript register

This commit is contained in:
Ruud committed 2011-04-11 15:37:41 +02:00
1 parent 2a60a4eaa3
commit 0672e120a0
19 files changed
+514 -15

No files matched your search

+7 -2
View File
@@ -1,12 +1,14 @@
from couchpotato import get_session
from couchpotato.core.event import addEvent
from couchpotato.core.event import addEvent, fireEvent
from couchpotato.core.helpers.encoding import toUnicode
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.core.settings.model import Status
log = CPLog(__name__)
class StatusPlugin:
class StatusPlugin(Plugin):
statuses = {
'active': 'Active',
@@ -21,6 +23,9 @@ class StatusPlugin:
addEvent('status.all', self.all)
addEvent('app.load', self.fill)
path = self.registerStatic(__file__)
fireEvent('register_script', path + 'status.js')
def all(self):
db = get_session()