sqlobject-cvs Mailing List for SQLObject (Page 27)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
(9) |
Apr
(74) |
May
(29) |
Jun
(16) |
Jul
(28) |
Aug
(10) |
Sep
(57) |
Oct
(9) |
Nov
(29) |
Dec
(12) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(7) |
Feb
(14) |
Mar
(6) |
Apr
(3) |
May
(12) |
Jun
(34) |
Jul
(9) |
Aug
(29) |
Sep
(22) |
Oct
(2) |
Nov
(15) |
Dec
(52) |
| 2005 |
Jan
(47) |
Feb
(78) |
Mar
(14) |
Apr
(35) |
May
(33) |
Jun
(16) |
Jul
(26) |
Aug
(63) |
Sep
(40) |
Oct
(96) |
Nov
(96) |
Dec
(123) |
| 2006 |
Jan
(159) |
Feb
(144) |
Mar
(64) |
Apr
(31) |
May
(88) |
Jun
(48) |
Jul
(16) |
Aug
(64) |
Sep
(87) |
Oct
(92) |
Nov
(56) |
Dec
(76) |
| 2007 |
Jan
(94) |
Feb
(103) |
Mar
(126) |
Apr
(123) |
May
(85) |
Jun
(11) |
Jul
(130) |
Aug
(47) |
Sep
(65) |
Oct
(70) |
Nov
(12) |
Dec
(11) |
| 2008 |
Jan
(30) |
Feb
(55) |
Mar
(88) |
Apr
(20) |
May
(50) |
Jun
|
Jul
(38) |
Aug
(1) |
Sep
(9) |
Oct
(5) |
Nov
(6) |
Dec
(39) |
| 2009 |
Jan
(8) |
Feb
(16) |
Mar
(3) |
Apr
(33) |
May
(44) |
Jun
(1) |
Jul
(10) |
Aug
(33) |
Sep
(74) |
Oct
(22) |
Nov
|
Dec
(15) |
| 2010 |
Jan
(28) |
Feb
(22) |
Mar
(46) |
Apr
(29) |
May
(1) |
Jun
(1) |
Jul
(27) |
Aug
(8) |
Sep
(5) |
Oct
(33) |
Nov
(24) |
Dec
(41) |
| 2011 |
Jan
(4) |
Feb
(12) |
Mar
(35) |
Apr
(29) |
May
(19) |
Jun
(16) |
Jul
(32) |
Aug
(25) |
Sep
(5) |
Oct
(11) |
Nov
(21) |
Dec
(12) |
| 2012 |
Jan
(3) |
Feb
(4) |
Mar
(20) |
Apr
(4) |
May
(25) |
Jun
(13) |
Jul
|
Aug
|
Sep
(2) |
Oct
(25) |
Nov
(9) |
Dec
(1) |
| 2013 |
Jan
(6) |
Feb
(8) |
Mar
|
Apr
(10) |
May
(31) |
Jun
(7) |
Jul
(18) |
Aug
(33) |
Sep
(4) |
Oct
(16) |
Nov
|
Dec
(27) |
| 2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
(11) |
May
(39) |
Jun
(8) |
Jul
(11) |
Aug
(4) |
Sep
|
Oct
(27) |
Nov
|
Dec
(71) |
| 2015 |
Jan
(17) |
Feb
(47) |
Mar
(33) |
Apr
|
May
|
Jun
(9) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(8) |
| 2016 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
|
May
(12) |
Jun
(7) |
Jul
(9) |
Aug
(31) |
Sep
(8) |
Oct
(3) |
Nov
(15) |
Dec
(1) |
| 2017 |
Jan
(13) |
Feb
(7) |
Mar
(14) |
Apr
(8) |
May
(10) |
Jun
(4) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(4) |
Dec
(5) |
| 2018 |
Jan
(2) |
Feb
(8) |
Mar
|
Apr
(4) |
May
|
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2019 |
Jan
(1) |
Feb
(16) |
Mar
(1) |
Apr
(3) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(3) |
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
(4) |
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(4) |
Dec
|
| 2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(9) |
| 2025 |
Jan
|
Feb
(4) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
(2) |
|
From: <sub...@co...> - 2013-07-11 13:36:11
|
Author: phd Date: Thu Jul 11 07:36:02 2013 New Revision: 4614 Log: Git or Mercurial Modified: SQLObject/trunk/docs/TODO.txt Modified: SQLObject/trunk/docs/TODO.txt ============================================================================== --- SQLObject/trunk/docs/TODO.txt Wed Jul 10 12:12:54 2013 (r4613) +++ SQLObject/trunk/docs/TODO.txt Thu Jul 11 07:36:02 2013 (r4614) @@ -108,7 +108,7 @@ .. _Sphinx: http://sphinx.pocoo.org/index.html -* More documentation. Wiki. Trac. Mercurial. +* More documentation. Wiki. Trac. Git or Mercurial. * RSS 2.0 and Atom news feeds. |
|
From: <sub...@co...> - 2013-07-10 18:13:03
|
Author: phd
Date: Wed Jul 10 12:12:54 2013
New Revision: 4613
Log:
Helpers for class Outer were changed to lookup columns in table's declarations
Modified:
SQLObject/trunk/docs/News.txt
SQLObject/trunk/sqlobject/sqlbuilder.py
SQLObject/trunk/sqlobject/tests/test_subqueries.py
Modified: SQLObject/trunk/docs/News.txt
==============================================================================
--- SQLObject/trunk/docs/News.txt Sun Jul 7 12:45:11 2013 (r4612)
+++ SQLObject/trunk/docs/News.txt Wed Jul 10 12:12:54 2013 (r4613)
@@ -10,6 +10,15 @@
SQLObject (trunk)
=================
+Features & Interface
+--------------------
+
+* Helpers for class Outer were changed to lookup columns in table's
+ declarations.
+
+Bugfixes
+--------
+
* A bug was fixed in DBConnection.close(); close() doesn't raise
an UnboundLocalError if connection pool is empty.
Modified: SQLObject/trunk/sqlobject/sqlbuilder.py
==============================================================================
--- SQLObject/trunk/sqlobject/sqlbuilder.py Sun Jul 7 12:45:11 2013 (r4612)
+++ SQLObject/trunk/sqlobject/sqlbuilder.py Wed Jul 10 12:12:54 2013 (r4613)
@@ -1135,22 +1135,13 @@
## Subqueries (subselects)
########################################
-class OuterField(Field):
+class OuterField(SQLObjectField):
def tablesUsedImmediate(self):
return []
-class OuterTable(Table):
+class OuterTable(SQLObjectTable):
FieldClass = OuterField
- def __init__(self, table):
- if hasattr(table, "sqlmeta"):
- tableName = table.sqlmeta.table
- else:
- tableName = table
- table = None
- Table.__init__(self, tableName)
- self.table = table
-
class Outer:
def __init__(self, table):
self.q = OuterTable(table)
Modified: SQLObject/trunk/sqlobject/tests/test_subqueries.py
==============================================================================
--- SQLObject/trunk/sqlobject/tests/test_subqueries.py Sun Jul 7 12:45:11 2013 (r4612)
+++ SQLObject/trunk/sqlobject/tests/test_subqueries.py Wed Jul 10 12:12:54 2013 (r4613)
@@ -12,6 +12,9 @@
class TestIn2(SQLObject):
col2 = StringCol()
+class TestOuter(SQLObject):
+ fk = ForeignKey('TestIn1')
+
def setup():
setupClass(TestIn1)
setupClass(TestIn2)
@@ -46,11 +49,20 @@
assert str(select) == \
"SELECT test_in1.id, test_in1.col1 FROM test_in1 WHERE NOT EXISTS (SELECT test_in2.col2 FROM test_in2 WHERE ((test_in1.col1) = (test_in2.col2)))"
+ setupClass(TestOuter)
+ select = TestOuter.select(NOTEXISTS(Select(TestIn1.q.col1, where=(Outer(TestOuter).q.fk == TestIn1.q.id))))
+ assert str(select) == \
+ "SELECT test_outer.id, test_outer.fk_id FROM test_outer WHERE NOT EXISTS (SELECT test_in1.col1 FROM test_in1 WHERE ((test_outer.fk_id) = (test_in1.id)))"
+
def test_4perform_exists():
insert()
select = TestIn1.select(EXISTS(Select(TestIn2.q.col2, where=(Outer(TestIn1).q.col1 == TestIn2.q.col2))))
assert len(list(select)) == 2
+ setupClass(TestOuter)
+ select = TestOuter.select(NOTEXISTS(Select(TestIn1.q.col1, where=(Outer(TestOuter).q.fkID == TestIn1.q.id))))
+ assert len(list(select)) == 0
+
def test_4syntax_direct():
setup()
select = TestIn1.select(TestIn1.q.col1 == Select(TestIn2.q.col2, where=(TestIn2.q.col2 == "test")))
|
|
From: <sub...@co...> - 2013-07-07 19:07:22
|
Author: phd
Date: Sun Jul 7 12:45:11 2013
New Revision: 4612
Log:
A bug was fixed in DBConnection.close()
Modified:
SQLObject/trunk/docs/News.txt
SQLObject/trunk/sqlobject/dbconnection.py
Modified: SQLObject/trunk/docs/News.txt
==============================================================================
--- SQLObject/trunk/docs/News.txt Sun May 26 11:17:22 2013 (r4611)
+++ SQLObject/trunk/docs/News.txt Sun Jul 7 12:45:11 2013 (r4612)
@@ -7,6 +7,12 @@
.. _start:
+SQLObject (trunk)
+=================
+
+* A bug was fixed in DBConnection.close(); close() doesn't raise
+ an UnboundLocalError if connection pool is empty.
+
SQLObject 1.4.1
===============
Modified: SQLObject/trunk/sqlobject/dbconnection.py
==============================================================================
--- SQLObject/trunk/sqlobject/dbconnection.py Sun May 26 11:17:22 2013 (r4611)
+++ SQLObject/trunk/sqlobject/dbconnection.py Sun Jul 7 12:45:11 2013 (r4612)
@@ -682,6 +682,8 @@
return
self._poolLock.acquire()
try:
+ if not self._pool: # _pool could be filled in a different thread
+ return
conns = self._pool[:]
self._pool[:] = []
for conn in conns:
|
|
From: <sub...@co...> - 2013-05-26 17:17:30
|
Author: phd Date: Sun May 26 11:17:22 2013 New Revision: 4611 Log: Stable release 1.4.1 Modified: SQLObject/tags/1.4.1/README.txt SQLObject/tags/1.4.1/setup.cfg SQLObject/tags/1.4.1/sqlobject/__version__.py Modified: SQLObject/tags/1.4.1/README.txt ============================================================================== --- SQLObject/tags/1.4.1/README.txt Sun May 26 11:16:12 2013 (r4610) +++ SQLObject/tags/1.4.1/README.txt Sun May 26 11:17:22 2013 (r4611) @@ -1,5 +1,5 @@ -SQLObject 1.4 -============= +SQLObject 1.4.1 +=============== Thanks for looking at SQLObject. SQLObject is an object-relational mapper, i.e., a library that will wrap your database tables in Python Modified: SQLObject/tags/1.4.1/setup.cfg ============================================================================== --- SQLObject/tags/1.4.1/setup.cfg Sun May 26 11:16:12 2013 (r4610) +++ SQLObject/tags/1.4.1/setup.cfg Sun May 26 11:17:22 2013 (r4611) @@ -5,10 +5,6 @@ [easy_install] #find_links = http://svn.pythonpaste.org/package_index.html -[egg_info] -tag_build = dev -tag_svn_revision = true - [pudge] theme = pythonpaste.org docs = docs/index.txt docs/Authors.txt docs/DeveloperGuide.txt docs/FAQ.txt Modified: SQLObject/tags/1.4.1/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.4.1/sqlobject/__version__.py Sun May 26 11:16:12 2013 (r4610) +++ SQLObject/tags/1.4.1/sqlobject/__version__.py Sun May 26 11:17:22 2013 (r4611) @@ -1,8 +1,8 @@ -version = '1.4' +version = '1.4.1' major = 1 minor = 4 -micro = 0 -release_level = 'branch' +micro = 1 +release_level = 'final' serial = 0 version_info = (major, minor, micro, release_level, serial) |
|
From: <sub...@co...> - 2013-05-26 17:16:19
|
Author: phd
Date: Sun May 26 11:16:12 2013
New Revision: 4610
Log:
Tagging 1.4.1
Added:
SQLObject/tags/1.4.1/
- copied from r4609, SQLObject/branches/1.4/
|
|
From: <sub...@co...> - 2013-05-26 17:12:33
|
Author: phd Date: Sun May 26 11:12:23 2013 New Revision: 4609 Log: Stable release 1.3.3 Modified: SQLObject/tags/1.3.3/README.txt SQLObject/tags/1.3.3/setup.cfg SQLObject/tags/1.3.3/sqlobject/__version__.py Modified: SQLObject/tags/1.3.3/README.txt ============================================================================== --- SQLObject/tags/1.3.3/README.txt Sun May 26 11:08:50 2013 (r4608) +++ SQLObject/tags/1.3.3/README.txt Sun May 26 11:12:23 2013 (r4609) @@ -1,5 +1,5 @@ -SQLObject 1.3 -============= +SQLObject 1.3.3 +=============== Thanks for looking at SQLObject. SQLObject is an object-relational mapper, i.e., a library that will wrap your database tables in Python Modified: SQLObject/tags/1.3.3/setup.cfg ============================================================================== --- SQLObject/tags/1.3.3/setup.cfg Sun May 26 11:08:50 2013 (r4608) +++ SQLObject/tags/1.3.3/setup.cfg Sun May 26 11:12:23 2013 (r4609) @@ -5,10 +5,6 @@ [easy_install] #find_links = http://svn.pythonpaste.org/package_index.html -[egg_info] -tag_build = dev -tag_svn_revision = true - [pudge] theme = pythonpaste.org docs = docs/index.txt docs/Authors.txt docs/DeveloperGuide.txt docs/FAQ.txt Modified: SQLObject/tags/1.3.3/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.3.3/sqlobject/__version__.py Sun May 26 11:08:50 2013 (r4608) +++ SQLObject/tags/1.3.3/sqlobject/__version__.py Sun May 26 11:12:23 2013 (r4609) @@ -1,8 +1,8 @@ -version = '1.3' +version = '1.3.3' major = 1 minor = 3 -micro = 0 -release_level = 'trunk' +micro = 3 +release_level = 'final' serial = 0 version_info = (major, minor, micro, release_level, serial) |
|
From: <sub...@co...> - 2013-05-26 17:08:57
|
Author: phd
Date: Sun May 26 11:08:50 2013
New Revision: 4608
Log:
Tagging 1.3.3
Added:
SQLObject/tags/1.3.3/
- copied from r4607, SQLObject/branches/1.3/
|
|
From: <sub...@co...> - 2013-05-26 17:04:08
|
Author: phd Date: Sun May 26 11:03:58 2013 New Revision: 4607 Log: Merged revision 4605 from branch 1.3: added an example of using SQLObject with web.py Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/docs/links.txt Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Sun May 26 11:02:55 2013 (r4606) +++ SQLObject/trunk/docs/News.txt Sun May 26 11:03:58 2013 (r4607) @@ -41,6 +41,9 @@ * Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self, fixed cache handling). +* Added an example of using SQLObject with web.py by Rhubarb Sin + to the links page. + SQLObject 1.3.2 =============== Modified: SQLObject/trunk/docs/links.txt ============================================================================== --- SQLObject/trunk/docs/links.txt Sun May 26 11:02:55 2013 (r4606) +++ SQLObject/trunk/docs/links.txt Sun May 26 11:03:58 2013 (r4607) @@ -26,6 +26,9 @@ * `Using SQLObject with memcached <http://www.zachary.com/s/blog/2005/09/18/sqlobject_and_memcached,_part_1>`_. +* `Example of using SQLObject with web.py under mod_wsgi + <https://github.com/RhubarbSin/example-sqlobject-webpy>`_. + Open Source Projects -------------------- |
|
From: <sub...@co...> - 2013-05-26 17:03:08
|
Author: phd Date: Sun May 26 11:02:55 2013 New Revision: 4606 Log: Merged revision 4605 from branch 1.3: added an example of using SQLObject with web.py Modified: SQLObject/branches/1.4/docs/News.txt SQLObject/branches/1.4/docs/links.txt Modified: SQLObject/branches/1.4/docs/News.txt ============================================================================== --- SQLObject/branches/1.4/docs/News.txt Sun May 26 11:01:05 2013 (r4605) +++ SQLObject/branches/1.4/docs/News.txt Sun May 26 11:02:55 2013 (r4606) @@ -41,6 +41,9 @@ * Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self, fixed cache handling). +* Added an example of using SQLObject with web.py by Rhubarb Sin + to the links page. + SQLObject 1.3.2 =============== Modified: SQLObject/branches/1.4/docs/links.txt ============================================================================== --- SQLObject/branches/1.4/docs/links.txt Sun May 26 11:01:05 2013 (r4605) +++ SQLObject/branches/1.4/docs/links.txt Sun May 26 11:02:55 2013 (r4606) @@ -26,6 +26,9 @@ * `Using SQLObject with memcached <http://www.zachary.com/s/blog/2005/09/18/sqlobject_and_memcached,_part_1>`_. +* `Example of using SQLObject with web.py under mod_wsgi + <https://github.com/RhubarbSin/example-sqlobject-webpy>`_. + Open Source Projects -------------------- |
|
From: <sub...@co...> - 2013-05-26 17:01:13
|
Author: phd Date: Sun May 26 11:01:05 2013 New Revision: 4605 Log: Added an example of using SQLObject with web.py by Rhubarb Sin to the links page Modified: SQLObject/branches/1.3/docs/News.txt SQLObject/branches/1.3/docs/links.txt Modified: SQLObject/branches/1.3/docs/News.txt ============================================================================== --- SQLObject/branches/1.3/docs/News.txt Sun May 26 09:55:13 2013 (r4604) +++ SQLObject/branches/1.3/docs/News.txt Sun May 26 11:01:05 2013 (r4605) @@ -15,6 +15,9 @@ * Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self, fixed cache handling). +* Added an example of using SQLObject with web.py by Rhubarb Sin + to the links page. + SQLObject 1.3.2 =============== Modified: SQLObject/branches/1.3/docs/links.txt ============================================================================== --- SQLObject/branches/1.3/docs/links.txt Sun May 26 09:55:13 2013 (r4604) +++ SQLObject/branches/1.3/docs/links.txt Sun May 26 11:01:05 2013 (r4605) @@ -26,6 +26,9 @@ * `Using SQLObject with memcached <http://www.zachary.com/s/blog/2005/09/18/sqlobject_and_memcached,_part_1>`_. +* `Example of using SQLObject with web.py under mod_wsgi + <https://github.com/RhubarbSin/example-sqlobject-webpy>`_. + Open Source Projects -------------------- |
|
From: <sub...@co...> - 2013-05-26 15:55:23
|
Author: phd Date: Sun May 26 09:55:13 2013 New Revision: 4604 Log: Merged revision 4603 from branch 1.4: fixed bugs in (un)pickling Modified: SQLObject/trunk/docs/Authors.txt SQLObject/trunk/docs/News.txt SQLObject/trunk/sqlobject/main.py SQLObject/trunk/sqlobject/tests/test_pickle.py Modified: SQLObject/trunk/docs/Authors.txt ============================================================================== --- SQLObject/trunk/docs/Authors.txt Sun May 26 09:52:50 2013 (r4603) +++ SQLObject/trunk/docs/Authors.txt Sun May 26 09:55:13 2013 (r4604) @@ -28,6 +28,7 @@ * Petr Jakes <petr.jakes at tpc.cz> * Ken Lalonde * Andrew Ziem <ahz001 at gmail.com> +* Andrew Trusty <atrusty at gatech.edu> * Oleg Broytman <ph...@ph...> .. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Sun May 26 09:52:50 2013 (r4603) +++ SQLObject/trunk/docs/News.txt Sun May 26 09:55:13 2013 (r4604) @@ -7,8 +7,12 @@ .. _start: -SQLObject (trunk) -================= +SQLObject 1.4.1 +=============== + +Released 26 May 2013. + +* A few bugfixes were ported from `SQLObject 1.3.3`_. SQLObject 1.4.0 =============== @@ -29,6 +33,14 @@ * NCHAR/NVARCHAR and N''-quoted strings for MS SQL. +SQLObject 1.3.3 +=============== + +Released 26 May 2013. + +* Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self, + fixed cache handling). + SQLObject 1.3.2 =============== Modified: SQLObject/trunk/sqlobject/main.py ============================================================================== --- SQLObject/trunk/sqlobject/main.py Sun May 26 09:52:50 2013 (r4603) +++ SQLObject/trunk/sqlobject/main.py Sun May 26 09:55:13 2013 (r4604) @@ -1676,21 +1676,27 @@ if self.sqlmeta._perConnection: from pickle import PicklingError raise PicklingError('Cannot pickle an SQLObject instance that has a per-instance connection') + if self.sqlmeta.lazyUpdate and self._SO_createValues: + self.syncUpdate() d = self.__dict__.copy() del d['sqlmeta'] + del d['_SO_validatorState'] del d['_SO_writeLock'] + del d['_SO_createValues'] return d def __setstate__(self, d): self.__init__(_SO_fetch_no_create=1) + self._SO_validatorState = sqlbuilder.SQLObjectState(self) self._SO_writeLock = threading.Lock() + self._SO_createValues = {} self.__dict__.update(d) cls = self.__class__ cache = self._connection.cache if cache.tryGet(self.id, cls) is not None: raise ValueError( "Cannot unpickle %s row with id=%s - a different instance with the id already exists in the cache" % (cls.__name__, self.id)) - cache.created(id, cls, self) + cache.created(self.id, cls, self) def setterName(name): Modified: SQLObject/trunk/sqlobject/tests/test_pickle.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_pickle.py Sun May 26 09:52:50 2013 (r4603) +++ SQLObject/trunk/sqlobject/tests/test_pickle.py Sun May 26 09:55:13 2013 (r4604) @@ -21,7 +21,9 @@ pickle_data = pickle.dumps(test, pickle.HIGHEST_PROTOCOL) connection.cache.clear() test = pickle.loads(pickle_data) + test2 = connection.cache.tryGet(test.id, TestPickle) + assert test2 is test assert test.question == test_question assert test.answer == test_answer |
|
From: <sub...@co...> - 2013-05-26 15:52:58
|
Author: phd Date: Sun May 26 09:52:50 2013 New Revision: 4603 Log: Merged revisions 4601, 4602 from branch 1.3: fixed bugs in (un)pickling Modified: SQLObject/branches/1.4/docs/Authors.txt SQLObject/branches/1.4/docs/News.txt SQLObject/branches/1.4/sqlobject/main.py SQLObject/branches/1.4/sqlobject/tests/test_pickle.py Modified: SQLObject/branches/1.4/docs/Authors.txt ============================================================================== --- SQLObject/branches/1.4/docs/Authors.txt Sun May 26 09:08:50 2013 (r4602) +++ SQLObject/branches/1.4/docs/Authors.txt Sun May 26 09:52:50 2013 (r4603) @@ -28,6 +28,7 @@ * Petr Jakes <petr.jakes at tpc.cz> * Ken Lalonde * Andrew Ziem <ahz001 at gmail.com> +* Andrew Trusty <atrusty at gatech.edu> * Oleg Broytman <ph...@ph...> .. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 Modified: SQLObject/branches/1.4/docs/News.txt ============================================================================== --- SQLObject/branches/1.4/docs/News.txt Sun May 26 09:08:50 2013 (r4602) +++ SQLObject/branches/1.4/docs/News.txt Sun May 26 09:52:50 2013 (r4603) @@ -7,8 +7,12 @@ .. _start: -SQLObject (trunk) -================= +SQLObject 1.4.1 +=============== + +Released 26 May 2013. + +* A few bugfixes were ported from `SQLObject 1.3.3`_. SQLObject 1.4.0 =============== @@ -29,6 +33,14 @@ * NCHAR/NVARCHAR and N''-quoted strings for MS SQL. +SQLObject 1.3.3 +=============== + +Released 26 May 2013. + +* Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self, + fixed cache handling). + SQLObject 1.3.2 =============== Modified: SQLObject/branches/1.4/sqlobject/main.py ============================================================================== --- SQLObject/branches/1.4/sqlobject/main.py Sun May 26 09:08:50 2013 (r4602) +++ SQLObject/branches/1.4/sqlobject/main.py Sun May 26 09:52:50 2013 (r4603) @@ -1676,21 +1676,27 @@ if self.sqlmeta._perConnection: from pickle import PicklingError raise PicklingError('Cannot pickle an SQLObject instance that has a per-instance connection') + if self.sqlmeta.lazyUpdate and self._SO_createValues: + self.syncUpdate() d = self.__dict__.copy() del d['sqlmeta'] + del d['_SO_validatorState'] del d['_SO_writeLock'] + del d['_SO_createValues'] return d def __setstate__(self, d): self.__init__(_SO_fetch_no_create=1) + self._SO_validatorState = sqlbuilder.SQLObjectState(self) self._SO_writeLock = threading.Lock() + self._SO_createValues = {} self.__dict__.update(d) cls = self.__class__ cache = self._connection.cache if cache.tryGet(self.id, cls) is not None: raise ValueError( "Cannot unpickle %s row with id=%s - a different instance with the id already exists in the cache" % (cls.__name__, self.id)) - cache.created(id, cls, self) + cache.created(self.id, cls, self) def setterName(name): Modified: SQLObject/branches/1.4/sqlobject/tests/test_pickle.py ============================================================================== --- SQLObject/branches/1.4/sqlobject/tests/test_pickle.py Sun May 26 09:08:50 2013 (r4602) +++ SQLObject/branches/1.4/sqlobject/tests/test_pickle.py Sun May 26 09:52:50 2013 (r4603) @@ -21,7 +21,9 @@ pickle_data = pickle.dumps(test, pickle.HIGHEST_PROTOCOL) connection.cache.clear() test = pickle.loads(pickle_data) + test2 = connection.cache.tryGet(test.id, TestPickle) + assert test2 is test assert test.question == test_question assert test.answer == test_answer |
|
From: <sub...@co...> - 2013-05-26 15:08:59
|
Author: phd Date: Sun May 26 09:08:50 2013 New Revision: 4602 Log: Fixed cache handling on unpickling Modified: SQLObject/branches/1.3/docs/Authors.txt SQLObject/branches/1.3/docs/News.txt SQLObject/branches/1.3/sqlobject/main.py SQLObject/branches/1.3/sqlobject/tests/test_pickle.py Modified: SQLObject/branches/1.3/docs/Authors.txt ============================================================================== --- SQLObject/branches/1.3/docs/Authors.txt Sun May 26 09:05:11 2013 (r4601) +++ SQLObject/branches/1.3/docs/Authors.txt Sun May 26 09:08:50 2013 (r4602) @@ -26,6 +26,7 @@ * Daniel Fetchinson <fetchinson at googlemail.com> * Neil Muller <drnlmuller+sqlobject at gmail.com> * Petr Jakes <petr.jakes at tpc.cz> +* Andrew Trusty <atrusty at gatech.edu> * Oleg Broytman <ph...@ph...> .. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 Modified: SQLObject/branches/1.3/docs/News.txt ============================================================================== --- SQLObject/branches/1.3/docs/News.txt Sun May 26 09:05:11 2013 (r4601) +++ SQLObject/branches/1.3/docs/News.txt Sun May 26 09:08:50 2013 (r4602) @@ -7,6 +7,14 @@ .. _start: +SQLObject 1.3.3 +=============== + +Released 26 May 2013. + +* Fixed bugs in pickling and unpickling (remove/restore a weak proxy to self, + fixed cache handling). + SQLObject 1.3.2 =============== Modified: SQLObject/branches/1.3/sqlobject/main.py ============================================================================== --- SQLObject/branches/1.3/sqlobject/main.py Sun May 26 09:05:11 2013 (r4601) +++ SQLObject/branches/1.3/sqlobject/main.py Sun May 26 09:08:50 2013 (r4602) @@ -1696,7 +1696,7 @@ if cache.tryGet(self.id, cls) is not None: raise ValueError( "Cannot unpickle %s row with id=%s - a different instance with the id already exists in the cache" % (cls.__name__, self.id)) - cache.created(id, cls, self) + cache.created(self.id, cls, self) def setterName(name): Modified: SQLObject/branches/1.3/sqlobject/tests/test_pickle.py ============================================================================== --- SQLObject/branches/1.3/sqlobject/tests/test_pickle.py Sun May 26 09:05:11 2013 (r4601) +++ SQLObject/branches/1.3/sqlobject/tests/test_pickle.py Sun May 26 09:08:50 2013 (r4602) @@ -21,7 +21,9 @@ pickle_data = pickle.dumps(test, pickle.HIGHEST_PROTOCOL) connection.cache.clear() test = pickle.loads(pickle_data) + test2 = connection.cache.tryGet(test.id, TestPickle) + assert test2 is test assert test.question == test_question assert test.answer == test_answer |
|
From: <sub...@co...> - 2013-05-26 15:05:24
|
Author: phd
Date: Sun May 26 09:05:11 2013
New Revision: 4601
Log:
Remove and restore _SO_validatorState and _SO_createValues
Call syncUpdate and remove _SO_validatorState and _SO_createValues before
pickling to avoid pickling a weak proxy to self.
Restore _SO_validatorState and _SO_createValues on unpickling.
Modified:
SQLObject/branches/1.3/sqlobject/main.py
Modified: SQLObject/branches/1.3/sqlobject/main.py
==============================================================================
--- SQLObject/branches/1.3/sqlobject/main.py Sat May 18 03:36:59 2013 (r4600)
+++ SQLObject/branches/1.3/sqlobject/main.py Sun May 26 09:05:11 2013 (r4601)
@@ -1676,14 +1676,20 @@
if self.sqlmeta._perConnection:
from pickle import PicklingError
raise PicklingError('Cannot pickle an SQLObject instance that has a per-instance connection')
+ if self.sqlmeta.lazyUpdate and self._SO_createValues:
+ self.syncUpdate()
d = self.__dict__.copy()
del d['sqlmeta']
+ del d['_SO_validatorState']
del d['_SO_writeLock']
+ del d['_SO_createValues']
return d
def __setstate__(self, d):
self.__init__(_SO_fetch_no_create=1)
+ self._SO_validatorState = sqlbuilder.SQLObjectState(self)
self._SO_writeLock = threading.Lock()
+ self._SO_createValues = {}
self.__dict__.update(d)
cls = self.__class__
cache = self._connection.cache
|
|
From: <sub...@co...> - 2013-05-18 09:37:21
|
Author: phd Date: Sat May 18 03:36:59 2013 New Revision: 4600 Log: Stable version 1.4.0 Modified: SQLObject/tags/1.4.0/README.txt SQLObject/tags/1.4.0/setup.cfg SQLObject/tags/1.4.0/sqlobject/__version__.py Modified: SQLObject/tags/1.4.0/README.txt ============================================================================== --- SQLObject/tags/1.4.0/README.txt Sat May 18 03:34:24 2013 (r4599) +++ SQLObject/tags/1.4.0/README.txt Sat May 18 03:36:59 2013 (r4600) @@ -1,5 +1,5 @@ -SQLObject 1.4 -============= +SQLObject 1.4.0 +=============== Thanks for looking at SQLObject. SQLObject is an object-relational mapper, i.e., a library that will wrap your database tables in Python Modified: SQLObject/tags/1.4.0/setup.cfg ============================================================================== --- SQLObject/tags/1.4.0/setup.cfg Sat May 18 03:34:24 2013 (r4599) +++ SQLObject/tags/1.4.0/setup.cfg Sat May 18 03:36:59 2013 (r4600) @@ -5,10 +5,6 @@ [easy_install] #find_links = http://svn.pythonpaste.org/package_index.html -[egg_info] -tag_build = dev -tag_svn_revision = true - [pudge] theme = pythonpaste.org docs = docs/index.txt docs/Authors.txt docs/DeveloperGuide.txt docs/FAQ.txt Modified: SQLObject/tags/1.4.0/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.4.0/sqlobject/__version__.py Sat May 18 03:34:24 2013 (r4599) +++ SQLObject/tags/1.4.0/sqlobject/__version__.py Sat May 18 03:36:59 2013 (r4600) @@ -1,8 +1,8 @@ -version = '1.4' +version = '1.4.0' major = 1 minor = 4 micro = 0 -release_level = 'branch' +release_level = 'final' serial = 0 version_info = (major, minor, micro, release_level, serial) |
|
From: <sub...@co...> - 2013-05-18 09:34:46
|
Author: phd
Date: Sat May 18 03:34:24 2013
New Revision: 4599
Log:
Tagging 1.4.0
Added:
SQLObject/tags/1.4.0/
- copied from r4598, SQLObject/branches/1.4/
|
|
From: <sub...@co...> - 2013-05-18 09:33:37
|
Author: phd Date: Sat May 18 03:33:29 2013 New Revision: 4598 Log: Merged revisions 4596, 4597 from branch 1.4 Added Ken Lalonde. SQLObject 1.4.0 was released at 18 May 2013. Modified: SQLObject/trunk/docs/Authors.txt SQLObject/trunk/docs/News.txt Modified: SQLObject/trunk/docs/Authors.txt ============================================================================== --- SQLObject/trunk/docs/Authors.txt Sat May 18 03:29:49 2013 (r4597) +++ SQLObject/trunk/docs/Authors.txt Sat May 18 03:33:29 2013 (r4598) @@ -26,6 +26,7 @@ * Daniel Fetchinson <fetchinson at googlemail.com> * Neil Muller <drnlmuller+sqlobject at gmail.com> * Petr Jakes <petr.jakes at tpc.cz> +* Ken Lalonde * Andrew Ziem <ahz001 at gmail.com> * Oleg Broytman <ph...@ph...> Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Sat May 18 03:29:49 2013 (r4597) +++ SQLObject/trunk/docs/News.txt Sat May 18 03:33:29 2013 (r4598) @@ -13,6 +13,8 @@ SQLObject 1.4.0 =============== +Released 18 May 2013. + Features & Interface -------------------- |
|
From: <sub...@co...> - 2013-05-18 09:29:59
|
Author: phd Date: Sat May 18 03:29:49 2013 New Revision: 4597 Log: SQLObject 1.4.0 was released at 18 May 2013 Modified: SQLObject/branches/1.4/docs/News.txt Modified: SQLObject/branches/1.4/docs/News.txt ============================================================================== --- SQLObject/branches/1.4/docs/News.txt Sat May 18 03:28:55 2013 (r4596) +++ SQLObject/branches/1.4/docs/News.txt Sat May 18 03:29:49 2013 (r4597) @@ -13,6 +13,8 @@ SQLObject 1.4.0 =============== +Released 18 May 2013. + Features & Interface -------------------- |
|
From: <sub...@co...> - 2013-05-18 09:29:04
|
Author: phd Date: Sat May 18 03:28:55 2013 New Revision: 4596 Log: Added Ken Lalonde Modified: SQLObject/branches/1.4/docs/Authors.txt Modified: SQLObject/branches/1.4/docs/Authors.txt ============================================================================== --- SQLObject/branches/1.4/docs/Authors.txt Sat May 4 10:04:58 2013 (r4595) +++ SQLObject/branches/1.4/docs/Authors.txt Sat May 18 03:28:55 2013 (r4596) @@ -26,6 +26,7 @@ * Daniel Fetchinson <fetchinson at googlemail.com> * Neil Muller <drnlmuller+sqlobject at gmail.com> * Petr Jakes <petr.jakes at tpc.cz> +* Ken Lalonde * Andrew Ziem <ahz001 at gmail.com> * Oleg Broytman <ph...@ph...> |
|
From: <sub...@co...> - 2013-05-04 16:05:06
|
Author: phd Date: Sat May 4 10:04:58 2013 New Revision: 4595 Log: Merged revision 4594 from branch 1.4: PyPI has moved to https-only Modified: SQLObject/trunk/setup.py Modified: SQLObject/trunk/setup.py ============================================================================== --- SQLObject/trunk/setup.py Sat May 4 10:03:26 2013 (r4594) +++ SQLObject/trunk/setup.py Sat May 4 10:04:58 2013 (r4595) @@ -118,7 +118,7 @@ http://news.gmane.org/gmane.comp.python.sqlobject Download: -http://pypi.python.org/pypi/SQLObject/@@ +https://pypi.python.org/pypi/SQLObject/@@ News and changes: http://sqlobject.org/docs/News.html |
|
From: <sub...@co...> - 2013-05-04 16:03:35
|
Author: phd Date: Sat May 4 10:03:26 2013 New Revision: 4594 Log: PyPI has moved to https-only Modified: SQLObject/branches/1.4/setup.py Modified: SQLObject/branches/1.4/setup.py ============================================================================== --- SQLObject/branches/1.4/setup.py Sat May 4 09:38:48 2013 (r4593) +++ SQLObject/branches/1.4/setup.py Sat May 4 10:03:26 2013 (r4594) @@ -118,7 +118,7 @@ http://news.gmane.org/gmane.comp.python.sqlobject Download: -http://pypi.python.org/pypi/SQLObject/@@ +https://pypi.python.org/pypi/SQLObject/@@ News and changes: http://sqlobject.org/docs/News.html |
|
From: <sub...@co...> - 2013-05-04 15:38:56
|
Author: phd
Date: Sat May 4 09:38:48 2013
New Revision: 4593
Log:
Preparing release 1.4.0 beta1
Modified:
SQLObject/tags/1.4.0b1/README.txt
SQLObject/tags/1.4.0b1/setup.py
SQLObject/tags/1.4.0b1/sqlobject/__version__.py
Modified: SQLObject/tags/1.4.0b1/README.txt
==============================================================================
--- SQLObject/tags/1.4.0b1/README.txt Sat May 4 09:33:16 2013 (r4592)
+++ SQLObject/tags/1.4.0b1/README.txt Sat May 4 09:38:48 2013 (r4593)
@@ -1,5 +1,5 @@
-SQLObject 1.4
-=============
+SQLObject 1.4.0b1
+=================
Thanks for looking at SQLObject. SQLObject is an object-relational
mapper, i.e., a library that will wrap your database tables in Python
Modified: SQLObject/tags/1.4.0b1/setup.py
==============================================================================
--- SQLObject/tags/1.4.0b1/setup.py Sat May 4 09:33:16 2013 (r4592)
+++ SQLObject/tags/1.4.0b1/setup.py Sat May 4 09:38:48 2013 (r4593)
@@ -56,7 +56,7 @@
author="Ian Bicking",
author_email="ia...@co...",
url="http://sqlobject.org/",
- download_url="http://pypi.python.org/pypi/SQLObject/%s" % version,
+ download_url="http://pypi.python.org/pypi/SQLObject/1.4.0b1dev-r4593",
license="LGPL",
packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages],
scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"],
Modified: SQLObject/tags/1.4.0b1/sqlobject/__version__.py
==============================================================================
--- SQLObject/tags/1.4.0b1/sqlobject/__version__.py Sat May 4 09:33:16 2013 (r4592)
+++ SQLObject/tags/1.4.0b1/sqlobject/__version__.py Sat May 4 09:38:48 2013 (r4593)
@@ -1,8 +1,8 @@
-version = '1.4'
+version = '1.4.0b1'
major = 1
minor = 4
micro = 0
-release_level = 'branch'
-serial = 0
+release_level = 'beta'
+serial = 1
version_info = (major, minor, micro, release_level, serial)
|
|
From: <sub...@co...> - 2013-05-04 15:33:23
|
Author: phd
Date: Sat May 4 09:33:16 2013
New Revision: 4592
Log:
Tagging 1.4.0b1
Added:
SQLObject/tags/1.4.0b1/
- copied from r4591, SQLObject/branches/1.4/
|
|
From: <sub...@co...> - 2013-05-04 15:29:12
|
Author: phd Date: Sat May 4 09:29:04 2013 New Revision: 4591 Log: Merged revision 4590 from branch 1.4: changed email template -- moved "What's new" to the top Modified: SQLObject/trunk/setup.py Modified: SQLObject/trunk/setup.py ============================================================================== --- SQLObject/trunk/setup.py Sat May 4 09:26:57 2013 (r4590) +++ SQLObject/trunk/setup.py Sat May 4 09:29:04 2013 (r4591) @@ -83,6 +83,16 @@ """ @@ INTRO + +What's new in SQLObject +======================= + +@@ CHANGES + +For a more complete list, please see the news: +http://sqlobject.org/docs/News.html + + What is SQLObject ================= @@ -94,6 +104,7 @@ through the `psycopg` package, SQLite, Firebird, MaxDB (SAP DB), MS SQL Sybase and Rdbhost. It should support Python versions back to 2.4. + Where is SQLObject ================== @@ -112,15 +123,6 @@ News and changes: http://sqlobject.org/docs/News.html - -What's New -========== - -@@ CHANGES - -For a more complete list, please see the news: -http://sqlobject.org/docs/News.html - -- Ian Bicking / ia...@co... / http://blog.ianbicking.org """ |
|
From: <sub...@co...> - 2013-05-04 15:27:08
|
Author: phd Date: Sat May 4 09:26:57 2013 New Revision: 4590 Log: Changed email template -- moved "What's new" to the top Modified: SQLObject/branches/1.4/setup.py Modified: SQLObject/branches/1.4/setup.py ============================================================================== --- SQLObject/branches/1.4/setup.py Fri May 3 08:01:49 2013 (r4589) +++ SQLObject/branches/1.4/setup.py Sat May 4 09:26:57 2013 (r4590) @@ -83,6 +83,16 @@ """ @@ INTRO + +What's new in SQLObject +======================= + +@@ CHANGES + +For a more complete list, please see the news: +http://sqlobject.org/docs/News.html + + What is SQLObject ================= @@ -94,6 +104,7 @@ through the `psycopg` package, SQLite, Firebird, MaxDB (SAP DB), MS SQL Sybase and Rdbhost. It should support Python versions back to 2.4. + Where is SQLObject ================== @@ -112,15 +123,6 @@ News and changes: http://sqlobject.org/docs/News.html - -What's New -========== - -@@ CHANGES - -For a more complete list, please see the news: -http://sqlobject.org/docs/News.html - -- Ian Bicking / ia...@co... / http://blog.ianbicking.org """ |