Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listing shortcode #2880

Merged
merged 6 commits into from Jul 27, 2017
Merged

Listing shortcode #2880

merged 6 commits into from Jul 27, 2017

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented Jul 24, 2017

Implement #2868

Copy link
Member

@Kwpolska Kwpolska left a comment

Choose a reason for hiding this comment

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

What’s up with the license? Could we avoid duplicating rest/listings.py code?

@@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
# This file is public domain according to its author, Brian Hsu
Copy link
Member

Choose a reason for hiding this comment

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

???

Copy link
Member Author

Choose a reason for hiding this comment

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

Whoa, flashback. I don't think any of that code is still there. OTOH, I suspect this is because I copied gist.py :-)

@Kwpolska
Copy link
Member

Could we avoid duplicating rest/listings.py code?

@ralsina
Copy link
Member Author

ralsina commented Jul 27, 2017

@Kwpolska there is not that much repeated code:

  • The code to find the original file
  • The code to generate the link to the sources

It's about 10 LOC and only used in these two, so can't go to utils/ ... any suggestions where I could put it?

@Kwpolska Kwpolska merged commit a90d068 into master Jul 27, 2017
Kwpolska added a commit that referenced this pull request Jul 27, 2017
@Kwpolska Kwpolska deleted the listing-shortcode branch September 19, 2017 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants