Updated line endings to be in line with UNIX style
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
from product import Product
|
||||
|
||||
|
||||
class CarPart(Product):
|
||||
'''
|
||||
Constructor for a car part
|
||||
|
||||
Contains additional information that is only relevant for car parts
|
||||
'''
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.make = ""
|
||||
self.compatibleVehicles = list()
|
||||
from product import Product
|
||||
|
||||
|
||||
class CarPart(Product):
|
||||
'''
|
||||
Constructor for a car part
|
||||
|
||||
Contains additional information that is only relevant for car parts
|
||||
'''
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.make = ""
|
||||
self.compatibleVehicles = list()
|
||||
|
@ -1,38 +1,38 @@
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class Product:
|
||||
'''
|
||||
Base class for a product
|
||||
'''
|
||||
|
||||
def __init__(self):
|
||||
self.id = 0
|
||||
self.name = ""
|
||||
self.image = "/static/assets/wmgzon.png"
|
||||
self.description = ""
|
||||
self.cost = 0.0
|
||||
self.category = 0
|
||||
self.sellerID = 0
|
||||
self.postedDate = datetime.now()
|
||||
self.quantityAvailable = 0
|
||||
|
||||
'''
|
||||
Class constructor to instatiate a customer object
|
||||
|
||||
No additional properties are assigned to the customer
|
||||
'''
|
||||
|
||||
def __init__(self, name: str, image: str, description: str,
|
||||
cost: float, category: int, seller_id: int,
|
||||
posted_date: datetime, quantity_available: int
|
||||
):
|
||||
self.id = 0
|
||||
self.name = name
|
||||
self.image = image
|
||||
self.description = description
|
||||
self.cost = cost
|
||||
self.category = category
|
||||
self.sellerID = seller_id
|
||||
self.postedDate = posted_date
|
||||
self.quantityAvailable = quantity_available
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class Product:
|
||||
'''
|
||||
Base class for a product
|
||||
'''
|
||||
|
||||
def __init__(self):
|
||||
self.id = 0
|
||||
self.name = ""
|
||||
self.image = "/static/assets/wmgzon.png"
|
||||
self.description = ""
|
||||
self.cost = 0.0
|
||||
self.category = 0
|
||||
self.sellerID = 0
|
||||
self.postedDate = datetime.now()
|
||||
self.quantityAvailable = 0
|
||||
|
||||
'''
|
||||
Class constructor to instatiate a customer object
|
||||
|
||||
No additional properties are assigned to the customer
|
||||
'''
|
||||
|
||||
def __init__(self, name: str, image: str, description: str,
|
||||
cost: float, category: int, seller_id: int,
|
||||
posted_date: datetime, quantity_available: int
|
||||
):
|
||||
self.id = 0
|
||||
self.name = name
|
||||
self.image = image
|
||||
self.description = description
|
||||
self.cost = cost
|
||||
self.category = category
|
||||
self.sellerID = seller_id
|
||||
self.postedDate = posted_date
|
||||
self.quantityAvailable = quantity_available
|
||||
|
Reference in New Issue
Block a user