summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-17 16:57:52 +0100
committerhut <hut@lavabit.com>2013-03-17 16:57:52 +0100
commite7930f43811773deffdbf8bb81fae273f0c1dafc (patch)
treedbae6e67aa7c6fd22e37b86d0277000c0f30efdd
parent1f5a29d42745f0ae7c37a96339e8df0185d5f3dd (diff)
downloadranger-e7930f43811773deffdbf8bb81fae273f0c1dafc.tar.gz
update examples (s/ranger.fsobject/ranger.container/)
-rw-r--r--doc/examples/plugin_file_filter.py8
-rw-r--r--doc/examples/plugin_new_sorting_method.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/examples/plugin_file_filter.py b/doc/examples/plugin_file_filter.py
index 965fa2e8..bad5a368 100644
--- a/doc/examples/plugin_file_filter.py
+++ b/doc/examples/plugin_file_filter.py
@@ -4,8 +4,8 @@
 # root directory.
 
 # Save the original filter function
-import ranger.fsobject.directory
-old_accept_file = ranger.fsobject.directory.accept_file
+import ranger.container.directory
+old_accept_file = ranger.container.directory.accept_file
 
 # Define a new one
 def custom_accept_file(fname, directory, hidden_filter, name_filter):
@@ -15,5 +15,5 @@ def custom_accept_file(fname, directory, hidden_filter, name_filter):
                return old_accept_file(fname, directory, hidden_filter, name_filter)
 
 # Overwrite the old function
-import ranger.fsobject.directory
-ranger.fsobject.directory.accept_file = custom_accept_file
+import ranger.container.directory
+ranger.container.directory.accept_file = custom_accept_file
diff --git a/doc/examples/plugin_new_sorting_method.py b/doc/examples/plugin_new_sorting_method.py
index 02abbc47..6b41b0e1 100644
--- a/doc/examples/plugin_new_sorting_method.py
+++ b/doc/examples/plugin_new_sorting_method.py
@@ -3,7 +3,7 @@
 # This plugin adds the sorting algorithm called 'random'.  To enable it, type
 # ":set sort=random" or create a key binding with ":map oz set sort=random"
 
-from ranger.fsobject.directory import Directory
+from ranger.container.directory import Directory
 from random import random
 Directory.sort_dict['random'] = lambda path: random()