Zionetrix::Git
Repositories
Help
Report an Issue
MyCoServer
Code
Commits
Branches
Tags
Search
Tree:
c5dae5e
Branches
Tags
master
MyCoServer
mycoserver
conv.py
Add subscribe method
Benjamin Renard
commited
c5dae5e
at 2014-01-18 19:14:09
conv.py
Blame
History
Raw
# -*- coding: utf-8 -*- from biryani1.baseconv import cleanup_line, empty_to_none, not_none, pipe, struct inputs_to_login_data = struct( { 'email': pipe(cleanup_line, empty_to_none), 'password': pipe(cleanup_line, empty_to_none), }, default='drop', drop_none_values=False, ) inputs_to_subscribe_data = struct( { 'email': pipe(cleanup_line, empty_to_none), 'name': pipe(cleanup_line, empty_to_none), 'password': pipe(cleanup_line, empty_to_none), }, default='drop', drop_none_values=False, ) inputs_to_sync_data = struct( { 'email': pipe(cleanup_line, empty_to_none), 'password': pipe(cleanup_line, empty_to_none), 'groups': pipe(empty_to_none), }, default='drop', drop_none_values=False, )