[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OpenTAL-checkins] opental/OpenTAL Context.py
From: |
Fernando Lalo Martins |
Subject: |
[OpenTAL-checkins] opental/OpenTAL Context.py |
Date: |
Tue, 04 Feb 2003 21:47:51 -0500 |
CVSROOT: /cvsroot/opental
Module name: opental
Changes by: Fernando Lalo Martins <address@hidden> 03/02/04 21:47:51
Modified files:
OpenTAL : Context.py
Log message:
some fixes to non-zope operation (after actually trying it)
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/OpenTAL/Context.py.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: opental/OpenTAL/Context.py
diff -u opental/OpenTAL/Context.py:1.2 opental/OpenTAL/Context.py:1.3
--- opental/OpenTAL/Context.py:1.2 Thu Jan 16 20:33:19 2003
+++ opental/OpenTAL/Context.py Tue Feb 4 21:47:51 2003
@@ -18,7 +18,7 @@
"""TALES Context
"""
-__version__='$Revision: 1.2 $'[11:-2]
+__version__='$Revision: 1.3 $'[11:-2]
import re, sys
import cPickle as pickle
@@ -63,8 +63,12 @@
def __init__(self, *a):
self._stack = list(a)
self._stack.reverse()
- self._push = self._stack.push
- self._pop = self._stack.pop
+
+ def _push(self, d):
+ self._stack.insert(0, d)
+
+ def _pop(self):
+ return self._stack.pop(0)
def get(self, name, default=None):
for layer in self._stack:
@@ -247,14 +251,6 @@
if isinstance(name, TupleType):
object = object(*name)
- continue
-
- if not name or name[0] == '_':
- # Skip directly to item access
- o = object[name]
- # Check access to the item.
- validate(object, object, name, o)
- object = o
continue
if name=='..':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [OpenTAL-checkins] opental/OpenTAL Context.py,
Fernando Lalo Martins <=