This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SQLObject development repository".
The branch, master has been updated
via f2ea218f366844292e14017a6f68e0f8ab62f8e5 (commit)
via 098903ad1c6489ecb3fe4207193a091d70f43ab3 (commit)
from 917dbcd7680600f9f308a9fdf8ed1bf81f8eca66 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/sqlobject/sqlobject/ci/f2ea218f366844292e14017a6f68e0f8ab62f8e5
commit f2ea218f366844292e14017a6f68e0f8ab62f8e5
Merge: 917dbcd 098903a
Author: Oleg Broytman <ph...@ph...>
Date: Sun Feb 15 15:27:32 2015 +0300
Merge pull request #81 from lukmdo/fixF822
Fix #52 flake8 F822 undefined name in __all__
http://sourceforge.net/p/sqlobject/sqlobject/ci/098903ad1c6489ecb3fe4207193a091d70f43ab3
commit 098903ad1c6489ecb3fe4207193a091d70f43ab3
Author: Lukasz Dobrzanski <luk...@gm...>
Date: Sun Feb 15 12:05:01 2015 +0000
Fix flake8 F822
`bind_attributes`, `bind_attributes_local` were dropped in 9a1ab01
diff --git a/sqlobject/boundattributes.py b/sqlobject/boundattributes.py
index 221e231..cee0993 100644
--- a/sqlobject/boundattributes.py
+++ b/sqlobject/boundattributes.py
@@ -10,26 +10,13 @@ change the value in the class, it must call ``setattr(added_class,
name, new_value)``.
BoundAttribute is a class that facilitates lazy attribute creation.
-
-``bind_attributes(cls, new_attrs)`` is a function that looks for
-attributes with this special method. ``new_attrs`` is a dictionary,
-as typically passed into ``__classinit__`` with declarative (calling
-``bind_attributes`` in ``__classinit__`` would be typical).
-
-Note if you do this that attributes defined in a superclass will not
-be rebound in subclasses. If you want to rebind attributes in
-subclasses, use ``bind_attributes_local``, which adds a
-``__bound_attributes__`` variable to your class to track these active
-attributes.
"""
-
+from __future__ import absolute_import
from . import declarative
from . import events
-
-__all__ = ['BoundAttribute', 'BoundFactory', 'bind_attributes',
- 'bind_attributes_local']
+__all__ = ['BoundAttribute', 'BoundFactory']
class BoundAttribute(declarative.Declarative):
diff --git a/sqlobject/tests/test_boundattributes.py b/sqlobject/tests/test_boundattributes.py
index 1ca9fab..1651dbd 100644
--- a/sqlobject/tests/test_boundattributes.py
+++ b/sqlobject/tests/test_boundattributes.py
@@ -1,14 +1,12 @@
-from sqlobject import declarative
-from sqlobject import boundattributes
import py.test
+from sqlobject import boundattributes
+from sqlobject import declarative
+
pytestmark = py.test.mark.skipif('True')
class TestMe(object):
-
- # __metaclass__ = declarative.DeclarativeMeta
- # __classinit__ = boundattributes.bind_attributes_local
pass
-----------------------------------------------------------------------
Summary of changes:
sqlobject/boundattributes.py | 17 ++---------------
sqlobject/tests/test_boundattributes.py | 8 +++-----
2 files changed, 5 insertions(+), 20 deletions(-)
hooks/post-receive
--
SQLObject development repository
|