Subversion Repositories SmartDukaan

Rev

Rev 347 | Blame | Compare with Previous | Last modification | View Log | RSS feed

#if vars().has_key('expFeature'):
#    print "expFeature=" + `expFeature`
#
#if vars().has_key('feature'):
#    print "feature=" + `feature`

expBullets = expFeature.getExpandedBullets()
expBullet = expBullets[0]
value = expBullet.getValue()
unitID = float(expBullet.getUnitID()) 
print "value=" + `value` 
print "unitID=" + `unitID`

#to remove L from the end
if(value.endswith('L')):
    value=value[0:len(value)-2]

newvalue = value
if unitID == 50008 :
    newvalue = value * 1024
    
print "newvalue=" + `newvalue` 
newunitid = "50007"