Skip to content

Commit

Permalink
Fixed issue with five.pt. We need to clear this volatile attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Sep 9, 2010
1 parent 3e44cdd commit c777725
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changes
=======

- Fixed issue where templates being patched by ``five.pt`` would not
get properly jbotted.

- Use ``five.pt`` if available. [malthe]

- Fixed an issue where tests would fail on Zope 2.10. [malthe]
Expand Down
1 change: 1 addition & 0 deletions z3c/jbot/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def get(template, view=None, cls=None):
# template was invalidated (changed filename)
if manager.registerTemplate(inst, template):
inst._v_last_read = False
inst.__dict__.pop('_v_template', None)
break

if view is not None and IAcquirer is not None:
Expand Down

0 comments on commit c777725

Please sign in to comment.