Changeset 563


Ignore:
Timestamp:
26/01/16 22:46:27 (3 years ago)
Author:
mjuckes
Message:

added filename to dummy record

Location:
hdldemo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • hdldemo/trunk/hdldemo.py

    r562 r563  
    9494        else: 
    9595          self.__dict__[r['type']] = r['data']['value'] 
     96 
     97    if 'URL' in self.__dict__: 
     98      fn = string.split( self.__dict__['URL'], '/' )[-1] 
     99      self.__dict__['filename'] = fn 
    96100 
    97101  def getSiblings(self): 
  • hdldemo/trunk/testdata.py

    r562 r563  
    8686          if u.value not in self.hh: 
    8787            extr = [] 
     88            ddf['URL'] = 'd.dummy.dd/xx/%s' % fn 
    8889            ddf['tracking_id'] = u.value 
    8990            ddf['parent'] = self.uds[(ds,kds)].value 
Note: See TracChangeset for help on using the changeset viewer.