Description

On my wiki farm (http://www.renegadebrewer.com/moin) I have set the user_homewiki variable so that everyone can place their Homepages on the same wiki in the farm.

I notice that when uses use the @ME@ variable is just expands to their account name and doesn't respect the user_homewiki. This creates bad links back to the user.

Steps to reproduce

  1. do this... Use a wiki that set the user_wikifarm variable
  2. Grab the Sandbox and save a page with the @ME@ variable.

Example

URL: http://www.renegadebrewer.com/moin

Details

MoinMoin Version

1.5.2

OS and Version

Linux

Python Version

2.3.5

Server Setup

Apache2

Server Details

Workaround

Just an annoyance, so work around. (Or workaround is don't use ME variable in Templates)

Discussion

From the code:

            'PAGE': self.page_name,
            'TIME': "[[DateTime(%s)]]" % now,
            'DATE': "[[Date(%s)]]" % now,
            'ME': user.name,
            'USERNAME': signature,
            'USER': "-- %s" % signature,
            'SIG': "-- %s [[DateTime(%s)]]" % (signature, now),

You see, ME is only expanded to the user name (this is no bug).

If you want to have markup for linking to the homepage, you either have to use USERNAME or USER or SIG. The "signature" part of it is aware of user_homewiki.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/VariableExpansionWrongWithUserHomeWiki (last edited 2007-10-29 19:17:27 by localhost)