fixed Issue 1434:admin page error listing with maximum recursion depth exceeded
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.4.6-stable+timestamp.2013.04.07.19.44.10
|
||||
Version 2.4.6-stable+timestamp.2013.04.07.19.55.04
|
||||
|
||||
+4
-3
@@ -586,7 +586,7 @@ class XML(XmlComponent):
|
||||
return self.text
|
||||
|
||||
def __str__(self):
|
||||
return self.xml()
|
||||
return self.text
|
||||
|
||||
def __add__(self, other):
|
||||
return '%s%s' % (self, other)
|
||||
@@ -600,8 +600,9 @@ class XML(XmlComponent):
|
||||
def __hash__(self):
|
||||
return hash(str(self))
|
||||
|
||||
def __getattr__(self, name):
|
||||
return getattr(str(self), name)
|
||||
# why was this here? Break unpickling in sessions
|
||||
# def __getattr__(self, name):
|
||||
# return getattr(str(self), name)
|
||||
|
||||
def __getitem__(self, i):
|
||||
return str(self)[i]
|
||||
|
||||
Reference in New Issue
Block a user