[Django] #27842: class GenericSitemap doesn't handle "protocol" in __init__

12 views
Skip to first unread message

Django

unread,
Feb 15, 2017, 4:13:02 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: nobody
Type: | Status: new
Uncategorized |
Component: | Version: 1.10
contrib.sitemaps | Keywords: sitemaps
Severity: Normal | genericsitemap
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
-------------------------------------+-------------------------------------
django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
initial args and kwargs.


{{{
some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',
)
some_sitemap.protocol = 'https'
}}}
\\
[https://docs.djangoproject.com/en/stable/_modules/django/contrib/sitemaps/#GenericSitemap
GenericSitemap source]
Why not to pass protocol in info_dict argument?
Thx.

--
Ticket URL: <https://code.djangoproject.com/ticket/27842>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 15, 2017, 4:16:15 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage:
genericsitemap | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by chex:

Old description:

> django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
> initial args and kwargs.
>

> {{{
> some_sitemap = GenericSitemap(
> info_dict={
> 'queryset': SomeModel.objects.all(),
> },
> priority=0.6,
> changefreq='yearly',
> )
> some_sitemap.protocol = 'https'
> }}}
> \\
> [https://docs.djangoproject.com/en/stable/_modules/django/contrib/sitemaps/#GenericSitemap
> GenericSitemap source]
> Why not to pass protocol in info_dict argument?
> Thx.

New description:

django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
initial args and kwargs.


{{{
some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',
)
some_sitemap.protocol = 'https'
}}}
\\
[https://docs.djangoproject.com/en/stable/_modules/django/contrib/sitemaps/#GenericSitemap
GenericSitemap source]
Why not to pass protocol in info_dict argument?

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:1>

Django

unread,
Feb 15, 2017, 4:24:27 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: Uncategorized | Status: assigned

Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage:
genericsitemap | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by chex):

* owner: nobody => chex
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:2>

Django

unread,
Feb 15, 2017, 4:24:57 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: Uncategorized | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage:
genericsitemap | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by chex:

Old description:

> django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
> initial args and kwargs.
>

> {{{
> some_sitemap = GenericSitemap(
> info_dict={
> 'queryset': SomeModel.objects.all(),
> },
> priority=0.6,
> changefreq='yearly',
> )
> some_sitemap.protocol = 'https'
> }}}
> \\
> [https://docs.djangoproject.com/en/stable/_modules/django/contrib/sitemaps/#GenericSitemap
> GenericSitemap source]
> Why not to pass protocol in info_dict argument?

New description:

django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
initial args and kwargs.


{{{
some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',
)
some_sitemap.protocol = 'https'
}}}
\\

[https://docs.djangoproject.com/en/1.10/_modules/django/contrib/sitemaps/#GenericSitemap


GenericSitemap source]
Why not to pass protocol in info_dict argument?

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:3>

Django

unread,
Feb 15, 2017, 5:32:51 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: Uncategorized | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage:
genericsitemap | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by chex):

[https://github.com/django/django/pull/8065 pr]

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:4>

Django

unread,
Feb 15, 2017, 5:33:08 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: Uncategorized | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage:
genericsitemap | Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by chex):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:5>

Django

unread,
Feb 15, 2017, 10:08:41 AM2/15/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned

Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* needs_docs: 0 => 1
* type: Uncategorized => New feature
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted


Comment:

Looks okay at first glance. Documentation and tests are also required.

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:6>

Django

unread,
Feb 16, 2017, 8:35:52 AM2/16/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by chex):

Update [https://github.com/django/django/pull/8065 PR] with tests.

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:7>

Django

unread,
Feb 16, 2017, 9:30:24 AM2/16/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham):

And documentation? Please update the ticket flags when you update the
patch. It looks like the tests are testing more than just what's changed.
It's fine to increase test coverage but please do it in a separate commit
(perhaps a separate PR that precedes this one).

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:8>

Django

