Пример #1
0
 def __init__(self, app, db):
     self.app = app
     self.postgresql = PSQLConnector(app, db)
     self.app.config['UPLOAD_FOLDER'] = 'static/uploads/'
     self.stylesheet = getSampleStyleSheet()
     self.attendees = Attendees(app, db)
     self.alphanum_regex = re.compile(r'\w+')
Пример #2
0
 def __init__(self, app, db):
     self.classes = Classes(app, db)
     self.postgresql = PSQLConnector(app, db)
Пример #3
0
 def __init__(self, app, db):
     self.postgresql = PSQLConnector(app, db)
     self.instructors = Instructors(app, db)
Пример #4
0
 def __init__(self, app, db):
     self.postgresql = PSQLConnector(app, db)
     self.businesses = Businesses(app, db)
Пример #5
0
 def __init__(self, app, db):
     self.postgresql = PSQLConnector(app, db)
Пример #6
0
 def __init__(self, app, db):
     self.postgresql = PSQLConnector(app, db)
     self.bcrypt = Bcrypt(app)
     self.email_regex = re.compile(
         r'^[a-zA-Z0-9\.\+_-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]*$')
Пример #7
0
 def __init__(self, app, db):
     self.postgresql = PSQLConnector(app, db)
     self.street_addr_regex = re.compile(r'^\d+\s[a-zA-Z]+')
     self.zip_addr_regex = re.compile(r'^[0-9]{5}')
     self.email_regex = re.compile(
         r'^[a-zA-Z0-9\.\+_-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]*$')