d802fdb first version of a script for updating Common Bugs pages

Authored and Committed by adamwill 8 years ago
1 file changed. 244 lines added. 0 lines removed.
    first version of a script for updating Common Bugs pages
    
    This is a bit rough, but it does work. It basically looks
    through common bugs pages for entries which don't have an
    'update available' template, but for which an update (or more
    than one) update seems to be available, going by the bug ID(s)
    associated with the entry. It then gives you some info about
    the bugs and updates associated with each entry, and lets you
    choose what to do: leave the entry alone, 'update' it (i.e.
    add the 'update available' template(s) and, if the update(s)
    are stable, move it to the 'Resolved issues' section), edit
    the entry manually (in which case it will add the template and
    then launch your preferred editor for you to tweak the entry
    from there), or display the entry then ask you again. Once
    you're done, it shows the diff of your edits and lets you
    apply them or bail out.
    
    I'll probably clean this up a bit tomorrow. Not sure if I'll
    put the CommonBugs page class into wikitcms or keep it here.
    
    Requires python-wikitcms, python-bugzilla, and python-fedora.
    Python 2-only, for now, as mwclient is still Python 2-only.
    
        
file added
+244