Changeset 3609

Show
Ignore:
Timestamp:
31/08/09 17:48:15 (12 months ago)
Author:
aperez
Message:

Adds a new wizard to set up XMLRPC for rTorrent.

Location:
cherokee/trunk/admin
Files:
2 added
3 modified

Legend:

Unmodified
Added
Removed
  • cherokee/trunk/admin/Makefile.am

    r3594 r3609  
    122122Wizard_Icons.py \ 
    123123Wizard_CommonStatic.py \ 
    124 Wizard_Streaming.py  
     124Wizard_Streaming.py \ 
     125Wizard_rTorrent.py 
    125126endif 
    126127 
  • cherokee/trunk/admin/static/images/wizards/Makefile.am

    r3587 r3609  
    1313icons.png \ 
    1414common_static.png \ 
    15 streaming.png 
     15streaming.png \ 
     16rtorrent.png 
    1617 
    1718EXTRA_DIST = \ 
  • cherokee/trunk/admin/util.py

    r3335 r3609  
    3232                return p 
    3333 
     34def cfg_vsrv_rule_find_regexp (cfg, pre, regexp): 
     35    """Find a regular expresion rule in a virtual server """ 
     36    for r in cfg.keys("%s!rule"%(pre)): 
     37        p = "%s!rule!%s" % (pre, r) 
     38        if cfg.get_val ("%s!match"%(p)) == "request": 
     39            if regexp == cfg.get_val ("%s!match!request"%(p)): 
     40                return p 
    3441 
    3542#