Subversion Repositories SmartDukaan

Rev

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

Rev 3325 Rev 3345
Line 928... Line 928...
928
        print "Not able to log risky flag change"
928
        print "Not able to log risky flag change"
929
    item.risky = risky
929
    item.risky = risky
930
    if not risky and item.status == status.PAUSED:
930
    if not risky and item.status == status.PAUSED:
931
        change_item_status(item.id, status.ACTIVE)
931
        change_item_status(item.id, status.ACTIVE)
932
    session.commit()
932
    session.commit()
933
    check_risky_item(item)
-
 
934
    
933
    
935
def get_items_by_vendor_category(vendor_category):
934
def get_items_by_vendor_category(vendor_category):
936
    if not vendor_category:
935
    if not vendor_category:
937
        raise InventoryServiceException(101, "Invalid vendor category in request")
936
        raise InventoryServiceException(101, "Invalid vendor category in request")
938
    query = Item.query.filter(and_(Item.hotspotCategory==vendor_category, Item.status != status.PHASED_OUT))
937
    query = Item.query.filter(and_(Item.hotspotCategory==vendor_category, Item.status != status.PHASED_OUT))