Changeset 1797

Show
Ignore:
Timestamp:
02/22/07 01:49:03 (22 months ago)
Author:
abaumann
Message:

it doesn't make sense to report the serial number as the version "identifier"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/moto-sync/motosync.py

    r1796 r1797  
    18481848def discover(info): 
    18491849    """Called by python-module wrapper, discovers capabilities of device.""" 
     1850    version = opensync.Version() 
     1851    version.plugin = "moto-sync" 
    18501852    # HACK HACK, grab the comms object out of the initialised sink 
    18511853    comms = info.nth_objtype(0).callback_obj.access.comms 
    18521854    comms.connect() 
    1853     version = opensync.Version() 
    1854     version.plugin = "moto-sync" 
    18551855    version.softwareversion = str(comms.read_version()) 
    18561856    version.modelversion = str(comms.read_model()) 
    1857     version.identifier = str(comms.read_serial()) 
    18581857    comms.disconnect() 
    18591858    info.version = version