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

Start an Application object #4345

Merged
merged 5 commits into from
Mar 3, 2017
Merged

Start an Application object #4345

merged 5 commits into from
Mar 3, 2017

Conversation

chadwhitacre
Copy link
Contributor

@chadwhitacre chadwhitacre commented Feb 22, 2017

This creates a new Application object that subsumes Website and should eventually eat all of wireup(!). Immediate next step is to make an Email mixin for it: #4346. We need to make this available to payday and models before we can work on email: #4350.

Todo

  • change base to master

@chadwhitacre chadwhitacre changed the base branch from master to email-improvements February 22, 2017 14:07
{% endif %}
<p data-email="{{ email }}"><button class="resend">{{ _("Resend verification email") }}</button></p>
<p>Result: {{ result }}</p>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stray log line.

@chadwhitacre
Copy link
Contributor Author

Rebased, was 9d15411.

@chadwhitacre chadwhitacre force-pushed the refactor-application branch 4 times, most recently from b0fd230 to 28e703c Compare February 27, 2017 17:37
@chadwhitacre
Copy link
Contributor Author

Okay! This PR is weighing in at +/-440 ... not as bad as I thought. :)

@chadwhitacre
Copy link
Contributor Author

Erm, well, now up to 516. 😁

@chadwhitacre chadwhitacre force-pushed the email-improvements branch 2 times, most recently from 7174836 to 055261a Compare March 1, 2017 17:26
@chadwhitacre chadwhitacre changed the base branch from email-improvements to master March 1, 2017 22:04
@chadwhitacre
Copy link
Contributor Author

Rebased, was 24c1eb6.

@chadwhitacre chadwhitacre force-pushed the refactor-application branch from 24c1eb6 to d39c8a3 Compare March 1, 2017 22:13
@chadwhitacre
Copy link
Contributor Author

This one is up next, @nobodxbodon et al.

Copy link
Contributor

@nobodxbodon nobodxbodon left a comment

Choose a reason for hiding this comment

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

Just did a very superficial review. No alarms found, just a general question: what's "cli" mean here?

@chadwhitacre
Copy link
Contributor Author

"cli" means "command line interface"

Google search suggests that this is a common usage.

@nobodxbodon
Copy link
Contributor

@whit537 thanks. I didn't realize the dequeue_emails/list_email_queue are command line tools. Now it makes sense. Would you like it to be reviewed more in depth by someone else or shall I merge it?

This is theoretically more testable than having all of this logic inline in
main.py, and it also gives us someplace to move the _mailer.
Doing so is unnecessary, and also triggered the new assert in email
template compilation.
@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Mar 2, 2017

Yeah, we added those scripts a month or two ago when we wanted to send out a notification about our new terms of service (#4232).

Rebased again (was d39c8a3) to catch up with recent bugfix deploys. I'm ready to go here if you are, @nobodxbodon. Merge away as far as I'm concerned! :-)

@chadwhitacre chadwhitacre force-pushed the refactor-application branch from d39c8a3 to cbbe0e9 Compare March 2, 2017 19:32
@nobodxbodon
Copy link
Contributor

I wonder how to restart travis manually? Or is it possible to config travis to retry automatically in case of timeout (no failed cases)?

@mattbk
Copy link
Contributor

mattbk commented Mar 2, 2017

If you don't have whatever special privileges @whit537 has, one method is to make a small commit and push to jumpstart Travis again.

@chadwhitacre
Copy link
Contributor Author

Yeah, there's a little "Restart build" button at upper right. Not sure why you don't have perms ...

@chadwhitacre
Copy link
Contributor Author

screen shot 2017-03-03 at 7 43 20 am

@chadwhitacre
Copy link
Contributor Author

Restarted ...

@chadwhitacre
Copy link
Contributor Author

Green! :-)

@mattbk
Copy link
Contributor

mattbk commented Mar 3, 2017

Yeah, there's a little "Restart build" button at upper right. Not sure why you don't have perms ...

On Travis itself? I don't have that.

@chadwhitacre chadwhitacre mentioned this pull request Mar 3, 2017
@chadwhitacre
Copy link
Contributor Author

After poking around for a bit in the Travis UI, the closest thing I found to something that might help us here is the "Sync" button for the Gratipay GitHub org. I've gone ahead and clicked that ... did that update perms sufficient to enable the "Restart build" button for yinz?

screen shot 2017-03-03 at 11 17 34 am

@mattbk
Copy link
Contributor

mattbk commented Mar 3, 2017

Got it. I had to be signed into Travis using GitHub credentials. Before I always thought it was a button on the PR side. Didn't even know signing into Travis was a thing.

@chadwhitacre
Copy link
Contributor Author

Ah! That makes sense. :-)

!m @mattbk

@nobodxbodon nobodxbodon merged commit 796d36e into master Mar 3, 2017
@chadwhitacre
Copy link
Contributor Author

💃

@chadwhitacre
Copy link
Contributor Author

This is confusing. I'm trying to deploy this and getting an error:

[gratipay] $ ./deploy.sh 
Already up-to-date.
Traceback (most recent call last):
  File "gratipay/wireup.py", line 11, in <module>
    import aspen
  File "/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/aspen/__init__.py", line 65, in <module>
    import pkg_resources
  File "/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/pkg_resources/__init__.py", line 37, in <module>
    import email.parser
  File "/Users/whit537/personal/gratipay/gratipay.com/gratipay/email.py", line 5, in <module>
    from aspen.simplates.pagination import parse_specline, split_and_escape
  File "/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/aspen/simplates/__init__.py", line 15, in <module>
    from .. import log
ImportError: cannot import name log
[gratipay] $

@chadwhitacre
Copy link
Contributor Author

[gratipay] $ git log | head -n1
commit 796d36e914a44b88e60964416e754c0b473ca163
[gratipay] $

@chadwhitacre
Copy link
Contributor Author

I ran make clean env.

@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Mar 3, 2017

@chadwhitacre
Copy link
Contributor Author

Moving to #4364.

@chadwhitacre chadwhitacre mentioned this pull request Apr 27, 2017
15 tasks
@chadwhitacre chadwhitacre mentioned this pull request May 5, 2017
8 tasks
@chadwhitacre chadwhitacre deleted the refactor-application branch June 15, 2017 19:44
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.

3 participants