Permalink
Browse files

Fixed settings and doctstrings

  • Loading branch information...
1 parent 317de35 commit c47014902f33f943a08661d5d3064802cb7d8d59 @samluescher committed Mar 12, 2012
View
2 media_tree/contrib/views/detail/image.py
@@ -21,7 +21,7 @@ class ImageNodeDetailView(FileNodeDetailView):
urlpatterns = patterns('',
(r'^images/(?P<pk>\d+)/$', ImageNodeDetailView.as_view(
- queryset=FileNode.objects.get_by_path('some/folder').get_descendants()
+ queryset=FileNode.objects.get(path='some/folder').get_descendants()
)),
)
"""
View
4 media_tree/contrib/views/listing/__init__.py
@@ -30,8 +30,8 @@ class FileNodeListingView(ListView):
urlpatterns = patterns('',
(r'^listing/$', FileNodeListingView.as_view(
# notice that queryset can be any iterable, for instance a list:
- queryset=[FileNode.objects.get_by_path('some/folder')],
- max_depth=2
+ queryset=[FileNode.objects.get(path='some/folder')],
+ list_max_depth=2
)),
)
View
2 media_tree/settings.py
@@ -122,7 +122,7 @@
'eps', 'fla', 'flv', 'gif', 'gz', 'hqx', 'htm', 'html', 'ico', 'indd',
'inx', 'jpg', 'jar', 'jpeg', 'key', 'md', 'mov', 'mp3', 'mp4', 'mpc', 'mkv',
'mpg', 'mpeg', 'numbers', 'ogg', 'odg', 'odf', 'odp', 'ods', 'odt', 'otf',
- 'pages', 'pdf', 'png', 'pps', 'ppsx', 'ps', 'psd', 'rar', 'rm', 'rtf',
+ 'pages', 'pdf', 'png', 'pps', 'ppsx', 'ps', 'psd', 'rar', 'rm', 'rst', 'rtf',
'sit', 'swf', 'tar', 'tga', 'tif', 'tiff', 'ttf', 'txt', 'wav', 'wma',
'wmv', 'xls', 'xlsx', 'xml', 'zip'
))

0 comments on commit c470149

Please sign in to comment.