<s> from __future__ import division <EOL> from vistrails . db . domain import DBOpmGraph <EOL> class OpmGraph ( DBOpmGraph ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , * args , ** kwargs ) : <EOL> if '<STR_LIT>' in kwargs : <EOL> self . log = kwargs [ '<STR_LIT>' ] <EOL> del kwargs [ '<STR_LIT>' ] <EOL> else : <EOL> self . log = None <EOL> if '<STR_LIT>' in kwargs : <EOL> self . workflow = kwargs [ '<STR_LIT>' ] <EOL> del kwargs [ '<STR_LIT>' ] <EOL> elif '<STR_LIT>' in kwargs : <EOL> self . workflow = kwargs [ '<STR_LIT>' ] <EOL> del kwargs [ '<STR_LIT>' ] <EOL> else : <EOL> self . workflow = None <EOL> if '<STR_LIT>' in kwargs : <EOL> self . registry = kwargs [ '<STR_LIT>' ] <EOL> del kwargs [ '<STR_LIT>' ] <EOL> else : <EOL> self . registry = None <EOL> if '<STR_LIT:version>' in kwargs : <EOL> self . version = kwargs [ '<STR_LIT:version>' ] <EOL> del kwargs [ '<STR_LIT:version>' ] <EOL> else : <EOL> self . version = None <EOL> DBOpmGraph . __init__ ( self , * args , ** kwargs ) <EOL> def __copy__ ( self ) : <EOL> return self . do_copy ( ) <EOL> def do_copy ( self ) : <EOL> cp = DBOpmGraph . __copy__ ( self ) <EOL> cp . __class__ = OpmGraph <EOL> cp . log = self . log <EOL> cp . workflow = self . workflow <EOL> cp . version = self . version <EOL> cp . registry = self . registry <EOL> return cp <EOL> @ staticmethod <EOL> def convert ( _graph ) : <EOL> if _graph . __class__ == OpmGraph : <EOL> return <EOL> _graph . __class__ = OpmGraph </s>
