c5dae5ef4575255bf6619fbebdfcc9c7865f501a
Benjamin Renard Initial commit

Benjamin Renard authored 10 years ago

1) # -*- coding: utf-8 -*-
2) 
3) 
4) from biryani1.baseconv import cleanup_line, empty_to_none, not_none, pipe, struct
5) 
6) inputs_to_login_data = struct(
7)     {
8)         'email': pipe(cleanup_line, empty_to_none),
9)         'password': pipe(cleanup_line, empty_to_none),
10)     },
11)     default='drop',
12)     drop_none_values=False,
13)     )
14) 
Benjamin Renard Add subscribe method

Benjamin Renard authored 10 years ago

15) inputs_to_subscribe_data = struct(
16)     {
17)         'email': pipe(cleanup_line, empty_to_none),
18)         'name': pipe(cleanup_line, empty_to_none),
19)         'password': pipe(cleanup_line, empty_to_none),
20)     },
21)     default='drop',
22)     drop_none_values=False,
23)     )
24)