summary refs log tree commit diff stats
path: root/doc/examples
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 /doc/examples
parent1f5a29d42745f0ae7c37a96339e8df0185d5f3dd (diff)
downloadranger-e7930f43811773deffdbf8bb81fae273f0c1dafc.tar.gz
update examples (s/ranger.fsobject/ranger.container/)
Diffstat (limited to 'doc/examples')
-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()
 
ef='#n201'>201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323