projects
/
invirt/packages/python-routefs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
406f546
)
Remove example qualities of DictFS - that can go in examples later
author
Evan Broder
<broder@mit.edu>
Tue, 12 Aug 2008 06:27:17 +0000
(23:27 -0700)
committer
Evan Broder
<broder@mit.edu>
Tue, 12 Aug 2008 06:27:17 +0000
(23:27 -0700)
routefs/dictfs.py
[changed mode: 0755->0644]
patch
|
blob
|
history
diff --git
a/routefs/dictfs.py
b/routefs/dictfs.py
old mode 100755
(executable)
new mode 100644
(file)
index
a0d302c
..
595fded
--- a/
routefs/dictfs.py
+++ b/
routefs/dictfs.py
@@
-1,5
+1,3
@@
-#!/usr/bin/python
-
"""
DictFS allows you to easily create read-only filesystems when the
file tree is known in advance.
@@
-22,8
+20,7
@@
class DictFS(routefs.RouteFS):
"""
This property should be overridden in your DictFS descendant
"""
- return dict(Hello='World',
- Directory=dict(a='a', b='b', c=routefs.Symlink('a')))
+ return dict()
def make_map(self):
m = Mapper()
@@
-49,6
+46,3
@@
class DictFS(routefs.RouteFS):
return routefs.Directory(tree.keys())
else:
return tree
-
-if __name__ == '__main__':
- routefs.main(DictFS)