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

# Copyright (C) 2009, 2010  Roman Zimbelmann <romanz@lavabit.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

 
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.