[Checkins] SVN: martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py Store the frame on the directive.

Jan-Wijbrand Kolman janwijbrand at gmail.com
Sat May 3 15:21:39 EDT 2008


Log message for revision 86275:
  Store the frame on the directive.

Changed:
  U   martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py

-=-
Modified: martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py
===================================================================
--- martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py	2008-05-03 19:06:04 UTC (rev 86274)
+++ martian/branches/jw-philipp-using-ndir-directives/src/martian/directive.py	2008-05-03 19:21:38 UTC (rev 86275)
@@ -116,7 +116,7 @@
     def __init__(self, *args, **kw):
         self.name = self.__class__.__name__
 
-        frame = sys._getframe(1)
+        self.frame = frame = sys._getframe(1)
         if not self.scope.check(frame):
             raise GrokImportError("The '%s' directive can only be used on "
                                   "%s level." %



More information about the Checkins mailing list