summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* defaults.keys: key pL to create relative symlinkshut2010-08-295-5/+97
* Removed symlink in test/hut2010-08-2919-8/+108
* Tuned versioning scheme to be more intuitive, back to 1.1.2hut2010-08-285-6/+6
* Changed version number to 1.2 (testing) to adhere with versioning schemehut2010-08-285-6/+13
* Fixed new history implementationhut2010-08-284-9/+22
* Changed default config dir to $XDG_CONFIG_HOME/rangerhut2010-08-2813-21/+29
* cleaned up and fine tuned :find commandhut2010-08-281-11/+7
* Integrated new container.history implementationhut2010-08-282-6/+9
* Changed implementation of container.historyhut2010-08-282-67/+80
* Fixed historyhut2010-08-267-27/+56
* widgets.console: removed duplicate importhut2010-08-261-1/+0
* widgets.console: removed unused Console.init() methodhut2010-08-261-4/+0
* more documentation updateshut2010-08-261-14/+21
* core.actions: 12? now opens help chapter 1 subchapter 2hut2010-08-261-2/+16
* Updated documentation for the consolehut2010-08-262-138/+61
* widgets/console: Simplified consolehut2010-08-268-494/+295
* widgets.console: improved delete_word()hut2010-08-251-8/+9
* defaults.keys: added keys gl and gL to resolve linkshut2010-08-252-1/+6
* Fixed exception when using %f macros in special caseshut2010-08-161-2/+4
* defaults.keys: map <backspace> to ^H (since ^H is bugged sometimes)hut2010-08-131-1/+1
* shared.mimetype: look for mimetypes in ~/.mime.typeshut2010-08-121-0/+3
* defaults.keys: added keys da, dr, ya, yr + documentationhut2010-07-233-5/+21
* gui.widgets.console: added %<LETTER> and %<N><letter> macroshut2010-07-172-1/+41
* help.console: typohut2010-07-171-1/+1
* defaults.apps: make pager accept ansi color codeshut2010-07-171-1/+1
* Why did the astrophysicist order three hamburgers? v1.1.2hut2010-07-124-3/+9
* defaults.keys: improved "du" keybindinghut2010-07-051-1/+2
* core.actions: added "execute_console"hut2010-07-031-0/+6
* Fixed default keyword argument value "mode" for fm.open_consolehut2010-07-031-1/+1
* ext.human_readable: fixedhut2010-06-251-5/+5
* tc_human_readable: additional testcase (which fails)hut2010-06-251-0/+4
* ext.human_readable: more efficient implementationhut2010-06-243-19/+120
* README: added design goals sectionhut2010-06-241-0/+9
* README: formatting, cleanuphut2010-06-241-4/+4
* Makefile: simplificationhut2010-06-241-1/+1
* ranger.main: ranger dir1 dir2 [...] opens multiple tabshut2010-06-241-7/+6
* removed pydoc since it can be generated with "make doc" easilyhut2010-06-2146-6669/+0
* make doc: minor cleanup and fixhut2010-06-211-2/+2
* commited pydocs are author agnosticshpelda2010-06-211-1/+2
* core.actions: Fixed indexerror in move_parent()hut2010-06-201-1/+4
* version = version + 1 v1.1.1hut2010-06-187-9/+11
* added CHANGELOGhut2010-06-181-0/+21
* INSTALL: fixed suggested uninstall-commandhut2010-06-181-1/+1
* INSTALL: changed logname from uninstall_info to install_log.txthut2010-06-182-4/+4
* Merge branch 'setup2'hut2010-06-184-84/+67
|\
| * Removed built-in support for uninstalling.hut2010-06-182-13/+10
| * added scripts/ranger (simple link to ranger.py)hut2010-06-181-0/+1
| * Rewrote INSTALL and "make (un)install"hut2010-06-182-36/+26
| * Makefile: removed functions which are now handled by setup.pyhut2010-06-181-51/+4
| * added setup.py drafthut2010-06-181-0/+42
p">(sig): self.assert_('works' in sig) self.assertEqual('yes', sig.works) handler = sd.signal_bind('x', poo) sd.signal_emit('x', works='yes') sd.signal_unbind(handler) sd.signal_emit('x') def test_signal_order(self): sd = self.sd lst = [] def addn(n): return lambda _: lst.append(n) sd.signal_bind('x', addn(6)) sd.signal_bind('x', addn(3), priority=1) sd.signal_bind('x', addn(2), priority=1) sd.signal_bind('x', addn(9), priority=0) sd.signal_bind('x', addn(1337), priority=0.7) sd.signal_emit('x') self.assert_(lst.index(3) < lst.index(6)) self.assert_(lst.index(2) < lst.index(6)) self.assert_(lst.index(6) < lst.index(9)) self.assert_(lst.index(1337) < lst.index(6)) self.assert_(lst.index(1337) < lst.index(9)) self.assert_(lst.index(1337) > lst.index(2)) def test_modifying_arguments(self): sd = self.sd lst = [] def modify(s): s.number = 5 def set_number(s): lst.append(s.number) def stopit(s): s.stop() sd.signal_bind('setnumber', set_number) sd.signal_emit('setnumber', number=100) self.assertEqual(100, lst[-1]) sd.signal_bind('setnumber', modify, priority=1) sd.signal_emit('setnumber', number=100) self.assertEqual(5, lst[-1]) lst.append(None) sd.signal_bind('setnumber', stopit, priority=1) sd.signal_emit('setnumber', number=100) self.assertEqual(None, lst[-1]) def test_weak_refs(self): sd = self.sd is_deleted = [False] class Foo(object): def __init__(self): self.alphabet = ['a'] def calc(self, signal): self.alphabet.append(chr(ord(self.alphabet[-1]) + 1)) def __del__(self): is_deleted[0] = True foo = Foo() alphabet = foo.alphabet calc = foo.calc del foo self.assertEqual('a', ''.join(alphabet)) sd.signal_bind('mysignal', calc, weak=True) sd.signal_emit('mysignal') self.assertEqual('ab', ''.join(alphabet)) self.assertFalse(is_deleted[0]) del calc self.assertTrue(is_deleted[0]) def test_weak_refs_dead_on_arrival(self): sd = self.sd is_deleted = [False] class Foo(object): def __init__(self): self.alphabet = ['a'] def calc(self, signal): self.alphabet.append(chr(ord(self.alphabet[-1]) + 1)) def __del__(self): is_deleted[0] = True foo = Foo() alphabet = foo.alphabet self.assertEqual('a', ''.join(alphabet)) sd.signal_bind('mysignal', foo.calc, weak=True) sd.signal_emit('mysignal') self.assertEqual('ab', ''.join(alphabet)) self.assertFalse(is_deleted[0]) del foo sd.signal_emit('mysignal') self.assertEqual('ab', ''.join(alphabet)) self.assertTrue(is_deleted[0]) if __name__ == '__main__': unittest.main()