Hello community,

here is the log from the commit of package python-django-picklefield for 
openSUSE:Factory checked in at 2012-05-08 06:47:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-django-picklefield (Old)
 and      /work/SRC/openSUSE:Factory/.python-django-picklefield.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-django-picklefield", Maintainer is ""

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-django-picklefield/python-django-picklefield.changes
      2012-03-20 11:32:22.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-picklefield.new/python-django-picklefield.changes
 2012-05-08 06:48:00.000000000 +0200
@@ -1,0 +2,7 @@
+Mon Apr 23 11:27:06 UTC 2012 - [email protected]
+
+- Update to 0.2.1:
+  * Use __slots__ to optimize _ObjectWrapper (thanks to Simon
+    Charette).
+
+-------------------------------------------------------------------

Old:
----
  django-picklefield-0.2.0.tar.gz

New:
----
  django-picklefield-0.2.1.tar.bz2

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

Other differences:
------------------
++++++ python-django-picklefield.spec ++++++
--- /var/tmp/diff_new_pack.NzrDBd/_old  2012-05-08 06:48:01.000000000 +0200
+++ /var/tmp/diff_new_pack.NzrDBd/_new  2012-05-08 06:48:01.000000000 +0200
@@ -11,27 +11,32 @@
 # case the license is the MIT License). An "Open Source License" is a
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
-#
+
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 Name:           python-django-picklefield
-Version:        0.2.0
+Version:        0.2.1
 Release:        0
 Url:            http://github.com/gintas/django-picklefield
 Summary:        Pickled object field for Django
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/d/django-picklefield/django-picklefield-%{version}.tar.gz
+Source:         django-picklefield-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 BuildRequires:  python-distribute
 Requires:       python-django
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+%if 0%{?suse_version}
+%py_requires
+%if 0%{?suse_version} > 1110
 BuildArch:      noarch
 %endif
+%endif
 
 %description
 django-picklefield provides an implementation of a pickled object field.

++++++ django-picklefield-0.2.0.tar.gz -> django-picklefield-0.2.1.tar.bz2 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-picklefield-0.2.0/PKG-INFO 
new/django-picklefield-0.2.1/PKG-INFO
--- old/django-picklefield-0.2.0/PKG-INFO       2012-02-18 01:30:30.000000000 
+0100
+++ new/django-picklefield-0.2.1/PKG-INFO       2012-04-23 02:03:42.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: django-picklefield
-Version: 0.2.0
+Version: 0.2.1
 Summary: Pickled object field for Django
 Home-page: http://github.com/gintas/django-picklefield
 Author: Gintautas Miliauskas
@@ -122,6 +122,11 @@
         Changes
         -------
         
+        Changes in version 0.2.1
+        ========================
+        
+         * Use __slots__ to optimize _ObjectWrapper (thanks to Simon Charette)
+        
         Changes in version 0.2.0
         ========================
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-picklefield-0.2.0/README 
new/django-picklefield-0.2.1/README
--- old/django-picklefield-0.2.0/README 2012-02-18 01:26:02.000000000 +0100
+++ new/django-picklefield-0.2.1/README 2012-04-23 02:03:17.000000000 +0200
@@ -114,6 +114,11 @@
 Changes
 -------
 
+Changes in version 0.2.1
+========================
+
+ * Use __slots__ to optimize _ObjectWrapper (thanks to Simon Charette)
+
 Changes in version 0.2.0
 ========================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-picklefield-0.2.0/setup.py 
new/django-picklefield-0.2.1/setup.py
--- old/django-picklefield-0.2.0/setup.py       2012-02-18 01:26:02.000000000 
+0100
+++ new/django-picklefield-0.2.1/setup.py       2012-04-23 02:01:49.000000000 
+0200
@@ -23,7 +23,7 @@
 from setuptools import setup, find_packages
 
 setup(name='django-picklefield',
-    version='0.2.0',
+    version='0.2.1',
     description='Pickled object field for Django',
     long_description=open('README').read(),
     author='Gintautas Miliauskas',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/django-picklefield-0.2.0/src/django_picklefield.egg-info/PKG-INFO 
new/django-picklefield-0.2.1/src/django_picklefield.egg-info/PKG-INFO
--- old/django-picklefield-0.2.0/src/django_picklefield.egg-info/PKG-INFO       
2012-02-18 01:30:30.000000000 +0100
+++ new/django-picklefield-0.2.1/src/django_picklefield.egg-info/PKG-INFO       
2012-04-23 02:03:42.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: django-picklefield
-Version: 0.2.0
+Version: 0.2.1
 Summary: Pickled object field for Django
 Home-page: http://github.com/gintas/django-picklefield
 Author: Gintautas Miliauskas
@@ -122,6 +122,11 @@
         Changes
         -------
         
+        Changes in version 0.2.1
+        ========================
+        
+         * Use __slots__ to optimize _ObjectWrapper (thanks to Simon Charette)
+        
         Changes in version 0.2.0
         ========================
         
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-picklefield-0.2.0/src/picklefield/fields.py 
new/django-picklefield-0.2.1/src/picklefield/fields.py
--- old/django-picklefield-0.2.0/src/picklefield/fields.py      2012-02-18 
01:26:02.000000000 +0100
+++ new/django-picklefield-0.2.1/src/picklefield/fields.py      2012-04-23 
01:51:58.000000000 +0200
@@ -27,7 +27,7 @@
 
     """
 
-class ObjectWrapper(object):
+class _ObjectWrapper(object):
     """
     A class used to wrap object that have properties that may clash with the 
     ORM internals.
@@ -36,13 +36,14 @@
     `django.db.Model` subclasses won't work under certain conditions and the
     same apply for trying to retrieve any `callable` object.
     """
-    
+    __slots__ = ('_obj',)
+
     def __init__(self, obj):
         self._obj = obj
 
 def wrap_conflictual_object(obj):
     if hasattr(obj, 'prepare_database_save') or callable(obj):
-        obj = ObjectWrapper(obj)
+        obj = _ObjectWrapper(obj)
     return obj
 
 def dbsafe_encode(value, compress_object=False, 
pickle_protocol=DEFAULT_PROTOCOL):
@@ -124,7 +125,7 @@
                 if isinstance(value, PickledObject):
                     raise
             else:
-                if isinstance(value, ObjectWrapper):
+                if isinstance(value, _ObjectWrapper):
                     return value._obj
         return value
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to