On Wed, Jul 10, 2013 at 4:28 AM, Andre Engels <[email protected]> wrote:

> On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill <[email protected]>wrote:
>
>> I'm working on a non wikipedia mediawiki -- lotrowiki.com.
>>
>> Attempting to use the browser function on replace  (b) yields a 404
>> because it is looking for "lotro-wiki.com/wiki/<PAGENAME>
>>
>> Not being a Python programmer, so far I have not been able to figure out
>> where this "prefix" is coming from.
>> It is correctly finding the hostname and the pagename... but it is
>> inserting "wiki/" in front of the pagename.
>>
>> Can someone tell me what module is doing this?
>>
>
> It's nicepath() in family.py. In the family file, add:
>
>     def nicepath(self, code):
>         return '/'
>
> And to avoid having you back here for a very similar problem tomorrow,
> also add:
>
>     def scriptparth(self, code):
>         return ''
>

Just as I hit 'send' I noticed that there's a typo there: It should be
"scriptpath", not "scriptparth".

-- 
André Engels, [email protected]
_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to