reintroduce parent and get_parent_until for er.Array, because an array is a builtin. always.

This commit is contained in:
David Halter
2013-02-10 15:58:02 +01:00
parent 7dce3cb964
commit fb6b3ce342

View File

@@ -857,6 +857,13 @@ class Array(use_metaclass(cache.CachedMetaClass, pr.Base)):
def get_contents(self):
return self._array
@property
def parent(self):
return builtin.Builtin.scope
def get_parent_until(self):
return builtin.Builtin.scope
def __getattr__(self, name):
if name not in ['type', 'start_pos', 'get_only_subelement', 'parent',
'get_parent_until']: