ranger.fsobject.loader
index
/home/hut/ranger/ranger/fsobject/loader.py

# Copyright (c) 2009, 2010 hut <hut@lavabit.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

 
Modules
       
math

 
Classes
       
__builtin__.object
LoadableObject
ranger.shared.FileManagerAware(ranger.shared.Awareness)
Loader

 
class LoadableObject(__builtin__.object)
     Methods defined here:
__init__(self, gen, descr)
get_description(self)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class Loader(ranger.shared.FileManagerAware)
    
Method resolution order:
Loader
ranger.shared.FileManagerAware
ranger.shared.Awareness
__builtin__.object

Methods defined here:
__init__(self)
add(self, obj)
Add an object to the queue.
It should have a load_generator method.
has_work(self)
Is there anything to load?
move(self, _from, to)
remove(self, item=None, index=None)
rotate(self)
Rotate the throbber
work(self)
Load items from the queue if there are any.
Stop after approximately self.seconds_of_work_time.

Data and other attributes defined here:
seconds_of_work_time = 0.029999999999999999

Data and other attributes inherited from ranger.shared.FileManagerAware:
fm = None

Data descriptors inherited from ranger.shared.Awareness:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
status_generator()
Generate a rotating line which can be used as a throbber
time(...)
time() -> floating point number
 
Return the current time in seconds since the Epoch.
Fractions of a second may be present if the system clock provides them.