Re: " prioritizesearchlistoverself" (!?!?)
forkandwait <[email protected]> Mon, 23 Aug 2010 01:23:28 +0000 (UTC)
| Newsgroups | gmane.comp.python.cheetah |
|---|---|
| Message-ID | <[email protected]> |
forkandwait <forkandwait <at> gmail.com> writes:
>
> Hi all,
>
> I am getting the following in my logs with a cheetah using application:
>
> INFO:root: The following keys are members of the Template class and will
result
> in NameMapper collisions!
> INFO:root: > __doc__
> INFO:root: Please change the key's name or use the compiler setting
> "prioritizeSearchListOverSelf=True" to prevent the NameMapper from using
> INFO:root: the Template member in place of your searchList variable
>
> I would like to fix this problem/ make it go away somehow.
>
> If someone could give me a hint which function is probably throwing
> this problem,
> I would go adjust my code. As it is, I have no idea.
>
> (Note that whenever errors or warnings
> are displayed, it is a good idea t
> include the function that is throwing them,
> otherwise they are really difficult
> to find. As in "f(): The following keys..."
> Really, a stacktrace is what I
> want, but that is a pain in the butt,
> whereas a little bit of text as part of the
> error message is easy to code.)
Well, I found some code that didn't something completely different, but with
each call to Cheetah.Template.Template, they included "compilerSettings=
{'prioritizeSearchListOverSelf' : True}" as one of the parameters. I did a
global search, did the same, and it works now. I am still a little grumpy that
it was sort of hard to find this, as well as that the error message doesn't
announce where it comes from, but I am good for now.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev