How to include attachment in a page by a script

Jean-Michel Bain Cornu <[email protected]> Thu, 22 Jul 2004 14:19:17 +0200
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <4D42206B1B3A2443BE8569D4511537C01B20B8@fr-exchange.fr.acucorp.com>
Hi all,

I haven't found any way to include an attachment in a page by a script, so I
schedule to make a python script to do that (I have arround 1000 files to
include).

I have found that when attaching a file, MoinMoin :
-puts the attached file in the 'attachments' subdirectory of the page
-updates 'data/editlog' (from add.editlog.py)
-updates 'data/dicts.pickle' (must be in scandicts.wikidicts.py)

I understand the purpose of the two first points, and should be able to
reproduce them in a script, but I'm not successful to understand what is the
purpose of 'dicts.pickle' and if it's mandatory to update it. It works if I
do an attachement by myself, but I'm not sure if there is any danger for
later.
Does anybody knows something about that ?

Generally speaking, is there any guide or introduction about the
organization of MoinMoin scripts ?
Thanks in advance, and overall, thanks Jurgen and Thomas for your work, I
feel it will be very usefull to my organisation.

Jean-michel Bain-cornu



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click