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

Link venmo #1857

Merged
merged 30 commits into from
Jan 10, 2014
Merged

Link venmo #1857

merged 30 commits into from
Jan 10, 2014

Conversation

thomasboyt
Copy link
Contributor

cc @simon-weber

Issue: #1839

This PR adds Venmo as a linkable account (but not an auth-able one). This is the first step towards several possible new features powered by Venmo (using Venmo as a funding source for recurring tips, using Venmo for paying out developers, and possibly using Venmo as a solution for #5).

This PR also does stopgap refactoring of several parts of elsewhere:

  • Adds the ability to iterate over types of accounts with the new platform_classes registry
  • Cuts down on copy-pasted template code using above
  • Elsewhere records can now be used to construct AccountElsewhere objects so that convenience methods can be used on existing accounts
  • Reorganized env variables file

(sorry about the gross extraneous merge commits, we can rebase this a bit if y'all want)

Thomas Boyt and others added 26 commits January 7, 2014 10:33
Conflicts:
	gittip/elsewhere/__init__.py
Conflicts:
	gittip/elsewhere/__init__.py
	gittip/models/participant.py
	www/%username/username.json.spt
Conflicts:
	configure-aspen.py
	default_local.env
	default_tests.env
	gittip/models/_mixin_elsewhere.py
	gittip/wireup.py
	www/%username/index.html.spt
	www/%username/members/index.html.spt
	www/on/confirm.html.spt
	www/on/take-over.html.spt
@clone1018
Copy link
Contributor

All tests pass for me and linking an account works as expected.

I'll let someone who was working with Venmo release this one.

Thanks for the work guys!

@simon-weber
Copy link
Contributor

related: #1369. The refactoring in our PR fixes a lot of the same pain points.

@zbynekwinkler
Copy link
Contributor

@whit537 will review this one.

@@ -0,0 +1,3 @@
ALTER TABLE elsewhere ADD COLUMN access_token text DEFAULT NULL;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wrap these in a single BEGIN/END transaction block (see schema.sql for reference).

return username


class ProblemChangingUsername(Exception):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This duplicates what's in gittip/exceptions.py, no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch -- we must have missed that during a merge.

@@ -1,38 +1,53 @@
DATABASE_URL=postgres://gittip:gittip@localhost:5432/gittip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*.env reorg looks good, thanks. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing to note, swaddle now displays 11 warnings in a row about skipping blank lines.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, we must have missed that because we didn't regenerate our environments. Would running after a make clean show me these warnings?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't sweat it, we're porting away from swaddle (#468).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless @clone1018 wants to sweat it, and add line breaks under #468. :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much lazy. Lack effort.

Conflicts:
	gittip/wireup.py
@@ -11,6 +12,9 @@
from gittip import canonize, configure_payments
from gittip.security import authentication, csrf, x_frame_options
from gittip.utils import cache_static, timer
from gittip.elsewhere import platforms_ordered
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unused in this file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants