Skip to content

Commit

Permalink
fix authorization of TTW views
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Apr 16, 2012
1 parent 1f3294e commit c175915
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ CHANGES
1.0.3 (unreleased)
------------------

- Nothing changed yet.

- Fix bug which prevented authorization of TTW views in Zope 2.12+
[davisagli]

1.0.2 (2011-10-07)
------------------
Expand Down
5 changes: 5 additions & 0 deletions src/five/customerize/zpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ class TTWView(view_class):
def __of__(self, obj):
return self

# Make sure this object passes the ZPublisher's security validation
@property
def __parent__(self):
return self.context


class TTWViewletRenderer(object):
""" analogon to TTWViewTemplateRenderer for viewlets """
Expand Down

0 comments on commit c175915

Please sign in to comment.