From ade19de410e0a789a921ec1666b278b2a64176d6 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 16 Dec 2014 17:37:42 +0200 Subject: moving files around after repository merger --- src-py/model/model.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src-py/model/model.py (limited to 'src-py/model/model.py') diff --git a/src-py/model/model.py b/src-py/model/model.py deleted file mode 100644 index 33cf9e6a..00000000 --- a/src-py/model/model.py +++ /dev/null @@ -1,37 +0,0 @@ -class Link(): - """ - documentation anchor - this class currently carries no implementation - and only acts as a documentation anchor - - link['__src'] - meta attribute for link source object - link['__dst'] - meta attribute for link destination object - """ - - def __init__(self, src=None, dst=None): - assert False, 'currently unused' - - class Link_Ptr(dict): - """ - link['__src_id'] - meta attribute for link source id - link['__dst_id'] - meta attribute for link destination id - """ - def __init__(self, src_id=None, dst_id=None): - assert None != src_id or None != dst_id - - self['__src_id'] = src_id - self['__dst_id'] = dst_id - - @property - def src_id(self): - return self['__src_id'] - - @property - def dst_id(self): - return self['__dst_id'] - - @staticmethod - def link_ptr(src_id=None, dst_id=None): - """ - init from src_id or dst_id attributes - at least one must be provided - """ - return Link.Link_Ptr(src_id, dst_id) -- cgit v1.3.1