Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-Chameleon for 
openSUSE:Factory checked in at 2023-01-04 17:53:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Chameleon (Old)
 and      /work/SRC/openSUSE:Factory/.python-Chameleon.new.1563 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Chameleon"

Wed Jan  4 17:53:52 2023 rev:14 rq:1055881 version:3.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Chameleon/python-Chameleon.changes        
2022-08-02 22:10:29.745998008 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-Chameleon.new.1563/python-Chameleon.changes  
    2023-01-04 17:54:40.358913631 +0100
@@ -1,0 +2,7 @@
+Wed Jan  4 15:01:37 UTC 2023 - Dirk Müller <[email protected]>
+
+- update to 3.10.2:
+  * Fix handling of eager compilation with subclassing (e.g. Pyramid
+    integration).
+
+-------------------------------------------------------------------

Old:
----
  Chameleon-3.10.1.tar.gz

New:
----
  Chameleon-3.10.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Chameleon.spec ++++++
--- /var/tmp/diff_new_pack.Taj5UF/_old  2023-01-04 17:54:40.838916460 +0100
+++ /var/tmp/diff_new_pack.Taj5UF/_new  2023-01-04 17:54:40.842916484 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Chameleon
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-Chameleon
-Version:        3.10.1
+Version:        3.10.2
 Release:        0
 Summary:        Fast HTML/XML Template Compiler
 License:        BSD-3-Clause AND BSD-4-Clause AND Python-2.0 AND ZPL-2.1

++++++ Chameleon-3.10.1.tar.gz -> Chameleon-3.10.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-3.10.1/CHANGES.rst 
new/chameleon-3.10.2/CHANGES.rst
--- old/chameleon-3.10.1/CHANGES.rst    2022-05-17 14:04:22.000000000 +0200
+++ new/chameleon-3.10.2/CHANGES.rst    2022-12-16 17:33:28.000000000 +0100
@@ -1,6 +1,11 @@
 Changes
 =======
 
+3.10.2 (2022-12-16)
+-------------------
+
+- Fix handling of eager compilation with subclassing (e.g. Pyramid 
integration).
+
 3.10.1 (2022-05-17)
 -------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-3.10.1/setup.py 
new/chameleon-3.10.2/setup.py
--- old/chameleon-3.10.1/setup.py       2022-05-17 14:04:22.000000000 +0200
+++ new/chameleon-3.10.2/setup.py       2022-12-16 17:33:28.000000000 +0100
@@ -1,4 +1,4 @@
-__version__ = '3.10.1'
+__version__ = '3.10.2'
 
 import os
 
@@ -51,6 +51,8 @@
        "Programming Language :: Python :: 3.7",
        "Programming Language :: Python :: 3.8",
        "Programming Language :: Python :: 3.9",
+       "Programming Language :: Python :: 3.10",
+       "Programming Language :: Python :: 3.11",
        "Programming Language :: Python :: Implementation :: CPython",
        "Programming Language :: Python :: Implementation :: PyPy",
       ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-3.10.1/src/chameleon/template.py 
new/chameleon-3.10.2/src/chameleon/template.py
--- old/chameleon-3.10.1/src/chameleon/template.py      2022-05-17 
14:04:22.000000000 +0200
+++ new/chameleon-3.10.2/src/chameleon/template.py      2022-12-16 
17:33:28.000000000 +0100
@@ -293,7 +293,7 @@
     # performance hit
     auto_reload = AUTO_RELOAD
 
-    def __init__(self, filename, auto_reload=None, **config):
+    def __init__(self, filename, auto_reload=None, post_init_hook=None, 
**config):
         # Normalize filename
         filename = os.path.abspath(
             os.path.normpath(os.path.expanduser(filename))
@@ -307,6 +307,9 @@
 
         super(BaseTemplateFile, self).__init__(**config)
 
+        if post_init_hook is not None:
+            post_init_hook()
+
         if EAGER_PARSING:
             self.cook_check()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/chameleon-3.10.1/src/chameleon/zpt/template.py 
new/chameleon-3.10.2/src/chameleon/zpt/template.py
--- old/chameleon-3.10.1/src/chameleon/zpt/template.py  2022-05-17 
14:04:22.000000000 +0200
+++ new/chameleon-3.10.2/src/chameleon/zpt/template.py  2022-12-16 
17:33:28.000000000 +0100
@@ -385,8 +385,6 @@
 
     def __init__(self, filename, search_path=None, loader_class=TemplateLoader,
                  **config):
-        super(PageTemplateFile, self).__init__(filename, **config)
-
         if search_path is None:
             search_path = []
         else:
@@ -395,18 +393,25 @@
             else:
                 search_path = list(search_path)
 
-        # If the flag is set (this is the default), prepend the path
-        # relative to the template file to the search path
-        if self.prepend_relative_search_path:
-            path = dirname(self.filename)
-            search_path.insert(0, path)
-
-        loader = loader_class(search_path=search_path, **config)
-        template_class = type(self)
-
-        # Bind relative template loader instance to the same template
-        # class, providing the same keyword arguments.
-        self._loader = loader.bind(template_class)
+        def post_init():
+            # If the flag is set (this is the default), prepend the path
+            # relative to the template file to the search path
+            if self.prepend_relative_search_path:
+                path = dirname(self.filename)
+                search_path.insert(0, path)
+
+            loader = loader_class(search_path=search_path, **config)
+            template_class = type(self)
+
+            # Bind relative template loader instance to the same template
+            # class, providing the same keyword arguments.
+            self._loader = loader.bind(template_class)
+
+        super(PageTemplateFile, self).__init__(
+            filename,
+            post_init_hook=post_init,
+            **config
+        )
 
     def _builtins(self):
         d = super(PageTemplateFile, self)._builtins()

Reply via email to