unread,
Feb 17, 2017, 2:40:46 AM2/17/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by chex):

* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:9>

Django

unread,
Feb 17, 2017, 4:34:03 AM2/17/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by chex):

* needs_docs: 1 => 0


Comment:

Update [https://github.com/django/django/pull/8065 pr] with documentation.
Non specific to the ticket tests are moved to another
[https://github.com/django/django/pull/8075 pr].

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:10>

Django

unread,
Feb 27, 2017, 11:48:07 AM2/27/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by chex:

Old description:

> django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
> initial args and kwargs.
>

> {{{
> some_sitemap = GenericSitemap(
> info_dict={
> 'queryset': SomeModel.objects.all(),
> },
> priority=0.6,
> changefreq='yearly',
> )
> some_sitemap.protocol = 'https'
> }}}
> \\

> [https://docs.djangoproject.com/en/1.10/_modules/django/contrib/sitemaps/#GenericSitemap


> GenericSitemap source]
> Why not to pass protocol in info_dict argument?

New description:

django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in

initial args or kwargs.


{{{
some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',
)
some_sitemap.protocol = 'https'
}}}
\\

[https://docs.djangoproject.com/en/1.10/_modules/django/contrib/sitemaps/#GenericSitemap
GenericSitemap source]
Why not to pass protocol as keyword argument?

some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',

protocol='https',
)
}}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:11>

Django

unread,
Feb 27, 2017, 11:49:07 AM2/27/17
to django-...@googlegroups.com
#27842: class GenericSitemap doesn't handle "protocol" in __init__
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Accepted
genericsitemap |
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by chex:

Old description:

> django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in
> initial args or kwargs.
>

> {{{
> some_sitemap = GenericSitemap(
> info_dict={
> 'queryset': SomeModel.objects.all(),
> },
> priority=0.6,
> changefreq='yearly',
> )
> some_sitemap.protocol = 'https'
> }}}
> \\

> [https://docs.djangoproject.com/en/1.10/_modules/django/contrib/sitemaps/#GenericSitemap
> GenericSitemap source]
> Why not to pass protocol as keyword argument?


>
> some_sitemap = GenericSitemap(
> info_dict={
> 'queryset': SomeModel.objects.all(),
> },
> priority=0.6,
> changefreq='yearly',

> protocol='https',
> )
> }}}

New description:

django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in

initial args or kwargs.


{{{
some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',
)
some_sitemap.protocol = 'https'
}}}
\\

[https://docs.djangoproject.com/en/1.10/_modules/django/contrib/sitemaps/#GenericSitemap
GenericSitemap source]
Why not to pass protocol as keyword argument?


{{{
some_sitemap = GenericSitemap(
info_dict={
'queryset': SomeModel.objects.all(),
},
priority=0.6,
changefreq='yearly',

protocol='https',
)
}}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:12>

Django

unread,
Feb 28, 2017, 12:07:55 PM2/28/17
to django-...@googlegroups.com
#27842: Add protocol argument to GenericSitemap.__init__()

-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: assigned
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution:
Keywords: sitemaps | Triage Stage: Ready for
genericsitemap | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:13>

Django

unread,
Feb 28, 2017, 12:08:30 PM2/28/17
to django-...@googlegroups.com
#27842: Add protocol argument to GenericSitemap.__init__()
-------------------------------------+-------------------------------------
Reporter: chex | Owner: chex
Type: New feature | Status: closed
Component: contrib.sitemaps | Version: 1.10
Severity: Normal | Resolution: fixed

Keywords: sitemaps | Triage Stage: Ready for
genericsitemap | checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"9f21e35100b022b31fe723323db85c2cb28b16b8" 9f21e35]:
{{{
#!CommitTicketReference repository=""
revision="9f21e35100b022b31fe723323db85c2cb28b16b8"
Fixed #27842 -- Added protocol kwarg to GenericSitemap.__init__().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:14>

Reply all
Reply to author
Forward
0 new messages