parent
a377f8ff43
commit
fd4baef247
@ -1,32 +0,0 @@
|
||||
# class Common :
|
||||
# def parent(self,**_args):
|
||||
# """
|
||||
# This function returns the "parent" pointer associated with a given element
|
||||
# :meta meta data of a decorated/annotated function
|
||||
# """
|
||||
# _meta = _args['meta']
|
||||
# _item = None
|
||||
|
||||
# if 'parent' in _meta : #hasattr(_meta,'parent'):
|
||||
# _hasField = 'field' in _meta
|
||||
# _hasParent= _meta['element'] in self._parents
|
||||
# if _hasField and _hasParent: #_meta.element in self._parents and hasattr(_meta,'field'):
|
||||
|
||||
# self._last = _item
|
||||
# pass
|
||||
# else:
|
||||
# for key in self._parents :
|
||||
# if _meta.element in self._parents[key] :
|
||||
|
||||
# _ikey = list(self._last.keys())[0]
|
||||
# _oldinfo = self._last[_ikey]
|
||||
# if type(_oldinfo) != dict :
|
||||
# #
|
||||
# # Only applicable against a dictionary not a list (sorry)
|
||||
# pass
|
||||
# else:
|
||||
# _item = {_ikey: self.merge(_oldinfo,_item)}
|
||||
|
||||
# break
|
||||
# pass
|
||||
# return _item
|
Loading…
Reference in new issue