Subversion Repositories SmartDukaan

Rev

Rev 451 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 451 Rev 1312
Line 1... Line -...
1
#from shop2020.thriftpy.model.v1.catalog.ttypes import Item
-
 
2
#from shop2020.clients.InventoryClient import InventoryClient
-
 
3
 
-
 
4
entityid = expEntity.getID()
-
 
5
print "Entity id is" + `entityid`
-
 
6
#values = [entityid]
1
values = []
7
 
-
 
8
#inventory_client = InventoryClient()
-
 
9
#item = inventory_client.get_client().getItemByCatalogId(entityid)
-
 
10
 
2
 
11
#values = item.price.values()
3
expFeatures = expSlide.getExpandedFeatures()
12
#values = values[1]
4
if expFeatures is not None:
-
 
5
    for expFeature in expFeatures:
-
 
6
        print expFeature.getFeatureDefinition().getID()
-
 
7
        if expFeature.getFeatureDefinition().getID() == 120128:
-
 
8
            expBullets = expFeature.getExpandedBullets()
-
 
9
            if expBullets is not None:
-
 
10
                for expBullet in expBullets:
-
 
11
                    price = float(expBullet.getValue())
-
 
12
                    values.append(price)
13
 
13
 
14
#values.append(entityid)
-
 
15
values = []
-
 
16
price = itemPrice
-
 
17
print "Price is" + `price`
-
 
18
values.append(price)
-