Returns context of the parent execution. :return: If found the parent context else None. :rtype: dict
(liveaction_db)
| 280 | |
| 281 | |
| 282 | def get_parent_context(liveaction_db): |
| 283 | """ |
| 284 | Returns context of the parent execution. |
| 285 | |
| 286 | :return: If found the parent context else None. |
| 287 | :rtype: dict |
| 288 | """ |
| 289 | context = getattr(liveaction_db, "context", None) |
| 290 | if not context: |
| 291 | return None |
| 292 | return context.get("parent", None) |
| 293 | |
| 294 | |
| 295 | class AscendingSortedDescendantView(object): |