sqlobject-cvs Mailing List for SQLObject (Page 26)
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
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <sub...@co...> - 2013-08-12 14:23:02
|
Author: phd Date: Mon Aug 12 08:22:56 2013 New Revision: 4634 Log: Merged revision 4633 from branch 1.5: another fix for tests Modified: SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py Modified: SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py ============================================================================== --- SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py Mon Aug 12 08:21:07 2013 (r4633) +++ SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py Mon Aug 12 08:22:56 2013 (r4634) @@ -13,26 +13,26 @@ class ManagerAD(InheritablePersonAD): department = StringCol() -class Employee(InheritablePersonAD): +class EmployeeAD(InheritablePersonAD): _inheritable = False position = StringCol() def test_getColumns(): - setupClass([InheritablePersonAD, ManagerAD, Employee]) + setupClass([InheritablePersonAD, ManagerAD, EmployeeAD]) for klass, columns in ( (InheritablePersonAD, ['firstName', 'lastName']), (ManagerAD, ['department', 'firstName', 'lastName']), - (Employee, ['firstName', 'lastName', 'position'])): + (EmployeeAD, ['firstName', 'lastName', 'position'])): _columns = klass.sqlmeta.getColumns().keys() _columns.sort() assert _columns == columns def test_asDict(): - setupClass([InheritablePersonAD, ManagerAD, Employee]) + setupClass([InheritablePersonAD, ManagerAD, EmployeeAD]) InheritablePersonAD(firstName='Oneof', lastName='Authors') ManagerAD(firstName='ManagerAD', lastName='The', department='Dep') - Employee(firstName='Project', lastName='Leader', position='Project leader') + EmployeeAD(firstName='Project', lastName='Leader', position='Project leader') assert InheritablePersonAD.get(1).sqlmeta.asDict() == \ dict(firstName='Oneof', lastName='Authors', id=1) |
From: <sub...@co...> - 2013-08-12 14:21:18
|
Author: phd Date: Mon Aug 12 08:21:07 2013 New Revision: 4633 Log: Another fix for tests Modified: SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Modified: SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Sun Aug 11 14:06:09 2013 (r4632) +++ SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Mon Aug 12 08:21:07 2013 (r4633) @@ -13,26 +13,26 @@ class ManagerAD(InheritablePersonAD): department = StringCol() -class Employee(InheritablePersonAD): +class EmployeeAD(InheritablePersonAD): _inheritable = False position = StringCol() def test_getColumns(): - setupClass([InheritablePersonAD, ManagerAD, Employee]) + setupClass([InheritablePersonAD, ManagerAD, EmployeeAD]) for klass, columns in ( (InheritablePersonAD, ['firstName', 'lastName']), (ManagerAD, ['department', 'firstName', 'lastName']), - (Employee, ['firstName', 'lastName', 'position'])): + (EmployeeAD, ['firstName', 'lastName', 'position'])): _columns = klass.sqlmeta.getColumns().keys() _columns.sort() assert _columns == columns def test_asDict(): - setupClass([InheritablePersonAD, ManagerAD, Employee]) + setupClass([InheritablePersonAD, ManagerAD, EmployeeAD]) InheritablePersonAD(firstName='Oneof', lastName='Authors') ManagerAD(firstName='ManagerAD', lastName='The', department='Dep') - Employee(firstName='Project', lastName='Leader', position='Project leader') + EmployeeAD(firstName='Project', lastName='Leader', position='Project leader') assert InheritablePersonAD.get(1).sqlmeta.asDict() == \ dict(firstName='Oneof', lastName='Authors', id=1) |
From: <sub...@co...> - 2013-08-11 20:06:15
|
Author: phd Date: Sun Aug 11 14:06:09 2013 New Revision: 4632 Log: Merged revision 4631 from branch 1.5: fixed links; removed dead links Modified: SQLObject/trunk/docs/DeveloperGuide.txt SQLObject/trunk/docs/community.txt Modified: SQLObject/trunk/docs/DeveloperGuide.txt ============================================================================== --- SQLObject/trunk/docs/DeveloperGuide.txt Sun Aug 11 14:04:34 2013 (r4631) +++ SQLObject/trunk/docs/DeveloperGuide.txt Sun Aug 11 14:06:09 2013 (r4632) @@ -8,9 +8,7 @@ .. _start: These are some notes on developing SQLObject. I'll try to expand them -as things come up. If you are committing to the SQLObject repository, -please also read ``/using-this-repository.txt``, which is just about -file layout and repository cooperation. +as things come up. -- Ian Bicking Modified: SQLObject/trunk/docs/community.txt ============================================================================== --- SQLObject/trunk/docs/community.txt Sun Aug 11 14:04:34 2013 (r4631) +++ SQLObject/trunk/docs/community.txt Sun Aug 11 14:06:09 2013 (r4632) @@ -16,13 +16,13 @@ <http://sourceforge.net/tracker/?group_id=74338&atid=540674>`_. Development takes place in the `subversion repository -<repository.html>`_. There are `development docs`_. If you are +<download.html#repository>`_. There are `development docs`_. If you are interested in contributing you should read the `Developer Guide -<docs/DeveloperGuide.html>`_. +<DeveloperGuide.html>`_. .. _`development docs`: /devel/ -The `Author List <docs/Authors.html>`_ tries to list all the major +The `Author List <Authors.html>`_ tries to list all the major contributors. One can also contribute to `community-editable recipe/documentation site |
From: <sub...@co...> - 2013-08-11 20:04:40
|
Author: phd Date: Sun Aug 11 14:04:34 2013 New Revision: 4631 Log: Fixed links; removed dead links Modified: SQLObject/branches/1.5/docs/DeveloperGuide.txt SQLObject/branches/1.5/docs/community.txt Modified: SQLObject/branches/1.5/docs/DeveloperGuide.txt ============================================================================== --- SQLObject/branches/1.5/docs/DeveloperGuide.txt Sun Aug 11 11:13:47 2013 (r4630) +++ SQLObject/branches/1.5/docs/DeveloperGuide.txt Sun Aug 11 14:04:34 2013 (r4631) @@ -8,9 +8,7 @@ .. _start: These are some notes on developing SQLObject. I'll try to expand them -as things come up. If you are committing to the SQLObject repository, -please also read ``/using-this-repository.txt``, which is just about -file layout and repository cooperation. +as things come up. -- Ian Bicking Modified: SQLObject/branches/1.5/docs/community.txt ============================================================================== --- SQLObject/branches/1.5/docs/community.txt Sun Aug 11 11:13:47 2013 (r4630) +++ SQLObject/branches/1.5/docs/community.txt Sun Aug 11 14:04:34 2013 (r4631) @@ -16,13 +16,13 @@ <http://sourceforge.net/tracker/?group_id=74338&atid=540674>`_. Development takes place in the `subversion repository -<repository.html>`_. There are `development docs`_. If you are +<download.html#repository>`_. There are `development docs`_. If you are interested in contributing you should read the `Developer Guide -<docs/DeveloperGuide.html>`_. +<DeveloperGuide.html>`_. .. _`development docs`: /devel/ -The `Author List <docs/Authors.html>`_ tries to list all the major +The `Author List <Authors.html>`_ tries to list all the major contributors. One can also contribute to `community-editable recipe/documentation site |
From: <sub...@co...> - 2013-08-11 17:13:53
|
Author: phd Date: Sun Aug 11 11:13:47 2013 New Revision: 4630 Log: Merged revisions 4628, 4629 from branch 1.5: a number of fixes for tests Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py SQLObject/trunk/sqlobject/tests/test_basic.py SQLObject/trunk/sqlobject/tests/test_sqlobject_admin.py SQLObject/trunk/sqlobject/tests/test_transactions.py Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Sun Aug 11 11:10:32 2013 (r4629) +++ SQLObject/trunk/docs/News.txt Sun Aug 11 11:13:47 2013 (r4630) @@ -19,6 +19,11 @@ * Helpers for class Outer were changed to lookup columns in table's declarations. +Minor features +-------------- + +* A number of fixes for tests. + Bugfixes -------- Modified: SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py ============================================================================== --- SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py Sun Aug 11 11:10:32 2013 (r4629) +++ SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py Sun Aug 11 11:13:47 2013 (r4630) @@ -6,37 +6,37 @@ ## sqlmeta.asDict ######################################## -class InheritablePerson(InheritableSQLObject): - first = StringCol() - last = StringCol(alternateID=True, length=255) +class InheritablePersonAD(InheritableSQLObject): + firstName = StringCol() + lastName = StringCol(alternateID=True, length=255) -class Boss(InheritablePerson): +class ManagerAD(InheritablePersonAD): department = StringCol() -class Employee(InheritablePerson): +class Employee(InheritablePersonAD): _inheritable = False position = StringCol() def test_getColumns(): - setupClass([InheritablePerson, Boss, Employee]) + setupClass([InheritablePersonAD, ManagerAD, Employee]) for klass, columns in ( - (InheritablePerson, ['first', 'last']), - (Boss, ['department', 'first', 'last']), - (Employee, ['first', 'last', 'position'])): + (InheritablePersonAD, ['firstName', 'lastName']), + (ManagerAD, ['department', 'firstName', 'lastName']), + (Employee, ['firstName', 'lastName', 'position'])): _columns = klass.sqlmeta.getColumns().keys() _columns.sort() assert _columns == columns def test_asDict(): - setupClass([InheritablePerson, Boss, Employee]) - InheritablePerson(first='Oneof', last='Authors') - Boss(first='Boss', last='The', department='Dep') - Employee(first='Project', last='Leader', position='Project leader') - - assert InheritablePerson.get(1).sqlmeta.asDict() == \ - dict(first='Oneof', last='Authors', id=1) - assert InheritablePerson.get(2).sqlmeta.asDict() == \ - dict(first='Boss', last='The', department='Dep', id=2) - assert InheritablePerson.get(3).sqlmeta.asDict() == \ - dict(first='Project', last='Leader', position='Project leader', id=3) + setupClass([InheritablePersonAD, ManagerAD, Employee]) + InheritablePersonAD(firstName='Oneof', lastName='Authors') + ManagerAD(firstName='ManagerAD', lastName='The', department='Dep') + Employee(firstName='Project', lastName='Leader', position='Project leader') + + assert InheritablePersonAD.get(1).sqlmeta.asDict() == \ + dict(firstName='Oneof', lastName='Authors', id=1) + assert InheritablePersonAD.get(2).sqlmeta.asDict() == \ + dict(firstName='ManagerAD', lastName='The', department='Dep', id=2) + assert InheritablePersonAD.get(3).sqlmeta.asDict() == \ + dict(firstName='Project', lastName='Leader', position='Project leader', id=3) Modified: SQLObject/trunk/sqlobject/tests/test_basic.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_basic.py Sun Aug 11 11:10:32 2013 (r4629) +++ SQLObject/trunk/sqlobject/tests/test_basic.py Sun Aug 11 11:13:47 2013 (r4630) @@ -305,3 +305,4 @@ class TestSO13(SQLObject): _connection = connectionForURI('sqlite:///db2') assert TestSO13._connection.uri() == 'sqlite:///db2' + del sqlhub.processConnection Modified: SQLObject/trunk/sqlobject/tests/test_sqlobject_admin.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_sqlobject_admin.py Sun Aug 11 11:10:32 2013 (r4629) +++ SQLObject/trunk/sqlobject/tests/test_sqlobject_admin.py Sun Aug 11 11:13:47 2013 (r4630) @@ -4,8 +4,6 @@ from sqlobject import * -sqlhub.processConnection = connectionForURI('postgres://pgsql@/db_test') - class Test1(SQLObject): class sqlmeta: createSQL = "CREATE SEQUENCE db_test1_seq;" Modified: SQLObject/trunk/sqlobject/tests/test_transactions.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_transactions.py Sun Aug 11 11:10:32 2013 (r4629) +++ SQLObject/trunk/sqlobject/tests/test_transactions.py Sun Aug 11 11:13:47 2013 (r4630) @@ -56,7 +56,10 @@ if not supports('transactions'): return setupClass(TestSOTrans) - trans = TestSOTrans._connection.transaction() + connection = TestSOTrans._connection + if (connection.dbName == 'sqlite') and connection._memory: + return # The following test requires a different connection + trans = connection.transaction() try: TestSOTrans(name='bob') bIn = TestSOTrans.byName('bob', connection=trans) @@ -71,7 +74,7 @@ raises(SQLObjectNotFound, "bOutInst.name") finally: trans.rollback() - TestSOTrans._connection.autoCommit = True + connection.autoCommit = True def test_transaction_delete_with_close(): test_transaction_delete(close=True) |
From: <sub...@co...> - 2013-08-11 17:10:38
|
Author: phd Date: Sun Aug 11 11:10:32 2013 New Revision: 4629 Log: Updated News Modified: SQLObject/branches/1.5/docs/News.txt Modified: SQLObject/branches/1.5/docs/News.txt ============================================================================== --- SQLObject/branches/1.5/docs/News.txt Sun Aug 11 11:06:04 2013 (r4628) +++ SQLObject/branches/1.5/docs/News.txt Sun Aug 11 11:10:32 2013 (r4629) @@ -16,6 +16,11 @@ * Helpers for class Outer were changed to lookup columns in table's declarations. +Minor features +-------------- + +* A number of fixes for tests. + Bugfixes -------- |
From: <sub...@co...> - 2013-08-11 17:06:12
|
Author: phd Date: Sun Aug 11 11:06:04 2013 New Revision: 4628 Log: A number of fixes for tests inspired by Neil Muller sqlobject/tests/test_basic.py - add a cleanup to test_connection_override; without this, the tests in versioning will fail if they are run after test_basic. sqlobject/tests/test_sqlobject_admin.py - do not create a special connection, use whatever is provided by test system. sqlobject/tests/test_transactions.py - skip some transaction tests if the sqlite memory database is being used, since they will fail in this case because of how the memory database connections are shared. sqlobject/inheritance/tests/test_asdict.py - avoid a problem with both inheritance/tests/test_asdict.py and inheritance/tests/test_inheritance.py using the same classes, which cases problems when running all the tests together; rename the classes. Modified: SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py SQLObject/branches/1.5/sqlobject/tests/test_basic.py SQLObject/branches/1.5/sqlobject/tests/test_sqlobject_admin.py SQLObject/branches/1.5/sqlobject/tests/test_transactions.py Modified: SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Fri Jul 26 04:16:35 2013 (r4627) +++ SQLObject/branches/1.5/sqlobject/inheritance/tests/test_asdict.py Sun Aug 11 11:06:04 2013 (r4628) @@ -6,37 +6,37 @@ ## sqlmeta.asDict ######################################## -class InheritablePerson(InheritableSQLObject): - first = StringCol() - last = StringCol(alternateID=True, length=255) +class InheritablePersonAD(InheritableSQLObject): + firstName = StringCol() + lastName = StringCol(alternateID=True, length=255) -class Boss(InheritablePerson): +class ManagerAD(InheritablePersonAD): department = StringCol() -class Employee(InheritablePerson): +class Employee(InheritablePersonAD): _inheritable = False position = StringCol() def test_getColumns(): - setupClass([InheritablePerson, Boss, Employee]) + setupClass([InheritablePersonAD, ManagerAD, Employee]) for klass, columns in ( - (InheritablePerson, ['first', 'last']), - (Boss, ['department', 'first', 'last']), - (Employee, ['first', 'last', 'position'])): + (InheritablePersonAD, ['firstName', 'lastName']), + (ManagerAD, ['department', 'firstName', 'lastName']), + (Employee, ['firstName', 'lastName', 'position'])): _columns = klass.sqlmeta.getColumns().keys() _columns.sort() assert _columns == columns def test_asDict(): - setupClass([InheritablePerson, Boss, Employee]) - InheritablePerson(first='Oneof', last='Authors') - Boss(first='Boss', last='The', department='Dep') - Employee(first='Project', last='Leader', position='Project leader') - - assert InheritablePerson.get(1).sqlmeta.asDict() == \ - dict(first='Oneof', last='Authors', id=1) - assert InheritablePerson.get(2).sqlmeta.asDict() == \ - dict(first='Boss', last='The', department='Dep', id=2) - assert InheritablePerson.get(3).sqlmeta.asDict() == \ - dict(first='Project', last='Leader', position='Project leader', id=3) + setupClass([InheritablePersonAD, ManagerAD, Employee]) + InheritablePersonAD(firstName='Oneof', lastName='Authors') + ManagerAD(firstName='ManagerAD', lastName='The', department='Dep') + Employee(firstName='Project', lastName='Leader', position='Project leader') + + assert InheritablePersonAD.get(1).sqlmeta.asDict() == \ + dict(firstName='Oneof', lastName='Authors', id=1) + assert InheritablePersonAD.get(2).sqlmeta.asDict() == \ + dict(firstName='ManagerAD', lastName='The', department='Dep', id=2) + assert InheritablePersonAD.get(3).sqlmeta.asDict() == \ + dict(firstName='Project', lastName='Leader', position='Project leader', id=3) Modified: SQLObject/branches/1.5/sqlobject/tests/test_basic.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/tests/test_basic.py Fri Jul 26 04:16:35 2013 (r4627) +++ SQLObject/branches/1.5/sqlobject/tests/test_basic.py Sun Aug 11 11:06:04 2013 (r4628) @@ -305,3 +305,4 @@ class TestSO13(SQLObject): _connection = connectionForURI('sqlite:///db2') assert TestSO13._connection.uri() == 'sqlite:///db2' + del sqlhub.processConnection Modified: SQLObject/branches/1.5/sqlobject/tests/test_sqlobject_admin.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/tests/test_sqlobject_admin.py Fri Jul 26 04:16:35 2013 (r4627) +++ SQLObject/branches/1.5/sqlobject/tests/test_sqlobject_admin.py Sun Aug 11 11:06:04 2013 (r4628) @@ -4,8 +4,6 @@ from sqlobject import * -sqlhub.processConnection = connectionForURI('postgres://pgsql@/db_test') - class Test1(SQLObject): class sqlmeta: createSQL = "CREATE SEQUENCE db_test1_seq;" Modified: SQLObject/branches/1.5/sqlobject/tests/test_transactions.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/tests/test_transactions.py Fri Jul 26 04:16:35 2013 (r4627) +++ SQLObject/branches/1.5/sqlobject/tests/test_transactions.py Sun Aug 11 11:06:04 2013 (r4628) @@ -56,7 +56,10 @@ if not supports('transactions'): return setupClass(TestSOTrans) - trans = TestSOTrans._connection.transaction() + connection = TestSOTrans._connection + if (connection.dbName == 'sqlite') and connection._memory: + return # The following test requires a different connection + trans = connection.transaction() try: TestSOTrans(name='bob') bIn = TestSOTrans.byName('bob', connection=trans) @@ -71,7 +74,7 @@ raises(SQLObjectNotFound, "bOutInst.name") finally: trans.rollback() - TestSOTrans._connection.autoCommit = True + connection.autoCommit = True def test_transaction_delete_with_close(): test_transaction_delete(close=True) |
From: <sub...@co...> - 2013-07-26 10:16:45
|
Author: phd Date: Fri Jul 26 04:16:35 2013 New Revision: 4627 Log: It's a branch, not the trunk Modified: SQLObject/branches/1.3/sqlobject/__version__.py Modified: SQLObject/branches/1.3/sqlobject/__version__.py ============================================================================== --- SQLObject/branches/1.3/sqlobject/__version__.py Sat Jul 20 11:02:02 2013 (r4626) +++ SQLObject/branches/1.3/sqlobject/__version__.py Fri Jul 26 04:16:35 2013 (r4627) @@ -3,6 +3,6 @@ major = 1 minor = 3 micro = 0 -release_level = 'trunk' +release_level = 'branch' serial = 0 version_info = (major, minor, micro, release_level, serial) |
From: <sub...@co...> - 2013-07-20 17:02:09
|
Author: phd Date: Sat Jul 20 11:02:02 2013 New Revision: 4626 Log: PyPI has switched to https Modified: SQLObject/trunk/setup.py Modified: SQLObject/trunk/setup.py ============================================================================== --- SQLObject/trunk/setup.py Sat Jul 20 11:01:38 2013 (r4625) +++ SQLObject/trunk/setup.py Sat Jul 20 11:02:02 2013 (r4626) @@ -56,7 +56,7 @@ author="Ian Bicking", author_email="ia...@co...", url="http://sqlobject.org/devel/", - download_url="http://pypi.python.org/pypi/SQLObject/%s" % version, + download_url="https://pypi.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], |
From: <sub...@co...> - 2013-07-20 17:01:45
|
Author: phd Date: Sat Jul 20 11:01:38 2013 New Revision: 4625 Log: PyPI has switched to https Modified: SQLObject/branches/1.5/setup.py Modified: SQLObject/branches/1.5/setup.py ============================================================================== --- SQLObject/branches/1.5/setup.py Sat Jul 20 11:01:05 2013 (r4624) +++ SQLObject/branches/1.5/setup.py Sat Jul 20 11:01:38 2013 (r4625) @@ -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="https://pypi.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], |
From: <sub...@co...> - 2013-07-20 17:01:11
|
Author: phd Date: Sat Jul 20 11:01:05 2013 New Revision: 4624 Log: PyPI has switched to https Modified: SQLObject/branches/1.4/setup.py Modified: SQLObject/branches/1.4/setup.py ============================================================================== --- SQLObject/branches/1.4/setup.py Sat Jul 20 11:00:25 2013 (r4623) +++ SQLObject/branches/1.4/setup.py Sat Jul 20 11:01:05 2013 (r4624) @@ -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="https://pypi.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], |
From: <sub...@co...> - 2013-07-20 17:00:32
|
Author: phd Date: Sat Jul 20 11:00:25 2013 New Revision: 4623 Log: PyPI has switched to https Modified: SQLObject/branches/1.3/setup.py Modified: SQLObject/branches/1.3/setup.py ============================================================================== --- SQLObject/branches/1.3/setup.py Sat Jul 20 10:45:43 2013 (r4622) +++ SQLObject/branches/1.3/setup.py Sat Jul 20 11:00:25 2013 (r4623) @@ -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="https://pypi.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], @@ -107,7 +107,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-07-20 16:46:04
|
Author: phd Date: Sat Jul 20 10:45:43 2013 New Revision: 4622 Log: Fixed bugs in version Modified: SQLObject/tags/1.5.0b1/setup.py SQLObject/tags/1.5.0b1/sqlobject/__version__.py Modified: SQLObject/tags/1.5.0b1/setup.py ============================================================================== --- SQLObject/tags/1.5.0b1/setup.py Sat Jul 20 10:36:18 2013 (r4621) +++ SQLObject/tags/1.5.0b1/setup.py Sat Jul 20 10:45:43 2013 (r4622) @@ -56,7 +56,7 @@ author="Ian Bicking", author_email="ia...@co...", url="http://sqlobject.org/", - download_url="http://pypi.python.org/pypi/SQLObject/1.5.0b1dev-r4621", + download_url="http://pypi.python.org/pypi/SQLObject/1.5.0b1dev-r4622", license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], Modified: SQLObject/tags/1.5.0b1/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.5.0b1/sqlobject/__version__.py Sat Jul 20 10:36:18 2013 (r4621) +++ SQLObject/tags/1.5.0b1/sqlobject/__version__.py Sat Jul 20 10:45:43 2013 (r4622) @@ -2,7 +2,7 @@ version = '1.5.0b1' major = 1 minor = 5 -micro = 0b1 +micro = 0 release_level = 'beta' -serial = 0 +serial = 1 version_info = (major, minor, micro, release_level, serial) |
From: <sub...@co...> - 2013-07-20 16:36:28
|
Author: phd Date: Sat Jul 20 10:36:18 2013 New Revision: 4621 Log: SQLObject 1.5.0b1 Modified: SQLObject/tags/1.5.0b1/README.txt SQLObject/tags/1.5.0b1/setup.py SQLObject/tags/1.5.0b1/sqlobject/__version__.py Modified: SQLObject/tags/1.5.0b1/README.txt ============================================================================== --- SQLObject/tags/1.5.0b1/README.txt Sat Jul 20 10:33:21 2013 (r4620) +++ SQLObject/tags/1.5.0b1/README.txt Sat Jul 20 10:36:18 2013 (r4621) @@ -1,5 +1,5 @@ -SQLObject 1.5 -============= +SQLObject 1.5.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.5.0b1/setup.py ============================================================================== --- SQLObject/tags/1.5.0b1/setup.py Sat Jul 20 10:33:21 2013 (r4620) +++ SQLObject/tags/1.5.0b1/setup.py Sat Jul 20 10:36:18 2013 (r4621) @@ -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.5.0b1dev-r4621", license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], Modified: SQLObject/tags/1.5.0b1/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.5.0b1/sqlobject/__version__.py Sat Jul 20 10:33:21 2013 (r4620) +++ SQLObject/tags/1.5.0b1/sqlobject/__version__.py Sat Jul 20 10:36:18 2013 (r4621) @@ -1,8 +1,8 @@ -version = '1.5' +version = '1.5.0b1' major = 1 minor = 5 -micro = 0 -release_level = 'branch' +micro = 0b1 +release_level = 'beta' serial = 0 version_info = (major, minor, micro, release_level, serial) |
From: <sub...@co...> - 2013-07-20 16:33:29
|
Author: phd Date: Sat Jul 20 10:33:21 2013 New Revision: 4620 Log: Tagging 1.5.0b1 Added: SQLObject/tags/1.5.0b1/ - copied from r4619, SQLObject/branches/1.5/ |
From: <sub...@co...> - 2013-07-20 14:51:54
|
Author: phd Date: Sat Jul 20 08:51:48 2013 New Revision: 4619 Log: Next branch will be 1.6 Modified: SQLObject/trunk/README.txt SQLObject/trunk/sqlobject/__version__.py Modified: SQLObject/trunk/README.txt ============================================================================== --- SQLObject/trunk/README.txt Sat Jul 20 08:50:50 2013 (r4618) +++ SQLObject/trunk/README.txt Sat Jul 20 08:51:48 2013 (r4619) @@ -1,4 +1,4 @@ -SQLObject 1.5 +SQLObject 1.6 ============= Thanks for looking at SQLObject. SQLObject is an object-relational Modified: SQLObject/trunk/sqlobject/__version__.py ============================================================================== --- SQLObject/trunk/sqlobject/__version__.py Sat Jul 20 08:50:50 2013 (r4618) +++ SQLObject/trunk/sqlobject/__version__.py Sat Jul 20 08:51:48 2013 (r4619) @@ -1,7 +1,7 @@ -version = '1.5' +version = '1.6' major = 1 -minor = 5 +minor = 6 micro = 0 release_level = 'trunk' serial = 0 |
From: <sub...@co...> - 2013-07-20 14:50:57
|
Author: phd Date: Sat Jul 20 08:50:50 2013 New Revision: 4618 Log: Branch 1.5 Modified: SQLObject/branches/1.5/docs/News.txt SQLObject/branches/1.5/setup.py SQLObject/branches/1.5/sqlobject/__version__.py Modified: SQLObject/branches/1.5/docs/News.txt ============================================================================== --- SQLObject/branches/1.5/docs/News.txt Sat Jul 20 08:48:01 2013 (r4617) +++ SQLObject/branches/1.5/docs/News.txt Sat Jul 20 08:50:50 2013 (r4618) @@ -7,9 +7,6 @@ .. _start: -SQLObject (trunk) -================= - SQLObject 1.5.0 =============== Modified: SQLObject/branches/1.5/setup.py ============================================================================== --- SQLObject/branches/1.5/setup.py Sat Jul 20 08:48:01 2013 (r4617) +++ SQLObject/branches/1.5/setup.py Sat Jul 20 08:50:50 2013 (r4618) @@ -55,7 +55,7 @@ ], author="Ian Bicking", author_email="ia...@co...", - url="http://sqlobject.org/devel/", + url="http://sqlobject.org/", download_url="http://pypi.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], Modified: SQLObject/branches/1.5/sqlobject/__version__.py ============================================================================== --- SQLObject/branches/1.5/sqlobject/__version__.py Sat Jul 20 08:48:01 2013 (r4617) +++ SQLObject/branches/1.5/sqlobject/__version__.py Sat Jul 20 08:50:50 2013 (r4618) @@ -3,6 +3,6 @@ major = 1 minor = 5 micro = 0 -release_level = 'trunk' +release_level = 'branch' serial = 0 version_info = (major, minor, micro, release_level, serial) |
From: <sub...@co...> - 2013-07-20 14:48:08
|
Author: phd Date: Sat Jul 20 08:48:01 2013 New Revision: 4617 Log: Branch 1.5 Added: SQLObject/branches/1.5/ - copied from r4616, SQLObject/trunk/ |
From: <sub...@co...> - 2013-07-20 14:46:27
|
Author: phd Date: Sat Jul 20 08:46:17 2013 New Revision: 4616 Log: Going to create a branch for SQLObject 1.5 Modified: SQLObject/trunk/docs/News.txt Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Fri Jul 19 11:49:04 2013 (r4615) +++ SQLObject/trunk/docs/News.txt Sat Jul 20 08:46:17 2013 (r4616) @@ -10,6 +10,9 @@ SQLObject (trunk) ================= +SQLObject 1.5.0 +=============== + Features & Interface -------------------- |
From: <sub...@co...> - 2013-07-19 17:49:15
|
Author: phd Date: Fri Jul 19 11:49:04 2013 New Revision: 4615 Log: Pure Python Mysql Interface Modified: SQLObject/trunk/docs/TODO.txt Modified: SQLObject/trunk/docs/TODO.txt ============================================================================== --- SQLObject/trunk/docs/TODO.txt Thu Jul 11 07:36:02 2013 (r4614) +++ SQLObject/trunk/docs/TODO.txt Fri Jul 19 11:49:04 2013 (r4615) @@ -90,6 +90,8 @@ * MySQL Connector/Python: https://launchpad.net/myconnpy +* Pure Python Mysql Interface: https://github.com/nasi/MyPy + * pg8000 driver: http://code.google.com/p/pg8000/ * py-postgresql driver: http://python.projects.postgresql.org/ |
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/ |