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

[Bug 797399] Fix wiki.models.Document.from_url() #1140

Closed
wants to merge 3 commits into from
Closed

[Bug 797399] Fix wiki.models.Document.from_url() #1140

wants to merge 3 commits into from

Conversation

berkerpeksag
Copy link
Contributor

https://bugzilla.mozilla.org/show_bug.cgi?id=797399

There is a misleading sentence in the docstring of Document.from_url():

However, if you pass host_safe=True, we assume the URL's host is the one serving
Documents, which comes in handy for analytics whose metrics return host-having URLs.

I can't find the host_safe parameter in the wiki application.

@rlr
Copy link
Contributor

rlr commented Feb 10, 2013

Looks like the doc string for that was never correct. See 00bbc85

I assume host_safe turned into check_host and is the boolean inverse.

@berkerpeksag
Copy link
Contributor Author

I've updated the docstring. Thanks Ricky.

parent=d_en, save=True)
self.assertEqual(d_en.translated_to('tr'),
from_url(d_en.translated_to('tr').get_absolute_url()))
print d_en.get_absolute_url()
Copy link
Member

Choose a reason for hiding this comment

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

This is an errant print. Can you remove it, please?

@berkerpeksag
Copy link
Contributor Author

Thanks for the review. I think I addressed all of your comments.

@willkg
Copy link
Member

willkg commented Feb 13, 2013

I'll look at this again tomorrow. Sorry I didn't get to it today.

@willkg
Copy link
Member

willkg commented Feb 15, 2013

Looks good! I squashed the commits and landed it in master in 6233f3e

@willkg willkg closed this Feb 15, 2013
@berkerpeksag berkerpeksag deleted the bug-797399 branch February 17, 2013 02:53
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

3 participants