Export to GitHub

roundhouse - issue #56

TokenReplacer interfering with static data


Posted on Jul 13, 2011 by Massive Rhino

I'm inserting static data after upgrading the database, but unfortunately, it contains strings like "userdefined/edit.aspx?id={{{0}}}&etc=10003" which results in RoundhousE throwing a KeyNotFoundExeption.

It looks like the TokenReplacer (r299) sees {{0}} and tries to do a replacement, which fails, since I haven't anything up.

Looking through the code, it looks like the TokenReplacer runs unconditionally. It would be nice if the TokenReplacer could be disabled as a configuration setting.

Comment #1

Posted on Jul 13, 2011 by Happy Panda

yes, and even more so, ignore items that it doesn't find in the dictionary...

Comment #2

Posted on Jul 13, 2011 by Massive Rhino

I didn't want to ask for too much. :)

Comment #3

Posted on Jul 13, 2011 by Happy Panda

So the first one was easy, now to make it configurable...

Comment #4

Posted on Jul 13, 2011 by Happy Panda

fixed in revision 338

Comment #5

Posted on Jul 13, 2011 by Happy Panda

If you want to take a look at that and see if it works for you.

Darn it, forgot about the command line switch...uno momento.

Comment #6

Posted on Jul 13, 2011 by Happy Panda

try revision 339

Comment #7

Posted on Jul 13, 2011 by Massive Rhino

Awesome. Thanks! I'll give it a shot and let you know.

Comment #8

Posted on Jul 13, 2011 by Massive Rhino

That did the trick. Thank you!

Comment #9

Posted on Sep 28, 2011 by Happy Panda

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium Milestone-Release0.8.5