137 |
raise |
raise |
138 |
return ob |
return ob |
139 |
|
|
140 |
|
def evaluateMacro(self, expr): |
141 |
|
# XXX Should return None or a macro definition |
142 |
|
macro = self.evaluate(expr) |
143 |
|
if type(macro) is types.StringType: |
144 |
|
macro = pickle.loads(macro) |
145 |
|
return macro |
146 |
|
|
147 |
class RestrictedZopeContext(UnrestrictedZopeContext): |
class RestrictedZopeContext(UnrestrictedZopeContext): |
148 |
def __init__(self, bindings=None): |
def __init__(self, bindings=None): |
149 |
UnrestrictedZopeContext.__init__(self, bindings) |
UnrestrictedZopeContext.__init__(self, bindings) |