[wicked] wicked cli script and patches

Vijay Mahrra vijay.mahrra at es.easynet.net
Wed Nov 17 08:21:20 PST 2004


this is a script to add the following:

1) a "create page" button for when search results are displayed for PageSearch
or TitleSearch
2) a patch to Page::getPage() to tidy up the the empty() calls at the end of
the function
3) a new method getPage() in the driver to get a single page only (return
value same as getAllPages)
4) a cli script for wicked which currently does the following:
   a) list all page titles
   b) retrieve a single page or all pages (pages only, not attachments) AND
   c) output the results in (html entitities) escaped xml like this for each
page:

<wicked:wikipage>
<wicked:page_name>SandBox</wicked:page_name>
<wicked:page_text>
This is the sandbox.  You can try out Wiki in here, and no one will care :)
For reference, you might want to visit HowToUseWiki, WickedTextFormat or
AddingPages.
</wicked:page_text>
<wicked:page_hits>30</wicked:page_hits>
<wicked:page_locked>0</wicked:page_locked>
<wicked:page_majorversion>1</wicked:page_majorversion>
<wicked:page_minorversion>4</wicked:page_minorversion>
<wicked:version_created>1100622478</wicked:version_created>
<wicked:change_author>vijay.mahrra at es.easynet.net</wicked:change_author>
<wicked:change_log></wicked:change_log>
<wicked:locked></wicked:locked>
</wicked:wikipage>

if this is ok, other features will need to be added, such as import xml :)
perhaps outputting each wiki page as an email with attachments is a better
idea

vijay



More information about the wicked mailing list