forked from hypothesis/h
/
models.py
45 lines (35 loc) · 1.06 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- coding: utf-8 -*-
from h import features
from h.accounts import models as accounts_models
from h.api import models as api_models
from h.api.nipsa import models as nipsa_models
from h.groups import models as groups_models
from h.notification import models as notification_models
__all__ = (
'Activation',
'Annotation',
'Client',
'Document',
'Feature',
'Group',
'NipsaUser',
'Subscriptions',
'User',
)
Activation = accounts_models.Activation
Annotation = api_models.Annotation
Document = api_models.Document
Feature = features.Feature
Group = groups_models.Group
NipsaUser = nipsa_models.NipsaUser
Subscriptions = notification_models.Subscriptions
User = accounts_models.User
class Client(object):
"""A basic implementation of :class:`h.interfaces.IClient`."""
def __init__(self, request, client_id):
self.client_id = client_id
self.client_secret = None
def includeme(_):
# This module is included for side-effects only. SQLAlchemy models register
# with the global metadata object when imported.
pass