Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Rename gittip.networks to gittip.elsewhere (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed Dec 7, 2012
1 parent a6ad305 commit 01221ea
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion configure-aspen.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
__version__ = open(os.path.join(website.www_root, 'version.txt')).read().strip()

def add_stuff(request):
from gittip.networks import github, twitter
from gittip.elsewhere import github, twitter
request.context['__version__'] = __version__
request.context['username'] = None
request.context['github'] = github
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions gittip/networks/github.py → gittip/elsewhere/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
from aspen import json, log, Response
from aspen.website import Website
from aspen.utils import typecheck
from gittip import db, networks
from gittip import db, elsewhere


def upsert(user_info):
return networks.upsert( 'github'
, user_info['id']
, user_info['login']
, user_info
)
return elsewhere.upsert( 'github'
, user_info['id']
, user_info['login']
, user_info
)


def oauth_url(website, action, then=u""):
Expand Down
12 changes: 6 additions & 6 deletions gittip/networks/twitter.py → gittip/elsewhere/twitter.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from gittip import db, networks
from gittip import db, elsewhere


def upsert(user_info):
return networks.upsert( 'twitter'
, user_info['id']
, user_info['screen_name']
, user_info
)
return elsewhere.upsert( 'twitter'
, user_info['id']
, user_info['screen_name']
, user_info
)


def resolve(user_id):
Expand Down
2 changes: 1 addition & 1 deletion gittip/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create_schema(db):
]

def populate_db_with_dummy_data(db):
from gittip.networks import github, change_participant_id
from gittip.elsewhere import github, change_participant_id
for user_id, login in GITHUB_USERS:
participant_id, a,b,c = github.upsert({"id": user_id, "login": login})
change_participant_id(None, participant_id, login)
Expand Down
2 changes: 1 addition & 1 deletion www/%participant_id/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from gittip import AMOUNTS
from gittip.participant import Participant
from gittip.utils import wrap
from gittip.networks import github, resolve_unclaimed
from gittip.elsewhere import github, resolve_unclaimed


tip_suggestions = ('jeresig', 'antirez', 'wycats', 'fabpot', 'mitsuhiko',
Expand Down
2 changes: 1 addition & 1 deletion www/%participant_id/participant_id.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aspen import Response
from gittip.networks import change_participant_id
from gittip.elsewhere import change_participant_id
from psycopg2 import IntegrityError

# ========================================================================== ^L
Expand Down
2 changes: 0 additions & 2 deletions www/about/charts.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from gittip.networks import github
^L
title = "Charts"
^L
{% extends templates/base.html %}
Expand Down
2 changes: 1 addition & 1 deletion www/bank-account.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import balanced
from aspen import json, log, Response
from gittip import billing, MONTHS
from gittip.networks import github
from gittip.elsewhere import github

# ========================================================================== ^L
balanced_account_uri = None
Expand Down
2 changes: 1 addition & 1 deletion www/credit-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import balanced
from aspen import json, log, Response
from gittip import billing
from gittip.networks import github
from gittip.elsewhere import github

# ========================================================================== ^L

Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from gittip import db, AMOUNTS
from gittip.networks import github
from gittip.elsewhere import github
^L

try:
Expand Down
2 changes: 1 addition & 1 deletion www/on/github/%login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
from aspen import json, Response
from gittip import AMOUNTS, CARDINALS, db
from gittip.networks import github
from gittip.elsewhere import github
from gittip.participant import Participant


Expand Down
2 changes: 1 addition & 1 deletion www/on/twitter/%screen_name/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from aspen.utils import to_age, utc
from gittip import AMOUNTS, CARDINALS, db
from gittip.participant import Participant
from gittip.networks import twitter
from gittip.elsewhere import twitter


# ========================================================================== ^L
Expand Down

0 comments on commit 01221ea

Please sign in to comment.