daemon/core/misc/xmlparser1.py
def parse_session_origin(self, session_config):
        '''\
        Parse the first origin tag and set the CoreLocation reference
        point appropriately.
        '''
        # defaults from the CORE GUI
        self.session.location.setrefgeo(47.5791667, -122.132322, 2.0)
        self.session.location.refscale = 150.0
        origin = getFirstChildByTagName(session_config, 'origin')
        if not origin:
            return
        lat = origin.getAttribute('lat')
        lon = origin.getAttribute('lon')
        alt = origin.getAttribute('alt')
        if lat and lon and alt:
            self.session.location.setrefgeo(float(lat), float(lon), float(alt))
            self.location_refgeo_set = True
        scale100 = origin.getAttribute("scale100")
        if scale100:
            self.session.location.refscale = float(scale100)
        point = getFirstChildTextTrimByTagName(origin, 'point')
        if point:
            xyz = point.split(',')
            if len(xyz) == 2:
                xyz.append('0.0')
            if len(xyz) == 3:
                self.session.location.refxyz = \
                    (float(xyz[0]), float(xyz[1]), float(xyz[2]))
                self.location_refxyz_set = True
\
        Parse the first origin tag and set the CoreLocation reference
        point appropriately.
        
\
Parse the first origin tag and set the CoreLocation reference
point appropriately.
\ Parse the first origin tag and set the CoreLocation reference point appropriately .
def parse_session_origin(self, session_config):
        self.session.location.setrefgeo(47.5791667, -122.132322, 2.0)
        self.session.location.refscale = 150.0
        origin = getFirstChildByTagName(session_config, 'origin')
        if not origin:
            return
        lat = origin.getAttribute('lat')
        lon = origin.getAttribute('lon')
        alt = origin.getAttribute('alt')
        if lat and lon and alt:
            self.session.location.setrefgeo(float(lat), float(lon), float(alt))
            self.location_refgeo_set = True
        scale100 = origin.getAttribute("scale100")
        if scale100:
            self.session.location.refscale = float(scale100)
        point = getFirstChildTextTrimByTagName(origin, 'point')
        if point:
            xyz = point.split(',')
            if len(xyz) == 2:
                xyz.append('0.0')
            if len(xyz) == 3:
                self.session.location.refxyz = \
                    (float(xyz[0]), float(xyz[1]), float(xyz[2]))
                self.location_refxyz_set = True
def parse_session_origin ( self , session_config ) : self . session . location . setrefgeo ( 47.5791667 , - 122.132322 , 2.0 ) self . session . location . refscale = 150.0 origin = getFirstChildByTagName ( session_config , 'origin' ) if not origin : return lat = origin . getAttribute ( 'lat' ) lon = origin . getAttribute ( 'lon' ) alt = origin . getAttribute ( 'alt' ) if lat and lon and alt : self . session . location . setrefgeo ( float ( lat ) , float ( lon ) , float ( alt ) ) self . location_refgeo_set = True scale100 = origin . getAttribute ( "scale100" ) if scale100 : self . session . location . refscale = float ( scale100 ) point = getFirstChildTextTrimByTagName ( origin , 'point' ) if point : xyz = point . split ( ',' ) if len ( xyz ) == 2 : xyz . append ( '0.0' ) if len ( xyz ) == 3 : self . session . location . refxyz = ( float ( xyz [ 0 ] ) , float ( xyz [ 1 ] ) , float ( xyz [ 2 ] ) ) self . location_refxyz_set = True
\
Parse the first origin tag and set the CoreLocation reference
point appropriately.
\ Parse the first origin tag and set the CoreLocation reference point appropriately .
'''\
        Parse the first origin tag and set the CoreLocation reference
        point appropriately.
        ''' # defaults from the CORE GUI
self
session_config