On Jul 9, 2013, at 10:29 PM, Andre Engels <andreengels(a)gmail.com> wrote:
On Wed, Jul 10, 2013 at 4:28 AM, Andre Engels <andreengels(a)gmail.com> wrote:
On Wed, Jul 10, 2013 at 4:07 AM, William H. Magill <magill(a)icloud.com> 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".
Thanks...
"This family file was auto-generated by $Id: generate_family_file.py 11542
2013-05-17 19:58:40Z drtrigon $
It already contains:
-------<cut here>-----
def scriptpath(self, code):
return {
'en': u'',
}[code]
-------<cut here>-----
Is that ok, or should I truncate it to match your insert...
T.T.F.N.
William H. Magill
magill(a)icloud.com
magill(a)mac.com
whmagill(a)gmail.com