This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
from flask import abort | |
from datetime import datetime | |
from project.ext import db | |
class IdMixin(object): | |
""" | |
Provides the :attr:`id` primary key column |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Account(): | |
def __init__(self): | |
self.balance = 0 | |
self.currency = 'CAD' | |
self.overdraft = False | |
def make_deposit(self, amount): | |
"""imagine a boat load of business logic that would make this useful""" | |
pass |