[Pywikipedia-l] I can get pages from a wiki, yet I can write to them
Carlos Thompson
chlewey at cable.net.co
Fri Dec 28 19:44:57 UTC 2007
Rotem Liss wrote:
> Carlos Thompson wrote:
> > On my site, I have some rewrite rules, however a request such as
> > /index.php?title=Test&action=raw works fine. (As does /Test?action=raw
> > and
> > /w-raw/Test ).
>
> This is action=edit. You can override the function "path" in the family
> file.
For that matter /index.php?title=Test&action=edit , /Test?action=edit , and
/w-edit/Test have the same result.
> > The wiki is also using a skin designed for that site.
>
> If this skin changes the regular "history" tab, you should override the
> function
> "RversionTab" in the family file, with a regexp that can be used to check
> if the page exists or not.
Okay. After many attempts and not clear howto, I added:
def RversionTab(self, code):
return '<li id="ca-history"><a href="/w-history/.*?"[^>]*>'
into my Family class. It is now working.
-- Carlos Th
More information about the Pywikipedia-l
mailing list