예제 #1
0
def updateSec(id, failed_attempts, max_attempts):
    Security.updateSecurity(id, failed_attempts, max_attempts)
예제 #2
0
def getSecByID(id):
    return Security.getSecuritybyId(id)
예제 #3
0
def getSecurity():
    return Security.getSecyrity()
예제 #4
0
Product.add_product('potato', 'ukrainian potato', 5.5)
Product.add_product('apple', 'red apple', 10.0)
Product.add_product('orange', 'tasty orange', 1.2)
Product.add_product('banana', 'yellow banana', 7.0)
Product.add_product('lemon', 'yellow lemon', 11.0)
Product.add_product('tomato', 'red tomato', 2.5)
Product.add_product('mango', 'ugly mango', 1.8)
Product.add_product('apple', 'russian apple', 0.5)
Product.add_product('orange', 'italian orange', 15.0)
Product.add_product('apple', 'sweet apple', 11.3)
Product.add_product('banana', 'brazilian banana', 12.1)
Product.add_product('tomato', 'ukrainian tomato', 5.8)
Product.add_product('mango', 'fresh mango', 7.5)
Product.add_product('lemon', 'indian lemon', 4.4)

Security.add_security(0, 5)

UserLevel.add_user_level('Standard', 0, 0)
UserLevel.add_user_level('Silver', 1000, 5)
UserLevel.add_user_level('Gold', 3000, 10)
UserLevel.add_user_level('Platinum', 10000, 15)

ProductStock.add_new_record(1,1,55)
ProductStock.add_new_record(2,1,310)
ProductStock.add_new_record(3,3,115)
ProductStock.add_new_record(4,1,118)
ProductStock.add_new_record(5,2,115)
ProductStock.add_new_record(6,1,125)
ProductStock.add_new_record(11,1,115)
ProductStock.add_new_record(11,2,115)
ProductStock.add_new_record(1,2,110)