[Checkins]
SVN: grok/branches/jw-philipp-using-ndir-directives/src/grok/directive.py
Change require directive to use the new way of retrieving the
value of grok.name(). Apparently this is needed to even just
run the tests.
Philipp von Weitershausen
philikon at philikon.de
Sat May 3 05:31:55 EDT 2008
Log message for revision 86160:
Change require directive to use the new way of retrieving the value of grok.name(). Apparently this is needed to even just run the tests.
Changed:
U grok/branches/jw-philipp-using-ndir-directives/src/grok/directive.py
-=-
Modified: grok/branches/jw-philipp-using-ndir-directives/src/grok/directive.py
===================================================================
--- grok/branches/jw-philipp-using-ndir-directives/src/grok/directive.py 2008-05-03 09:29:04 UTC (rev 86159)
+++ grok/branches/jw-philipp-using-ndir-directives/src/grok/directive.py 2008-05-03 09:31:54 UTC (rev 86160)
@@ -14,6 +14,7 @@
"""Grok directives.
"""
+import grok
from zope.interface.interfaces import IInterface
from martian.error import GrokImportError
@@ -92,7 +93,7 @@
def store(self, frame, value):
if util.check_subclass(value, components.Permission):
- value = getattr(value, '__grok_name__')
+ value = grok.name.get(value)
super(RequireDirective, self).store(frame, value)
values = frame.f_locals.get(self.local_name, [])
More information about the Checkins
mailing list