ability to select an ItemElement

This commit is contained in:
Romain Bignon 2014-10-11 16:55:59 +02:00
commit 94cea6458b

View file

@ -77,6 +77,8 @@ class AbstractElement(object):
func._obj = self
func._key = key
value = func(self)
elif isinstance(func, type) and issubclass(func, ItemElement):
value = func(self.page, self, self.el)()
elif callable(func):
value = func()
else: