#1891: deluge gtk no options working
---------------------+------------------------------------------------------
 Reporter:  firefox  |       Owner:  s0undt3ch 
     Type:  bug      |      Status:  assigned  
 Priority:  blocker  |   Milestone:  1.4.0     
Component:  gtkui    |     Version:  git master
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by s0undt3ch):

 Some script searching for previous and current signal handlers:

 {{{
 #!python
 import os, re

 PREV = '/tmp/deluge/deluge/ui/gtkui/glade/'
 CURR = '/home/vampas/projects/Deluge/deluge/ui/gtkui/glade/'

 PREV_HANDLERS = []
 CURR_HANDLERS = []

 signal_re = re.compile(r'(?:<signal name=")(?P<name>.*)"
 handler="(?P<handler>.*)"/>')

 for fname in os.listdir(PREV):
     if not fname.endswith('.glade'):
         continue

     for line in open(os.path.join(PREV, fname)).readlines():
         match = signal_re.search(line)
         if not match:
             continue

         PREV_HANDLERS.append(match.group('handler'))
 #        print '   Signal Name:', match.group('name')
 #        print 'Signal Handler:', match.group('handler')

 for fname in os.listdir(PREV):
     if not fname.endswith('.glade'):
         continue

     for line in open(os.path.join(PREV, fname)).readlines():
         match = signal_re.search(line)
         if not match:
             continue

         CURR_HANDLERS.append(match.group('handler'))
 #        print '   Signal Name:', match.group('name')
 #        print 'Signal Handler:', match.group('handler')


 print "Previous handlers count", len(PREV_HANDLERS), "... Removing
 duplicates", len(set(PREV_HANDLERS))
 print "Current handlers count", len(CURR_HANDLERS), "... Removing
 duplicates", len(set(CURR_HANDLERS))

 print "All previous signals are handled in current code?",
 sorted(PREV_HANDLERS) == sorted(CURR_HANDLERS)

 print set(PREV_HANDLERS).difference(CURR_HANDLERS)

 }}}

 which outputs:
 {{{
 Previous handlers count 165 ... Removing duplicates 121
 Current handlers count 165 ... Removing duplicates 121
 All previous signals are handled in current code? True
 set([])
 }}}

 So, it should be fixed now. Not closing it yet, need to investigate Cas's
 issue reported here.

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1891#comment:9>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to