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
ff419de2
Kaydet (Commit)
ff419de2
authored
Ara 31, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #25466 -- Removed aliases for LoaderOrigin and StringOrigin.
Per deprecation timeline.
üst
75cf9b5a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
19 deletions
+6
-19
__init__.py
django/template/__init__.py
+1
-2
base.py
django/template/base.py
+1
-8
loader.py
django/template/loader.py
+0
-9
2.0.txt
docs/releases/2.0.txt
+4
-0
No files found.
django/template/__init__.py
Dosyayı görüntüle @
ff419de2
...
...
@@ -58,8 +58,7 @@ from .exceptions import TemplateDoesNotExist, TemplateSyntaxError # NOQA i
# Template parts
from
.base
import
(
# NOQA isort:skip
Context
,
Node
,
NodeList
,
Origin
,
RequestContext
,
StringOrigin
,
Template
,
Variable
,
Context
,
Node
,
NodeList
,
Origin
,
RequestContext
,
Template
,
Variable
,
)
# Library management
...
...
django/template/base.py
Dosyayı görüntüle @
ff419de2
...
...
@@ -60,9 +60,7 @@ from django.template.context import ( # NOQA: imported for backwards compatibil
BaseContext
,
Context
,
ContextPopException
,
RequestContext
,
)
from
django.utils
import
six
from
django.utils.deprecation
import
(
DeprecationInstanceCheck
,
RemovedInDjango20Warning
,
)
from
django.utils.deprecation
import
RemovedInDjango20Warning
from
django.utils.encoding
import
(
force_str
,
force_text
,
python_2_unicode_compatible
,
)
...
...
@@ -163,11 +161,6 @@ class Origin(object):
)
class
StringOrigin
(
six
.
with_metaclass
(
DeprecationInstanceCheck
,
Origin
)):
alternative
=
'django.template.Origin'
deprecation_warning
=
RemovedInDjango20Warning
class
Template
(
object
):
def
__init__
(
self
,
template_string
,
origin
=
None
,
name
=
None
,
engine
=
None
):
try
:
...
...
django/template/loader.py
Dosyayı görüntüle @
ff419de2
from
django.utils
import
six
from
django.utils.deprecation
import
(
DeprecationInstanceCheck
,
RemovedInDjango20Warning
,
)
from
.
import
engines
from
.base
import
Origin
from
.exceptions
import
TemplateDoesNotExist
...
...
@@ -70,8 +66,3 @@ def render_to_string(template_name, context=None, request=None, using=None):
def
_engine_list
(
using
=
None
):
return
engines
.
all
()
if
using
is
None
else
[
engines
[
using
]]
class
LoaderOrigin
(
six
.
with_metaclass
(
DeprecationInstanceCheck
,
Origin
)):
alternative
=
'django.template.Origin'
deprecation_warning
=
RemovedInDjango20Warning
docs/releases/2.0.txt
Dosyayı görüntüle @
ff419de2
...
...
@@ -315,3 +315,7 @@ these features.
* The ``enclosure`` keyword argument to ``SyndicationFeed.add_item()`` is
removed.
* The ``django.template.loader.LoaderOrigin`` and
``django.template.base.StringOrigin`` aliases for
``django.template.base.Origin`` are removed.
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