/[opental]/opental/OpenPT/OpenPTBase.py
ViewVC logotype

Diff of /opental/OpenPT/OpenPTBase.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by lalo, Thu Feb 20 10:37:40 2003 UTC revision 1.9 by lalo, Fri Feb 21 05:06:38 2003 UTC
# Line 137  class UnrestrictedZopeContext(OpenTAL.Co Line 137  class UnrestrictedZopeContext(OpenTAL.Co
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)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26