Description

Expansion of user variables as described in HelpOnPageCreation doesn't seem to work.

Steps to reproduce

  1. Login to wiki as UserName

  2. Create WikiDict at !Username/!WikiDict

  3. Try to use one of the variables defined in your WikiDict in a page.

Example

See my homepage in this wiki - NigelHarper. I added a WikiDict as described then tried to use the variable defined in there, and it didn't work.

Details

This Wiki. Also:

moin 1.3.3-4

Windows 2000/XP Pro

Python 2.3.4

Standalone

Workaround

Discussion

It is a documentation error, NigelHarper/MyDict should work.

Indeed it does - thanks. -- NigelHarper 2005-03-30 11:43:33

Incidentally whilst looking at variable expansion I noticed what appears to be a problem with the GetVal macro. If you look at WikiDict it has 2 examples of that macro, but only the 2nd one is expanded - the first is apparently ignored for no obvious reason.

I can't reproduce the problem with the first variable:

  1. Create UserName/MyDict with 2 definitions

  2. Edit a page and use the definitions in @key@

  3. Both keys expanded when the page is saved.

Tested on 1.3.4 dev code, patch-718, Apache CGI, Mac OS X (server and platform should not be related to this.)

Documentation bug fixed in some languages, second bug can't be reproduced.

Plan

Translators:

  1. Fix HelpOnPageCreation: replace UserName/WikiDict to UserName/MyDict. Note that MyDict should not be translated and must appear as is.

  2. Update the list of fixed languages: de, en
  3. Priority: low
  4. Assigned to: Translators
  5. Status: en help page fixed, waiting for translation


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/UserVariableExpansion (last edited 2007-10-29 19:05:59 by localhost)