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

Commit

Permalink
Drop revenue_model, getting_involved, getting_paid
Browse files Browse the repository at this point in the history
In #3677 we decided not to use these questions anymore.
  • Loading branch information
chadwhitacre committed Aug 19, 2015
1 parent 0087daf commit eef8d14
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 44 deletions.
5 changes: 2 additions & 3 deletions gratipay/models/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ def insert(cls, owner, **fields):
INSERT INTO teams
(slug, slug_lower, name, homepage,
product_or_service, revenue_model, getting_involved, getting_paid,
product_or_service,
owner)
VALUES (%(slug)s, %(slug_lower)s, %(name)s, %(homepage)s,
%(product_or_service)s, %(revenue_model)s, %(getting_involved)s,
%(getting_paid)s,
%(product_or_service)s,
%(owner)s)
RETURNING teams.*::teams
Expand Down
5 changes: 2 additions & 3 deletions gratipay/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,8 @@ def make_team(self, *a, **kw):
team = self.db.one("""
INSERT INTO teams
(slug, slug_lower, name, homepage, product_or_service,
getting_involved, getting_paid, owner, is_approved)
VALUES (%(slug)s, %(slug_lower)s, %(name)s, %(homepage)s,
%(product_or_service)s, %(getting_involved)s, %(getting_paid)s,
owner, is_approved)
VALUES (%(slug)s, %(slug_lower)s, %(name)s, %(homepage)s, %(product_or_service)s,
%(owner)s, %(is_approved)s)
RETURNING teams.*::teams
""", _kw)
Expand Down
2 changes: 0 additions & 2 deletions gratipay/utils/fake_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ def fake_team(db, teamowner):
, name=teamname
, homepage='www.example.org/' + fake_text_id(3)
, product_or_service=random.sample(productorservice,1)[0]
, getting_involved='build'
, getting_paid='paypal'
, owner=teamowner.username
, is_approved=random.sample(isapproved,1)[0]
, receiving=0.1
Expand Down
6 changes: 0 additions & 6 deletions tests/py/test_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ class TestTeams(Harness):
'homepage': 'http://gratipay.com/',
'agree_terms': 'true',
'product_or_service': 'We make widgets.',
'revenue_model': 'People pay us.',
'getting_involved': 'People do stuff.',
'getting_paid': 'We pay people.'
}

def post_new(self, data, auth_as='alice', expected=200):
Expand Down Expand Up @@ -53,9 +50,6 @@ def test_all_fields_persist(self):
assert team.name == 'Gratiteam'
assert team.homepage == 'http://gratipay.com/'
assert team.product_or_service == 'We make widgets.'
assert team.revenue_model == 'People pay us.'
assert team.getting_involved == 'People do stuff.'
assert team.getting_paid == 'We pay people.'

def test_401_for_anon_creating_new_team(self):
self.post_new(self.valid_data, auth_as=None, expected=401)
Expand Down
15 changes: 0 additions & 15 deletions www/%team/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@ title = name = team.name
<div class="statement profile-statement">
{{ markdown.render(team.product_or_service) }}
</div>

<h2>{{ _("Revenue Model") }}</h2>
<div class="statement profile-statement">
{{ markdown.render(team.revenue_model) }}
</div>

<h2>{{ _("How to Get Involved") }}</h2>
<div class="statement profile-statement">
{{ markdown.render(team.getting_involved) }}
</div>

<h2>{{ _("How Revenue Is Shared") }}</h2>
<div class="statement profile-statement">
{{ markdown.render(team.getting_paid) }}
</div>
</div>
{% endblock %}

Expand Down
12 changes: 0 additions & 12 deletions www/new.spt
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,6 @@ title = _("Apply for a New Team")
<p>{{ _("What product or service does your Team provide?") }}</p>
<textarea name="product_or_service" required></textarea>

<label><h2>{{ _("Revenue Model") }}</h2></label>
<p>{{ _("How do you prompt your customers to financially support your Team's work?") }}</p>
<textarea name="revenue_model" required></textarea>

<label><h2>{{ _("Contributing") }}</h2></label>
<p>{{ _("How can other people get involved with your Team?") }}</p>
<textarea name="getting_involved" required></textarea>

<label><h2>{{ _("Paying Contributors") }}</h2></label>
<p>{{ _("How do you share revenue with contributors?") }}</p>
<textarea name="getting_paid" required></textarea>

<br>
<br>
<input type="checkbox" value="true" name="agree_terms" id="agree_terms">
Expand Down
3 changes: 0 additions & 3 deletions www/teams/create.json.spt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ field_names = {
'name': 'Team Name',
'homepage': 'Homepage',
'product_or_service': 'Product or Service',
'revenue_model': 'Revenue Model',
'getting_involved': 'Contributing',
'getting_paid': 'Paying Contributors'
}

if user.ANON:
Expand Down

0 comments on commit eef8d14

Please sign in to comment.