~sirn/fanboi2

ref: 834edf0edc5dd633c0ecea16231b6ed2d728476d fanboi2/fanboi2/interfaces.py -rw-r--r-- 1.7 KiB
834edf0eKridsada Thanabulpong Massive cleanup in preparation for 0.30 (#25) 3 years ago
                                                                                
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
from zope.interface import Interface


class IBoardQueryService(Interface):
    def list_active():
        pass

    def board_from_slug(board_slug):
        pass


class IFilterService(Interface):
    def evaluate(payload={}):
        pass


class IIdentityService(Interface):
    def identity_for(**kwargs):
        pass


class IPageQueryService(Interface):
    def list_public():
        pass

    def public_page_from_slug(page_slug):
        pass

    def internal_page_from_slug(page_slug):
        pass


class IPostCreateService(Interface):
    def enqueue(topic_id, body, bumped, ip_address, payload={}):
        pass

    def create(topic_id, body, bumped, ip_address, payload={}):
        pass


class IPostQueryService(Interface):
    def list_from_topic_id(topic_id, query=None):
        pass

    def was_recently_seen(ip_address):
        pass


class IRateLimiterService(Interface):
    def limit_for(seconds, **kwargs):
        pass

    def is_limited(**kwargs):
        pass

    def time_left(**kwargs):
        pass


class IRuleBanQueryService(Interface):
    def is_banned(ip_address, scopes):
        pass


class ISettingQueryService(Interface):
    def value_from_key(key):
        pass

    def reload(key):
        pass


class ITaskQueryService(Interface):
    def result_from_uid(task_uid):
        pass


class ITopicCreateService(Interface):
    def enqueue(board_slug, title, body, ip_address, payload={}):
        pass

    def create(board_slug, title, body, ip_address, payload={}):
        pass


class ITopicQueryService(Interface):
    def list_from_board_slug(board_slug):
        pass

    def list_recent_from_board_slug(board_slug):
        pass

    def topic_from_id(topic_id):
        pass