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

Put RSS on a diet #1107

Merged
merged 13 commits into from
Mar 7, 2014
Merged

Put RSS on a diet #1107

merged 13 commits into from
Mar 7, 2014

Conversation

da2x
Copy link
Contributor

@da2x da2x commented Mar 7, 2014

  • only include xmlns:dc (Dublin Core) if used
  • remove use of xmlns:atom
  • optionally strip HTML
  • reduce generator footprint (tiny)

@da2x da2x mentioned this pull request Mar 7, 2014
4 tasks
@@ -746,28 +749,38 @@ def url_replacer(self, src, dst, lang=None):

def generic_rss_renderer(self, lang, title, link, description, timeline, output_path,
rss_teasers, feed_length=10, feed_url=None):
rss_obj = rss.RSS2(
Copy link
Member

Choose a reason for hiding this comment

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

why here? (Where was it before?)

also, why above the docstring?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It must exist here because line 97-98.

Copy link
Member

Choose a reason for hiding this comment

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

I noticed after commenting, but the docstring is still in the wrong place.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What docstring?

@Kwpolska Kwpolska added this to the v6.5.0 milestone Mar 7, 2014
@Kwpolska Kwpolska self-assigned this Mar 7, 2014
@Kwpolska
Copy link
Member

Kwpolska commented Mar 7, 2014

Looks well to me.

@Kwpolska
Copy link
Member

Kwpolska commented Mar 7, 2014

Or maybe not. Issues:

  • changing RSS_PLAIN does not trigger a rebuild of the rss file
  • galleries’ RSS seems to be empty — was this bug just introduced or was it always there?

@da2x
Copy link
Contributor Author

da2x commented Mar 7, 2014

(I must admit to never having used galleries nor their feeds.)

language=lang
)
rss_obj.self_url = make_url(permalink)
rss_obj.rss_attrs["xmlns:atom"] = "http://www.w3.org/2005/Atom"
Copy link
Member

Choose a reason for hiding this comment

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

I don't like removing this. It makes the feeds give warnings in the W3C validator, and having it breaks nothing.

@Kwpolska
Copy link
Member

Kwpolska commented Mar 7, 2014

On Mar 7, 2014 9:05 PM, "Daniel Aleksandersen" [email protected]
wrote:

(I must admit to never having used galleries nor their feeds.)

Don't worry — I never really used them in production either.

Also, I'm not sure whether the RSS.py change I suggested will work on
galleries and tags.

/Chris, on mobile.

@da2x
Copy link
Contributor Author

da2x commented Mar 7, 2014

galleries/rss.xml is empty on master. I don’t really see why.

@da2x da2x mentioned this pull request Mar 7, 2014
da2x added a commit that referenced this pull request Mar 7, 2014
@da2x da2x merged commit 65642f1 into master Mar 7, 2014
@ralsina ralsina deleted the rss-diet branch March 8, 2014 19:54
@ralsina ralsina modified the milestones: v7.0.0, v6.5.0 Mar 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants