Auto register static files

This commit is contained in:
Ruud
2011-08-24 12:02:40 +02:00
parent 9734521178
commit e8db94c831
16 changed files with 26 additions and 31 deletions
+2 -1
View File
@@ -1,12 +1,13 @@
from couchpotato.api import addApiView
from couchpotato.core.helpers.request import getParam, jsonified
from couchpotato.core.plugins.base import Plugin
import os
import string
if os.name == 'nt':
import win32file
class FileBrowser():
class FileBrowser(Plugin):
def __init__(self):
addApiView('directory.list', self.view)