Subversion Repositories SmartDukaan

Rev

Rev 346 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
102 naveen 1
#if vars().has_key('expFeature'):
2
#    print "expFeature=" + `expFeature`
3
#
4
#if vars().has_key('feature'):
5
#    print "feature=" + `feature`
6
 
7
expBullets = expFeature.getExpandedBullets()
8
expBullet = expBullets[0]
9
value = expBullet.getValue()
347 rajveer 10
unitID = float(expBullet.getUnitID()) 
102 naveen 11
print "value=" + `value` 
347 rajveer 12
print "unitID=" + `unitID`
102 naveen 13
 
346 rajveer 14
#to remove L from the end
15
if(value.endswith('L')):
16
    value=value[0:len(value)-2]
17
 
347 rajveer 18
newvalue = int(value)
19
if unitID == 50008 :
20
    newvalue = int(value) * 1024
21
 
102 naveen 22
print "newvalue=" + `newvalue` 
23
newunitid = "50007"