summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* defaults/rc.conf: key "v" toggles instead of sets markinghut2011-10-021-1/+1
* core.actions: smarter open() in get_previewhut2011-10-021-1/+1
* core.actions: fix decoding error when previewing some fileshut2011-10-021-1/+3
* api.apps: fixed error messagehut2011-10-021-0/+2
* core.actions: sanitize input of {set,enter,unset}_bookmarkhut2011-10-021-4/+4
* Changed version to 1.5.0hut2011-10-024-13/+4
* Merge branch 'stable'hut2011-10-023-6/+19
|\
| * CHANGELOG: sorted itemshut2011-10-021-7/+7
| * One in five ranger users use it exclusively for browsing porn v1.4.4hut2011-10-024-7/+20
| * Revert "defaults/keys: use = key for octal chmodding"hut2011-10-021-9/+5
| * manpage: updated website URLhut2011-10-021-1/+1
| * manpage: document --choosedir and --choosefilehut2011-10-021-0/+9
| * core.actions: fixed cycling by atime and mtimehut2011-09-292-1/+7
* | api.apps: removed the need to use tup() in app definitionshut2011-10-023-41/+56
* | defaults/apps.py: added sxivhut2011-10-021-7/+23
* | defaults/rc.conf: added missing keys, fixed tab_newhut2011-10-022-19/+32
* | core.runner: updated docstringhut2011-10-021-1/+3
* | widgets.console: increased efficiencehut2011-10-022-16/+12
* | api.commands: fixed narg stuffhut2011-10-021-8/+11
* | widgets.browserview: re-added _draw_borders methodhut2011-10-021-0/+47
* | doc/ranger.1: updated manpagehut2011-10-012-73/+123
* | defaults/commands: removed "console!" and fixed "chmod" commandhut2011-10-011-13/+3
* | core.shared: silence a warning when using ranger as roothut2011-10-011-1/+2
* | widgets.pager: fixed some problems with pager/embedded_pagerhut2011-10-013-6/+13
* | core.main: fixed --list-unused-keys in python3.2hut2011-10-011-1/+1
* | core.helper: fixed command loading with --cleanhut2011-10-011-1/+4
* | core.helper: removed obsolete import when using --cleanhut2011-10-011-1/+1
* | defaults/rc.conf: fixed typoshut2011-10-011-2/+2
* | core.actions: killed hidden ninja bughut2011-10-011-1/+1
* | api.commands: fixed missing narg when command has no argumentshut2011-10-011-1/+1
* | defaults/rc.conf: added introductionhut2011-10-011-0/+20
* | defaults/rc.conf: map Q to quit! instead of quithut2011-10-011-1/+1
* | gui.ui: fixed hint box when typing in numbershut2011-10-011-1/+2
* | defaults/rc.conf: added some scrolling keys for pagerhut2011-10-011-0/+9
* | widgets.browserview: removed old code (for bookmark drawing)hut2011-10-011-34/+1
* | defaults/rc.conf: fixed pager bindingshut2011-10-011-13/+13
* | defaults/rc.conf: cleaned rc.confhut2011-10-011-3/+3
* | ext.widestring: fixed input of unicode in console for python2hut2011-10-011-0/+1
* | ext.keybindings: Fix unicode keybindings in python3hut2011-10-011-0/+5
* | ext.widestring: Fixeshut2011-10-012-8/+9
* | gui.bar: renamed attribute (width_of_first_letter -> min_size)hut2011-10-011-6/+6
* | gui.bar: fixing unicode in bars...hut2011-10-013-11/+22
* | ext.widestring: fix for python2 verisonshut2011-10-011-6/+11
* | widgets.console: more detailed error message when command not foundhut2011-10-011-1/+2
* | ext.widestring: removed obsolete codehut2011-10-011-146/+8
* | trying to fix utf shit...hut2011-10-014-135/+36
* | core.actions: renamed Actions.mark to mark_files to avoid collisionhut2011-10-012-5/+5
* | gui.widgets.browserview: improved hint/bookmark listhut2011-10-014-8/+12
* | ext.keybindings: hide bookmarks properlyhut2011-10-011-0/+1
* | gui.widgets.browserview: new bookmark listhut2011-10-011-51/+29
"o">.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()