Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
b6fbf3e8
Kaydet (Commit)
b6fbf3e8
authored
Şub 24, 2017
tarafından
Pavlo Kapyshin
Kaydeden (comit)
Tim Graham
Şub 24, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #27879 -- Fixed crash if enclosures aren't provided to Atom1Feed.add_item().
Regression in
75cf9b5a
üst
508b5deb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
AUTHORS
AUTHORS
+1
-0
feedgenerator.py
django/utils/feedgenerator.py
+1
-1
test_feedgenerator.py
tests/utils_tests/test_feedgenerator.py
+6
-0
No files found.
AUTHORS
Dosyayı görüntüle @
b6fbf3e8
...
@@ -612,6 +612,7 @@ answer newbie questions, and generally made Django that much better:
...
@@ -612,6 +612,7 @@ answer newbie questions, and generally made Django that much better:
Paulo Scardine <paulo@scardine.com.br>
Paulo Scardine <paulo@scardine.com.br>
Paul Smith <blinkylights23@gmail.com>
Paul Smith <blinkylights23@gmail.com>
pavithran s <pavithran.s@gmail.com>
pavithran s <pavithran.s@gmail.com>
Pavlo Kapyshin <i@93z.org>
permonik@mesias.brnonet.cz
permonik@mesias.brnonet.cz
Petar Marić <http://www.petarmaric.com/>
Petar Marić <http://www.petarmaric.com/>
Pete Crosier <pete.crosier@gmail.com>
Pete Crosier <pete.crosier@gmail.com>
...
...
django/utils/feedgenerator.py
Dosyayı görüntüle @
b6fbf3e8
...
@@ -137,7 +137,7 @@ class SyndicationFeed:
...
@@ -137,7 +137,7 @@ class SyndicationFeed:
'comments'
:
to_str
(
comments
),
'comments'
:
to_str
(
comments
),
'unique_id'
:
to_str
(
unique_id
),
'unique_id'
:
to_str
(
unique_id
),
'unique_id_is_permalink'
:
unique_id_is_permalink
,
'unique_id_is_permalink'
:
unique_id_is_permalink
,
'enclosures'
:
enclosures
,
'enclosures'
:
enclosures
or
()
,
'categories'
:
categories
or
(),
'categories'
:
categories
or
(),
'item_copyright'
:
to_str
(
item_copyright
),
'item_copyright'
:
to_str
(
item_copyright
),
'ttl'
:
ttl
,
'ttl'
:
ttl
,
...
...
tests/utils_tests/test_feedgenerator.py
Dosyayı görüntüle @
b6fbf3e8
...
@@ -120,6 +120,12 @@ class FeedgeneratorTest(unittest.TestCase):
...
@@ -120,6 +120,12 @@ class FeedgeneratorTest(unittest.TestCase):
self
.
assertIn
(
'href="/feed/"'
,
feed_content
)
self
.
assertIn
(
'href="/feed/"'
,
feed_content
)
self
.
assertIn
(
'rel="self"'
,
feed_content
)
self
.
assertIn
(
'rel="self"'
,
feed_content
)
def
test_atom_add_item
(
self
):
# Not providing any optional arguments to Atom1Feed.add_item()
feed
=
feedgenerator
.
Atom1Feed
(
'title'
,
'/link/'
,
'descr'
)
feed
.
add_item
(
'item_title'
,
'item_link'
,
'item_description'
)
feed
.
writeString
(
'utf-8'
)
class
FeedgeneratorDBTest
(
TestCase
):
class
FeedgeneratorDBTest
(
TestCase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment