summaryrefslogtreecommitdiffstats
path: root/module/web/pyload/urls.py
diff options
context:
space:
mode:
authorGravatar therazer <devnull@localhost> 2010-11-09 21:30:54 +0100
committerGravatar therazer <devnull@localhost> 2010-11-09 21:30:54 +0100
commitfa078c84b81f891aa800ca602fbc7d7ec3d02753 (patch)
tree8431575a6a27dab13700b538ccc4e94cba2e9c87 /module/web/pyload/urls.py
parentaccount reloadData fix (diff)
downloadpyload-fa078c84b81f891aa800ca602fbc7d7ec3d02753.tar.xz
added browser for files, too + little patches
Diffstat (limited to 'module/web/pyload/urls.py')
-rw-r--r--module/web/pyload/urls.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/web/pyload/urls.py b/module/web/pyload/urls.py
index 6523d711a..fe85c1096 100644
--- a/module/web/pyload/urls.py
+++ b/module/web/pyload/urls.py
@@ -17,8 +17,10 @@ urlpatterns = patterns('pyload',
(r'^logs/(?P<item>\d+)$', 'views.logs',{}, 'logs'),
(r'^package_ui.js$', 'views.package_ui', {}, 'package_ui'),
(r'^$', 'views.home',{}, 'home'),
- url(r'^pathchooser/(?P<path>.*)', 'views.path', name='path'),
- url(r'^pathchooser/$', 'views.root', name='root'),
+ url(r'^pathchooser/(?P<path>.*)', 'views.path', {'type':'folder'}, name='path'),
+ url(r'^pathchooser/$', 'views.root', {'type':'folder'}, name='pathroot'),
+ url(r'^filechooser/(?P<path>.*)', 'views.path', {'type':'file'}, name='file'),
+ url(r'^filechooser/$', 'views.root', {'type':'file'}, name='fileroot'),
)
urlpatterns += patterns('django.contrib.auth',