diff options
| author | ianb <devnull@localhost> | 2005-07-17 22:59:49 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2005-07-17 22:59:49 +0000 |
| commit | 0d5ef1030e6aa1f14d146a5f7280826623bc8d9c (patch) | |
| tree | 6d8b4d543d082a2dec6c154d985d32b5f915f876 /examples | |
| parent | ae5d667cf4fec55d3ff8cc29e1d66b0ba4b004bd (diff) | |
| download | paste-0d5ef1030e6aa1f14d146a5f7280826623bc8d9c.tar.gz | |
Make TextFile match text/*
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/filebrowser/pathobj.py | 4 |
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' |
