Hi everybody,
I just finished hacking the mantainance/importImages.php script, and it can now handle (seemingly safely) files already existing on MW.
Removing the existence check as I suggested in a mediawiki-l email a few days ago was working, but it was fairly unsafe: the file was overwritten and no archive version was created. This resulted in the impossibility to view, delete or revert to earlier version - not quite ideal.
I seem to have been able to fix those problems and it appears to be doing the right thing, plus I've added a feature that a) creates two "accepted" and "rejected" directories b) moves the original files in one of those directories depending if it has been successfully uploaded or not.
The latter feature is useful for an automated import, so that as the script gets called every 15 minutes or so, it doesn't upload images that had been uploaded 15 minutes earlier and haven't been manually removed from the source directory.
The question is, if I want to make it publicly available (I have to ask permissions to the company first), what's the best way to do so? And how do I get it double checked - testing and code?
Thanks for your help!
Manu
Emanuele D'Arrigo wrote:
The question is, if I want to make it publicly available (I have to ask permissions to the company first), what's the best way to do so? And how do I get it double checked - testing and code?
http://bugzilla.wikimedia.org/ is your friend -- post patch and request review. :)
-- brion vibber (brion @ wikimedia.org)
On 8/3/07, Brion Vibber brion@wikimedia.org wrote:
Emanuele D'Arrigo wrote:
The question is, if I want to make it publicly available (I have to ask permissions to the company first), what's the best way to do so? And how do I get it double checked - testing and code?
http://bugzilla.wikimedia.org/ is your friend -- post patch and request review. :)
Thank you, much appreciated. =)
Ciao!
Manu
wikitech-l@lists.wikimedia.org