ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/report.py
(Generate patch)

Comparing COMP/CRAB/python/report.py (file contents):
Revision 1.6 by slacapra, Fri Mar 28 17:18:47 2008 UTC vs.
Revision 1.8 by spiga, Wed May 27 14:23:26 2009 UTC

# Line 27 | Line 27 | if __name__ == '__main__' :
27             args.append(line.strip())
28   #        print args
29   #        print "********************"
30 +    if len(args)>0 :
31 +         argstring=' '.join(args)
32 +         mytmp=argstring.split('=')
33 +         mystring=''
34 +         newkey=''
35 +         if len(mytmp)>0 :
36 +          for i in range(0, len(mytmp)-1):
37 +              mytmp[i]=mytmp[i].strip()
38 +              mytmp[i+1]=mytmp[i+1].strip()
39 +              if  newkey=='':
40 +                  ckey=mytmp[i]
41 +              else :
42 +                  ckey=newkey
43 +              if i< len(mytmp)-2 :  
44 +                  cvalue=' '.join(mytmp[i+1].split(' ')[:-1])+","
45 +              else:
46 +                  cvalue= mytmp[-1]    
47 +              newkey=mytmp[i+1].split(' ')[-1]
48 +              mystring=mystring+ckey.replace(" ",'')+"="+cvalue
49 +          args=mystring.split(',')  
50      report(args)
51   #    print "***"
52   #    print opts

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines