[Pdweb] scripting creation of wiki pages
IOhannes m zmoelnig
zmoelnig at iem.at
Tue Jul 10 10:03:49 CEST 2007
IOhannes m zmoelnig wrote:
> Hans-Christoph Steiner wrote:
>> I want to create a wiki page for each public function in Pd. This
>> would be a nice way to document the Pd API. Is there a way to upload
>> text files and have them be wiki pages?
>>
>
> in theory yes.
> you just have to change the type of uploaded txt-files to be "wiki
> pages" instead of ordinary "pages" (i think this is done in the
> "mimetype_registry" in the ZMI; we could reserve a special file-suffix
> for wiki pages)
>
> in practice i have no idea how to set the formatting when doing it this
> way. i fear all uploaded wiki-pages might be formatted in "plain text"
> (but i haven't tried, so it might well be better), so you would have to
> change the formatting by hand for every page. (well, you could do this
> with a python script, but i have never managed to do so)
>
ok i checked that out: just create txt-files with the ending .stx (like
Structured TeXt), and they will automagically be interpreted as
structured text (they will still be pages though, and
"mimetype_registry" seems not to be the correct point to change that)
however, i have seen in the mimetypes_registry, that all content of the
mimetype "text/wiki" should be made a wiki-page; so the only thing left
is to upload content as "text/wiki" (no idea how to do that, though)
and i forgot in my first mail:
to batch-upload use zope/plone's webdav capabilities: just direct your
file-browser to webdavs://puredata.info/Members/hans/test/ and login...
(you really should use webdavs:// and not webdav:// if you don't want
your password to be transmitted in plain-text)
i haven't found any scriptable webdav(s)-client yet (there are
command-line clients, but all of them are interactive only :-()
mfgas.r
IOhannes
More information about the pdweb
mailing list