https://bugzilla.wikimedia.org/show_bug.cgi?id=59393

       Web browser: ---
            Bug ID: 59393
           Summary: DRTRIGON-131 Reduce bot_control.py influence, try to
                    unlink features
           Product: Tool Labs tools
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: DrTrigonBot - subster
          Assignee: wmf.bugconver...@gmail.com
          Reporter: wmf.bugconver...@gmail.com
    Classification: Unclassified
   Mobile Platform: ---

This issue was converted from https://jira.toolserver.org/browse/DRTRIGON-131.
Summary: Reduce bot_control.py influence, try to unlink features
Issue type: Improvement - An improvement or enhancement to an existing feature
or task.
Priority: Major
Status: Closed
Assignee: drtrigon <dr.tri...@surfeu.ch>

-------------------------------------------------------------------------------
From: drtrigon <dr.tri...@surfeu.ch>
Date: Wed, 02 Jan 2013 21:46:37
-------------------------------------------------------------------------------

Try to simplify functions and to unlink/move them from `bot_control.py` and put
into framework upstream or bot scripts.

  * make the magicwords mechanism independent from `bot_control.py` by using
`subster_irc.py` (which runs all the time) and connect to it by IRC channel
(private communication) or alternatively by XML-RCP 
    * use a local file (e.g. `cache/state_bots`) and allow `subster.py` the
access to it (like url, mail or any other source)
    * use same (simple) IRC code as in `subster_irc.py` or (very simple) in
`panel.py`
    * http://docs.python.org/2/library/xmlrpclib.html
    * http://docs.python.org/2/library/simplexmlrpcserver.html
  * error handler (with mail) 
    * let the logging module do this, with help of class `AdminEmailHandler`
  * logger 
    * e.g. move logging/logger stuff to `wikipedia.py` function `log(...)` (use
'-log') and emulate 'info', 'warning', ... by using messages/text like "INFO:
...", "WARNING: ..." (as already done), ...
  * generic info and version output
  * several patches and work-a-rounds for other buggy code (e.g. py2.6)

The first point would also remove the need to run `sum_disc.py`, `subster.py`
and others in sequence (one of the main reasons for `bot_control.py`) and allow
to run them all in parallel (also because of new log file regime) and thus give
more freedom for cron-job setup.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to