Software Freedom Law Center

Changeset 138

Show
Ignore:
Timestamp:
06/07/08 14:59:49 (4 months ago)
Author:
landon
Message:

Bot upgraded to correctly reload modules in nested directories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/antimatter/luke/gozerbot/generic.py

    r130 r138  
    928928        if os.path.isdir(dirname + os.sep + i): 
    929929            result.append(i) 
     930#            for j in os.listdir(dirname + os.sep + i): 
     931#               if j.endswith('.py'): 
     932#                   if j != '__init__.py': 
     933#                       result.append(i + os.sep + j[:-3]) 
    930934        elif i.endswith('.py'): 
    931935            result.append(i[:-3]) 
  • trunk/antimatter/luke/gozerdata/config

    r130 r138  
    3030# if it doesn't match you will get an userhost denied message when you 
    3131# try to send commands to the bot 
    32 owneruserhost = ['Landon@208.83.233.64', 'bkuhn@sflc/staff/conservancy.president.bkuhn'] 
     32owneruserhost = ['Landon@unaffiliated/landon', 'bkuhn@sflc/staff/conservancy.president.bkuhn'] 
    3333 
    3434# the nick the bot tries to use, only used if no nick is set 
  • trunk/antimatter/luke/gozerdata/fleet

    r130 r138  
    66p3 
    77a(lp4 
    8 S'Landon@208.83.233.64
     8S'Landon@unaffiliated/landon
    99p5 
    1010aS'bkuhn@sflc/staff/conservancy.president.bkuhn' 
  • trunk/antimatter/luke/gozerdata/main.userhosts

    r130 r138  
    11(dp0 
    2 Vcia-49 
     2Vgozerbot 
    33p1 
    4 VCIA@208.69.182.149 
     4Vgozerbot@gozerbot.org 
    55p2 
     6sVlandon_ 
     7p3 
     8VLandon@208.83.233.64 
     9p4 
    610sVchanserv 
    7 p3 
     11p5 
    812VChanServ@services. 
    9 p4 
     13p6 
    1014sVgb51 
    11 p5 
     15p7 
    1216VLazyLuke@ip70-179-170-189.fv.ks.cox.net 
    13 p6 
     17p8 
    1418sVlandon 
    15 p7 
    16 VLandon@208.83.233.64 
    17 p8 
     19p9 
     20VLandon@unaffiliated/landon 
     21p10 
    1822sVoldtimbot 
    19 p9 
     23p11 
    2024VTimeTrac@ip70-179-170-189.fv.ks.cox.net 
    21 p10 
     25p12 
    2226sVgb65 
    23 p11 
    24 VLazyLuke@ip70-179-170-189.fv.ks.cox.net 
    25 p12 
    26 sVlazyluke 
    2727p13 
    2828VLazyLuke@ip70-179-170-189.fv.ks.cox.net 
    2929p14 
     30sVlazyluke 
     31p15 
     32VLazyLuke@ip70-179-170-189.fv.ks.cox.net 
     33p16 
    3034sVsflc_log 
    31 p15 
     35p17 
    3236VLogger@thurgood-marshall.sflc.info 
    33 p16 
    34 sVisullivan 
    35 p17 
    36 Vsullivan@john-marshall.sflc.info 
    3737p18 
    3838sVgb59 
     
    4040VLazyLuke@ip70-179-170-189.fv.ks.cox.net 
    4141p20 
     42sVdunkert` 
     43p21 
     44Vdunker@bla.gozerbot.org 
     45p22 
     46sVdunker 
     47p23 
     48Vbart@ip5657f74a.direct-adsl.nl 
     49p24 
    4250sVbkuhn 
    43 p21 
    44 Vbkuhn@atheist.ebb.org 
    45 p22 
     51p25 
     52Vbkuhn@sflc/staff/conservancy.president.bkuhn 
     53p26 
    4654sVdunk_ 
    47 p23 
     55p27 
    4856Vdunker@bla.gozerbot.org 
    49 p24 
    50 sVlandon_ 
    51 p25 
     57p28 
     58sVeclipsor 
     59p29 
    5260VLandon@208.83.233.64 
    53 p26 
     61p30 
     62sVisullivan 
     63p31 
     64Vsullivan@john-marshall.sflc.info 
     65p32 
    5466sV[omegentoox] 
    55 p27 
     67p33 
    5668Vmharriso@c-71-192-101-221.hsd1.ma.comcast.net 
    57 p28 
     69p34 
     70sVbkuhn` 
     71p35 
     72Vbkuhn@john-marshall.sflc.info 
     73p36 
    5874sVbkuhnidle 
    59 p29 
     75p37 
    6076Vbkuhn@sflc/staff/conservancy.president.bkuhn 
    61 p30 
     77p38 
    6278sVjrgarrison 
    63 p31 
     79p39 
    6480Vjrgarris@sflc/staff/jrgarrison 
    65 p32 
    66 sVdunkert` 
    67 p33 
    68 Vdunker@bla.gozerbot.org 
    69 p34 
     81p40 
     82sVcia-49 
     83p41 
     84VCIA@208.69.182.149 
     85p42 
    7086s. 
  • trunk/antimatter/luke/gozerdata/pluginsstate

    r130 r138  
    77aVeval 
    88p4 
    9 aVtracker 
     9aVdummy 
    1010p5 
    11 aVdummy 
     11aS'auth' 
    1212p6 
     13aS'tracker' 
     14p7 
    1315as. 
  • trunk/antimatter/luke/gozerdata/users

    r130 r138  
    4949aS'bkuhn@sflc/staff/conservancy.president.bkuhn' 
    5050p28 
     51aS'Landon@unaffiliated/landon' 
     52p29 
    5153asS'email' 
    52 p29 
     54p30 
    5355g24 
    5456sS'permit' 
    55 p30 
    56 (lp31 
     57p31 
     58(lp32 
    5759sbag1 
    5860(g2 
    5961g3 
    60 Ntp32 
    61 Rp33 
    62 (dp34 
     62Ntp33 
     63Rp34 
     64(dp35 
    6365S'status' 
    64 p35 
    65 (lp36 
     66p36 
     67(lp37 
    6668sS'userdata' 
    67 p37 
    68 (dp38 
    69 sS'allowed' 
    70 p39 
    71 (lp40 
     69p38 
     70(dp39 
    7271sS'name' 
     72p40 
     73S'dunk_' 
    7374p41 
    74 S'dunk_
     75sS'notallowed
    7576p42 
    76 sS'notallowed' 
    77 p43 
    78 (lp44 
     77(lp43 
    7978sS'perms' 
    80 p45 
    81 (lp46 
     79p44 
     80(lp45 
    8281S'USER' 
     82p46 
     83asS'allowed' 
    8384p47 
    84 asS'userhosts' 
    85 p48 
    86 (lp49 
     85(lp48 
     86sS'tempuserhosts' 
     87p49 
     88(lp50 
     89sS'passwd' 
     90p51 
     91g24 
     92sS'userhosts' 
     93p52 
     94(lp53 
    8795Vdunker@bla.gozerbot.org 
    88 p50 
    89 asS'tempuserhosts' 
    90 p51 
    91 (lp52 
    92 sS'passwd' 
    93 p53 
     96p54 
     97asS'email' 
     98p55 
    9499g24 
    95100sS'permit' 
    96 p54 
    97 (lp55 
    98 sS'email' 
    99101p56 
    100 g24 
     102(lp57 
    101103sbag1 
    102104(g2 
    103105g3 
    104 Ntp57 
    105 Rp58 
    106 (dp59 
    107 g35 
    108 (lp60 
    109 sg37 
    110 (dp61 
    111 sg39 
    112 (lp62 
    113 sg41 
     106Ntp58 
     107Rp59 
     108(dp60 
     109g36 
     110(lp61 
     111sg38 
     112(dp62 
     113sg40 
    114114S'[omegentoox]' 
    115115p63 
    116 sg43 
     116sg42 
    117117(lp64 
    118 sg45 
     118sg44 
    119119(lp65 
    120 g47 
    121 asg48 
     120g46 
     121asg47 
    122122(lp66 
     123sg49 
     124(lp67 
     125sg51 
     126g24 
     127sg52 
     128(lp68 
    123129Vmharriso@c-71-192-101-221.hsd1.ma.comcast.net 
    124 p67 
    125 asg51 
    126 (lp68 
    127 sg53 
     130p69 
     131asg55 
    128132g24 
    129 sg54 
    130 (lp69 
    131133sg56 
    132 g24 
     134(lp70 
    133135sba. 
  • trunk/antimatter/luke/gozerplugs/plugs/reload.py

    r130 r138  
    3232        got = [] 
    3333        base = 'myplugs' + os.sep + plug 
    34         if os.path.isfile(base + '.py') or os.path.isdir(base)
     34        if os.path.isfile(base + '.py')
    3535            got = plugins.reload('myplugs', plug) 
     36        elif os.path.isdir(base): 
     37            my_import(base) 
     38            myplugs = my_import(base + '.__init__') 
     39            for p in myplugs.__all__: 
     40                got.extend(plugins.reload(base, p)) 
    3641        else: 
    3742            if config['dbenable']: 
  • trunk/antimatter/luke/myplugs/libtracker/auth.py

    r137 r138  
    11""" Simple user authentication script """ 
    2 from gozerbot.generic import waitforuser 
    3  
     2from gozerbot.generic import waitforuser, rlog 
    43def authenticate_name(bot, ievent): 
    54    """ Not authentication, just checks that the name exists """ 
    65    bot.say("Landon","Username?") 
     6    rlog(99,"Debug","Testing for auth reload") 
    77    username = waitforuser(bot, ievent.userhost, 30) 
    88    return username.txt 
  • trunk/antimatter/luke/myplugs/libtracker/tracker.py

    r137 r138  
    55 
    66def start_tracker(bot, ievent): 
    7     ievent.reply("whoo?") 
    87    user = auth.authenticate_name(bot, ievent) 
    98    ievent.reply(user) 

SFLC Main Page

[frdm] Support SFLC