summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-07-17 22:59:49 +0000
committerianb <devnull@localhost>2005-07-17 22:59:49 +0000
commit0d5ef1030e6aa1f14d146a5f7280826623bc8d9c (patch)
tree6d8b4d543d082a2dec6c154d985d32b5f915f876 /examples
parentae5d667cf4fec55d3ff8cc29e1d66b0ba4b004bd (diff)
downloadpaste-0d5ef1030e6aa1f14d146a5f7280826623bc8d9c.tar.gz
Make TextFile match text/*
Diffstat (limited to 'examples')
-rw-r--r--examples/filebrowser/pathobj.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/filebrowser/pathobj.py b/examples/filebrowser/pathobj.py
index 34bc1e2..4c649bf 100644
--- a/examples/filebrowser/pathobj.py
+++ b/examples/filebrowser/pathobj.py
@@ -41,7 +41,7 @@ class PathContext(object):
if mimetype:
path_class = self.path_classes.get(mimetype)
if mimetype and not path_class:
- path_class = self.path_classes.get(mimetype.split('/')[0]+'*')
+ path_class = self.path_classes.get(mimetype.split('/')[0]+'/*')
if not path_class:
path_class = self.path_classes['*']
return path_class(path, filename, self)
@@ -189,7 +189,7 @@ PathContext.register_class(Image)
class TextFile(Path):
- extensions = ['.txt', 'text/plain']
+ extensions = ['.txt', 'text/plain', 'text/*']
allow_edit = True
edit_view = 'edit_text.pt'