Hi people,
I wrote a new program for the framework. It's called commonscat.py. You can use it to add the commonscat template to categories in your home wiki. I tested it at the nl wikipedia and now the template is used in about one third of the categories.
I also did a rewrite of imagecopy.py. This list was in the source code:
Known issues/FIXMEs (no critical issues known): * make it use pagegenerators.py check * Some variable names are in Spanish, which makes the code harder to read. changed most of the variable names * Depending on sorting within a file category, the "next batch" is sometimes not working, leading to an endless loop Pagegenerators.py doesnt have this problem * Different wikis can have different exclusion lists. A parameter for the exclusion list Uploadbot.localskips.txt would probably be nice. still working on this * Bot should probably use API instead of query.php API, query? Pagegenerators * Should request alternative name if file name already exists on Commons Check * Exits after last file in category was processed, aborting all pending threads. Fixxed the threading part (join at the end to wait for the open threads) * Should take user-config.py as input for project and lang variables Pagegenerators takes care of this * Should require a Commons user to be present in user-config.py before working Not done (yet) * Should probably have an input field for additional categories Not done (yet) * Should probably have an option to change uploadtext with file Not done (yet) * required i18n options for NowCommons template (f.e. {{subst:ncd}} on en.wp. Currently needs customisation to work properly. Bot was tested succesfully on nl.wp (12k+ files copied and deleted locally) and en.wp (about 100 files copied and SieBot has bot approval for tagging {{ncd}} with this bot) Still working on this * {{NowCommons|xxx}} requires the namespace prefix Image: on most wikis and can be left out on others. This needs to be taken care of when implementing i18n Still working on this * This bot should probably get a small tutorial at meta with a few screenshots. Not done (yet)
Beside this list i fixxed the support for "strange" characters, the old bot didnt understand them. It's still work in in progress, but the bot is stable (testing at nl) and works much better than the old one.
I would like to have write access to the svn so i can commit my work. Do the devs agree with that?
Maarten (aka Multichill)
Hi Maarten, Good work. One question: you already tested the commons_link.py? Choose to include the template {{commonscat}}.
Regards, Leonardo.
2008/3/20, Maarten Dammers maarten@mdammers.nl:
Hi people,
I wrote a new program for the framework. It's called commonscat.py. You can use it to add the commonscat template to categories in your home wiki. I tested it at the nl wikipedia and now the template is used in about one third of the categories.
I also did a rewrite of imagecopy.py. This list was in the source code:
Known issues/FIXMEs (no critical issues known):
- make it use pagegenerators.py
check
- Some variable names are in Spanish, which makes the code harder to read.
changed most of the variable names
- Depending on sorting within a file category, the "next batch" is sometimes
not working, leading to an endless loop Pagegenerators.py doesnt have this problem
- Different wikis can have different exclusion lists. A parameter for the
exclusion list Uploadbot.localskips.txt would probably be nice. still working on this
- Bot should probably use API instead of query.php
API, query? Pagegenerators
- Should request alternative name if file name already exists on Commons
Check
- Exits after last file in category was processed, aborting all pending
threads. Fixxed the threading part (join at the end to wait for the open threads)
- Should take user-config.py as input for project and lang variables
Pagegenerators takes care of this
- Should require a Commons user to be present in user-config.py before
working Not done (yet)
- Should probably have an input field for additional categories
Not done (yet)
- Should probably have an option to change uploadtext with file
Not done (yet)
- required i18n options for NowCommons template (f.e. {{subst:ncd}} on
en.wp. Currently needs customisation to work properly. Bot was tested succesfully on nl.wp (12k+ files copied and deleted locally) and en.wp (about 100 files copied and SieBot has bot approval for tagging {{ncd}} with this bot) Still working on this
- {{NowCommons|xxx}} requires the namespace prefix Image: on most wikis
and can be left out on others. This needs to be taken care of when implementing i18n Still working on this
- This bot should probably get a small tutorial at meta with a few
screenshots. Not done (yet)
Beside this list i fixxed the support for "strange" characters, the old bot didnt understand them. It's still work in in progress, but the bot is stable (testing at nl) and works much better than the old one.
I would like to have write access to the svn so i can commit my work. Do the devs agree with that?
Maarten (aka Multichill)
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi Leonardo,
Leonardo Gregianin schreef:
Hi Maarten, Good work. One question: you already tested the commons_link.py? Choose to include the template {{commonscat}}.
Common_link.py depends on the category names being the same. I took a look at it and made a web based version, see http://tools.wikimedia.org/~multichill/commonscat.php
commonscat.py works differently. It uses the interwiki links of a category to find the template at other language wikipedia's.
Maarten
On Thu, Mar 20, 2008 at 2:39 PM, Maarten Dammers maarten@mdammers.nl wrote:
I would like to have write access to the svn so i can commit my work. Do the devs agree with that?
Maarten (aka Multichill)
Sure. Mail brion at wikimedia dot org to get an account.
Bryan
Ps. can somebody config mailman such that the reply-to address is set to the mailing list?
pywikipedia-l@lists.wikimedia.org