From fa078c84b81f891aa800ca602fbc7d7ec3d02753 Mon Sep 17 00:00:00 2001 From: therazer Date: Tue, 9 Nov 2010 21:30:54 +0100 Subject: added browser for files, too + little patches --- module/web/pyload/urls.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module/web/pyload/urls.py') 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\d+)$', 'views.logs',{}, 'logs'), (r'^package_ui.js$', 'views.package_ui', {}, 'package_ui'), (r'^$', 'views.home',{}, 'home'), - url(r'^pathchooser/(?P.*)', 'views.path', name='path'), - url(r'^pathchooser/$', 'views.root', name='root'), + url(r'^pathchooser/(?P.*)', 'views.path', {'type':'folder'}, name='path'), + url(r'^pathchooser/$', 'views.root', {'type':'folder'}, name='pathroot'), + url(r'^filechooser/(?P.*)', 'views.path', {'type':'file'}, name='file'), + url(r'^filechooser/$', 'views.root', {'type':'file'}, name='fileroot'), ) urlpatterns += patterns('django.contrib.auth', -- cgit v1.2.3