Skip to content

Instantly share code, notes, and snippets.

@rrees
Created October 20, 2014 18:14
Show Gist options
  • Select an option

  • Save rrees/8c1b7edd39f6fc8313e9 to your computer and use it in GitHub Desktop.

Select an option

Save rrees/8c1b7edd39f6fc8313e9 to your computer and use it in GitHub Desktop.

Revisions

  1. rrees created this gist Oct 20, 2014.
    18 changes: 18 additions & 0 deletions Pysistence example
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    base_data_sources = make_dict({
    'business': BusinessDataSource(clientUS),
    'money': USMoneyDataSource(clientUS),
    'technology': TechnologyDataSource(clientUS),
    'sport': SportUSDataSource(clientUS),
    'comment': CommentIsFreeDataSource(clientUS),
    'culture': CultureDataSource(clientUS),
    'top_stories': TopStoriesDataSource(clientUS),
    'video': VideoDataSource(clientUS),
    })

    data_sources = {
    'v1' : base_data_sources,
    'v3' : base_data_sources,
    'v6' : base_data_sources.using(
    most_shared_us = MostSharedDataSource(clientUS)
    ),
    }