Subversion Repositories SmartDukaan

Rev

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

Rev 4930 Rev 4934
Line 64... Line 64...
64
 
64
 
65
def get_items_by_catalog_id(catalog_id):
65
def get_items_by_catalog_id(catalog_id):
66
    query = Item.query.filter_by(catalog_item_id=catalog_id)
66
    query = Item.query.filter_by(catalog_item_id=catalog_id)
67
    try:
67
    try:
68
        items = query.all()
68
        items = query.all()
69
        return get_thrift_item_list(items)
69
        return items
70
    except Exception as ex:
70
    except Exception as ex:
71
        print ex
71
        print ex
72
        raise InventoryServiceException(109, "Item not found")
72
        raise InventoryServiceException(109, "Item not found")
73
        
73
        
74
def is_active(item_id):
74
def is_active(item_id):