def __init__(self,dsname=None):
     self.dsname = dsname
     if dsname is not None:
         DataSource.set_source(dsname)
     self.reset()