Subversion Repositories SmartDukaan

Rev

Rev 7256 | Rev 7281 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7256 Rev 7272
Line 1... Line 1...
1
'''
1
'''
2
Created on 23-Mar-2010
2
Created on 23-Mar-2010
3
 
3
 
4
@author: ashish
4
@author: ashish
5
'''
5
'''
-
 
6
from shop2020.model.v1.catalog.impl.DataService import Insurer
6
from shop2020.thriftpy.model.v1.catalog.ttypes import Item, Category, \
7
from shop2020.thriftpy.model.v1.catalog.ttypes import Item, Category, \
7
    SourceItemPricing, Source, ItemType, \
8
    SourceItemPricing, Source, ItemType, \
8
    ProductNotificationRequest as TProductNotificationRequest, \
9
    ProductNotificationRequest as TProductNotificationRequest, \
9
    ProductNotificationRequestCount as TProductNotificationRequestCount, \
10
    ProductNotificationRequestCount as TProductNotificationRequestCount, \
10
    VoucherItemMapping, EntityTag as TEntityTag, Banner as TBanner, BannerMap as TBannerMap, \
11
    VoucherItemMapping, EntityTag as TEntityTag, Banner as TBanner, \
11
    Insurer as TInsurer
12
    BannerMap as TBannerMap, Insurer as TInsurer, BrandInfo as TBrandInfo
12
from shop2020.utils.Utils import to_java_date
13
from shop2020.utils.Utils import to_java_date
13
from shop2020.model.v1.catalog.impl.DataService import Insurer
-
 
14
 
14
 
15
def to_t_item(item):
15
def to_t_item(item):
16
    t_item = Item()
16
    t_item = Item()
17
    if item is None:
17
    if item is None:
18
        return t_item
18
        return t_item
Line 150... Line 150...
150
    t_banner_map = TBannerMap()
150
    t_banner_map = TBannerMap()
151
    t_banner_map.bannerName = banner_map.bannerName
151
    t_banner_map.bannerName = banner_map.bannerName
152
    t_banner_map.mapLink = banner_map.mapLink
152
    t_banner_map.mapLink = banner_map.mapLink
153
    t_banner_map.coordinates = banner_map.coordinates
153
    t_banner_map.coordinates = banner_map.coordinates
154
    return t_banner_map
154
    return t_banner_map
-
 
155
 
-
 
156
def to_t_brand_info(brand_info):
-
 
157
    t_brand_info = TBrandInfo()
-
 
158
    t_brand_info.name = brand_info.name
-
 
159
    t_brand_info.serviceCenterLocatorUrl = brand_info.serviceCenterLocatorUrl
-
 
160
    return t_brand_info
155
161