Guest User

Untitled

a guest
Nov 24th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. <exec when="init">
  2. from hermes.virtual import KeyedFile
  3.  
  4. kf = KeyedFile('%s/include.dat' % gv.survey.path, key='source')</exec>
  5.  
  6.  <exec>
  7. if QList.r1:
  8.     typedict = { '1':'r1', '2':'r2', '3':'r3', '4':'r4', '5':'r5', '6':'r6'}
  9.     resp = kf.get(source)
  10.     if resp is not None:
  11.         S12.val = S12.attr(typedict[resp["utype"]]).index
  12. elif QList.r2:
  13.     S12.val = S12.r7.index</exec>
Add Comment
Please, Sign In to add comment