#120 Zombie templates

closed
nobody
5
2004-12-20
2004-08-04
No

When creating a template a manager accidentally put a
trailing space in the name without realizing it. This
space prevented the template from being referenced by
its name in the array of templates. I'm not sure if
the spaces are stripped when comparing or what but it
created a "zombie" template that I could neither delete
nor edit. I eventually had to go into the
'deleteTemplate' function and call the 'del' function
on the 'reply_template' array with the exact template
name including the space.

Example:
What was entered
"ARS Customer followup "

What was stored in the replay_template array:
"ARS Customer followup"

Command I had to issue to resolve the issue:
del self.reply_template["ARS Customer followup "]

Discussion

  • Andrew Veitch

    Andrew Veitch - 2004-12-20

    Logged In: YES
    user_id=753066

    This looks like a bug in TAL - I've opened an issue on the Zope Collector
    at http://collector.zope.org/Zope/1631

    You could also have fixed the issue by adding a '%20' to the URL on the
    delete template screen. Although this isn't ideal.

    I'll wait to see what response we get from the Zope people.

     
  • Andrew Veitch

    Andrew Veitch - 2004-12-20
    • status: open --> closed
     
  • Andrew Veitch

    Andrew Veitch - 2004-12-20

    Logged In: YES
    user_id=753066

    Fixed.

    Zope Page Templates do not automatically correctly quote urls as I
    thought they did. I've added a manual call to urlquote which fixes the
    problem.

    Additionally, when you delete a template you know remain in the
    templates section which makes it more obvious what's going on.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks