+

:4736 Function create_function() is deprecated [8192]

Last commit for mycoserver/conv.py: c5dae5ef4575255bf6619fbebdfcc9c7865f501a

Add subscribe method

Benjamin Renard [2014-01-18 19:14:09]
Add subscribe method
  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.  
  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.  
  25. inputs_to_sync_data = struct(
  26. {
  27. 'email': pipe(cleanup_line, empty_to_none),
  28. 'password': pipe(cleanup_line, empty_to_none),
  29. 'groups': pipe(empty_to_none),
  30. },
  31. default='drop',
  32. drop_none_values=False,
  33. )