ability to select an ItemElement
This commit is contained in:
parent
ed94b3dbb3
commit
94cea6458b
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue