sqlobject-cvs Mailing List for SQLObject (Page 37)
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...> - 2011-07-01 14:54:28
|
Author: phd Date: Fri Jul 1 08:54:21 2011 New Revision: 4420 Log: Releasing 1.1.1. Modified: SQLObject/branches/1.1/docs/News.txt Modified: SQLObject/branches/1.1/docs/News.txt ============================================================================== --- SQLObject/branches/1.1/docs/News.txt Fri Jul 1 08:52:41 2011 (r4419) +++ SQLObject/branches/1.1/docs/News.txt Fri Jul 1 08:54:21 2011 (r4420) @@ -10,6 +10,8 @@ SQLObject 1.1.1 =============== +Released 1 Jul 2011. + * Parsing sqlobject.__doc__ for version number is declared obsolete. Use sqlobject.version or version_info. |
From: <sub...@co...> - 2011-07-01 14:52:51
|
Author: phd Date: Fri Jul 1 08:52:41 2011 New Revision: 4419 Log: Merged revision 4418 from branch 1.1. Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/docs/SQLObject.txt Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Thu Jun 23 12:35:52 2011 (r4418) +++ SQLObject/trunk/docs/News.txt Fri Jul 1 08:52:41 2011 (r4419) @@ -13,6 +13,14 @@ Features & Interface -------------------- +SQLObject 1.1.1 +=============== + +* Parsing sqlobject.__doc__ for version number is declared obsolete. Use + sqlobject.version or version_info. + +* Documented sqlmeta.dbEncoding and connection.dbEncoding. + SQLObject 1.1 ============= Modified: SQLObject/trunk/docs/SQLObject.txt ============================================================================== --- SQLObject/trunk/docs/SQLObject.txt Thu Jun 23 12:35:52 2011 (r4418) +++ SQLObject/trunk/docs/SQLObject.txt Fri Jul 1 08:52:41 2011 (r4419) @@ -755,6 +755,14 @@ database will be queried for the table's columns, and any missing columns (possible all columns) will be added automatically. +`dbEncoding`: + UnicodeCol_ looks up `sqlmeta.dbEncoding` if `column.dbEncoding` is + ``None`` (if `sqlmeta.dbEncoding` is ``None`` UnicodeCol_ looks up + `connection.dbEncoding` and if `dbEncoding` isn't defined anywhere it + defaults to ``"utf-8"``). + +.. _UnicodeCol: `Column Types`_ + The following attributes provide introspection but should not be set or directly - see `Runtime Column and Join Changes`_ for dynamically modifying these class elements. @@ -1194,10 +1202,12 @@ ``VARCHAR``. `UnicodeCol`: - A subclass of `StringCol`. Also accepts a dbEncoding keyword - argument, which defaults to ``"UTF-8"``. Values coming in and - out from the database will be encoded and decoded. **Note**: - there are some limitations on using UnicodeCol in queries: + A subclass of `StringCol`. Also accepts a `dbEncoding` keyword + argument, it defaults to ``None`` which means to lookup `dbEncoding` + in sqlmeta_ and connection, and if `dbEncoding` isn't defined + anywhere it defaults to ``"utf-8"``. Values coming in and out from + the database will be encoded and decoded. **Note**: there are some + limitations on using UnicodeCol in queries: - only simple q-magic fields are supported; no expressions; - only == and <> operators are supported; |
From: <sub...@co...> - 2011-06-23 18:36:01
|
Author: phd Date: Thu Jun 23 12:35:52 2011 New Revision: 4418 Log: Documented sqlmeta.dbEncoding and connection.dbEncoding. Modified: SQLObject/branches/1.1/docs/News.txt SQLObject/branches/1.1/docs/SQLObject.txt Modified: SQLObject/branches/1.1/docs/News.txt ============================================================================== --- SQLObject/branches/1.1/docs/News.txt Mon Jun 20 04:20:04 2011 (r4417) +++ SQLObject/branches/1.1/docs/News.txt Thu Jun 23 12:35:52 2011 (r4418) @@ -7,6 +7,14 @@ .. _start: +SQLObject 1.1.1 +=============== + +* Parsing sqlobject.__doc__ for version number is declared obsolete. Use + sqlobject.version or version_info. + +* Documented sqlmeta.dbEncoding and connection.dbEncoding. + SQLObject 1.1 ============= Modified: SQLObject/branches/1.1/docs/SQLObject.txt ============================================================================== --- SQLObject/branches/1.1/docs/SQLObject.txt Mon Jun 20 04:20:04 2011 (r4417) +++ SQLObject/branches/1.1/docs/SQLObject.txt Thu Jun 23 12:35:52 2011 (r4418) @@ -755,6 +755,14 @@ database will be queried for the table's columns, and any missing columns (possible all columns) will be added automatically. +`dbEncoding`: + UnicodeCol_ looks up `sqlmeta.dbEncoding` if `column.dbEncoding` is + ``None`` (if `sqlmeta.dbEncoding` is ``None`` UnicodeCol_ looks up + `connection.dbEncoding` and if `dbEncoding` isn't defined anywhere it + defaults to ``"utf-8"``). + +.. _UnicodeCol: `Column Types`_ + The following attributes provide introspection but should not be set or directly - see `Runtime Column and Join Changes`_ for dynamically modifying these class elements. @@ -1194,10 +1202,12 @@ ``VARCHAR``. `UnicodeCol`: - A subclass of `StringCol`. Also accepts a dbEncoding keyword - argument, which defaults to ``"UTF-8"``. Values coming in and - out from the database will be encoded and decoded. **Note**: - there are some limitations on using UnicodeCol in queries: + A subclass of `StringCol`. Also accepts a `dbEncoding` keyword + argument, it defaults to ``None`` which means to lookup `dbEncoding` + in sqlmeta_ and connection, and if `dbEncoding` isn't defined + anywhere it defaults to ``"utf-8"``. Values coming in and out from + the database will be encoded and decoded. **Note**: there are some + limitations on using UnicodeCol in queries: - only simple q-magic fields are supported; no expressions; - only == and <> operators are supported; |
From: <sub...@co...> - 2011-06-20 10:20:12
|
Author: phd Date: Mon Jun 20 04:20:04 2011 New Revision: 4417 Log: Deprecate parsing sqlobject.__doc__ to find out version. Modified: SQLObject/trunk/docs/TODO.txt Modified: SQLObject/trunk/docs/TODO.txt ============================================================================== --- SQLObject/trunk/docs/TODO.txt Mon Jun 20 03:53:01 2011 (r4416) +++ SQLObject/trunk/docs/TODO.txt Mon Jun 20 04:20:04 2011 (r4417) @@ -1,6 +1,8 @@ TODO ---- +* Deprecate parsing sqlobject.__doc__ to find out version. + * Allow to override ConsoleWriter/LogWriter classes and makeDebugWriter function. |
From: <sub...@co...> - 2011-06-20 09:53:07
|
Author: phd Date: Mon Jun 20 03:53:01 2011 New Revision: 4416 Log: Stable version 1.1.0. Modified: SQLObject/tags/1.1.0/README.txt SQLObject/tags/1.1.0/setup.cfg SQLObject/tags/1.1.0/sqlobject/__init__.py SQLObject/tags/1.1.0/sqlobject/__version__.py SQLObject/tags/1.1.0/sqlobject/main.py Modified: SQLObject/tags/1.1.0/README.txt ============================================================================== --- SQLObject/tags/1.1.0/README.txt Mon Jun 20 03:49:49 2011 (r4415) +++ SQLObject/tags/1.1.0/README.txt Mon Jun 20 03:53:01 2011 (r4416) @@ -1,5 +1,5 @@ -SQLObject 1.1 -============= +SQLObject 1.1.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.1.0/setup.cfg ============================================================================== --- SQLObject/tags/1.1.0/setup.cfg Mon Jun 20 03:49:49 2011 (r4415) +++ SQLObject/tags/1.1.0/setup.cfg Mon Jun 20 03:53:01 2011 (r4416) @@ -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.1.0/sqlobject/__init__.py ============================================================================== --- SQLObject/tags/1.1.0/sqlobject/__init__.py Mon Jun 20 03:49:49 2011 (r4415) +++ SQLObject/tags/1.1.0/sqlobject/__init__.py Mon Jun 20 03:53:01 2011 (r4416) @@ -1,5 +1,5 @@ """ -SQLObject 1.1 +SQLObject 1.1.0 """ from __version__ import version, version_info Modified: SQLObject/tags/1.1.0/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.1.0/sqlobject/__version__.py Mon Jun 20 03:49:49 2011 (r4415) +++ SQLObject/tags/1.1.0/sqlobject/__version__.py Mon Jun 20 03:53:01 2011 (r4416) @@ -1,8 +1,8 @@ -version = '1.1' +version = '1.1.0' major = 1 minor = 1 micro = 0 -release_level = 'branch' +release_level = 'final' serial = 0 version_info = (major, minor, micro, release_level, serial) Modified: SQLObject/tags/1.1.0/sqlobject/main.py ============================================================================== --- SQLObject/tags/1.1.0/sqlobject/main.py Mon Jun 20 03:49:49 2011 (r4415) +++ SQLObject/tags/1.1.0/sqlobject/main.py Mon Jun 20 03:53:01 2011 (r4416) @@ -1,6 +1,6 @@ """ -SQLObject 1.1 -------------- +SQLObject 1.1.0 +--------------- :author: Ian Bicking <ia...@co...> |
From: <sub...@co...> - 2011-06-20 09:49:56
|
Author: phd Date: Mon Jun 20 03:49:49 2011 New Revision: 4415 Log: Tagging 1.1.0 Added: SQLObject/tags/1.1.0/ - copied from r4414, SQLObject/branches/1.1/ |
From: <sub...@co...> - 2011-06-20 09:49:03
|
Author: phd Date: Mon Jun 20 03:48:57 2011 New Revision: 4414 Log: Merged revision 4413 from branch 1.1: SQLObject 1.1 was released 20 Jun 2011. Modified: SQLObject/trunk/docs/News.txt Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Mon Jun 20 03:46:50 2011 (r4413) +++ SQLObject/trunk/docs/News.txt Mon Jun 20 03:48:57 2011 (r4414) @@ -16,6 +16,8 @@ SQLObject 1.1 ============= +Released 20 Jun 2011. + Features & Interface -------------------- |
From: <sub...@co...> - 2011-06-20 09:46:57
|
Author: phd Date: Mon Jun 20 03:46:50 2011 New Revision: 4413 Log: SQLObject 1.1 was released 20 Jun 2011. Modified: SQLObject/branches/1.1/docs/News.txt Modified: SQLObject/branches/1.1/docs/News.txt ============================================================================== --- SQLObject/branches/1.1/docs/News.txt Mon Jun 20 03:21:13 2011 (r4412) +++ SQLObject/branches/1.1/docs/News.txt Mon Jun 20 03:46:50 2011 (r4413) @@ -10,6 +10,8 @@ SQLObject 1.1 ============= +Released 20 Jun 2011. + Features & Interface -------------------- |
From: <sub...@co...> - 2011-06-20 09:21:23
|
Author: phd Date: Mon Jun 20 03:21:13 2011 New Revision: 4412 Log: Merged revision 4411 from branch 1.0: there is no need to parse declarations. Modified: SQLObject/trunk/sqlobject/col.py Modified: SQLObject/trunk/sqlobject/col.py ============================================================================== --- SQLObject/trunk/sqlobject/col.py Mon Jun 20 03:19:30 2011 (r4411) +++ SQLObject/trunk/sqlobject/col.py Mon Jun 20 03:21:13 2011 (r4412) @@ -458,7 +458,7 @@ def _sqliteType(self): self._check_case_sensitive("SQLite") - return super(SOStringLikeCol, self)._sqliteType().replace("CHAR(", "CHAR (") + return super(SOStringLikeCol, self)._sqliteType() def _sybaseType(self): self._check_case_sensitive("SYBASE") @@ -974,8 +974,7 @@ checkConstraint = "CHECK (%s in (%s))" % (self.dbName, enumValues) return "VARCHAR(%i) %s" % (length, checkConstraint) - def _sqliteType(self): - return self._postgresType().replace("CHAR(", "CHAR (") + _sqliteType = _postgresType def _sybaseType(self): return self._postgresType() |
From: <sub...@co...> - 2011-06-20 09:19:40
|
Author: phd Date: Mon Jun 20 03:19:30 2011 New Revision: 4411 Log: With SQLiteConnection.text_factory there is no need now to parse declarations, so I can remove the space between CHAR and (. Modified: SQLObject/branches/1.1/sqlobject/col.py Modified: SQLObject/branches/1.1/sqlobject/col.py ============================================================================== --- SQLObject/branches/1.1/sqlobject/col.py Wed Jun 15 07:01:27 2011 (r4410) +++ SQLObject/branches/1.1/sqlobject/col.py Mon Jun 20 03:19:30 2011 (r4411) @@ -458,7 +458,7 @@ def _sqliteType(self): self._check_case_sensitive("SQLite") - return super(SOStringLikeCol, self)._sqliteType().replace("CHAR(", "CHAR (") + return super(SOStringLikeCol, self)._sqliteType() def _sybaseType(self): self._check_case_sensitive("SYBASE") @@ -974,8 +974,7 @@ checkConstraint = "CHECK (%s in (%s))" % (self.dbName, enumValues) return "VARCHAR(%i) %s" % (length, checkConstraint) - def _sqliteType(self): - return self._postgresType().replace("CHAR(", "CHAR (") + _sqliteType = _postgresType def _sybaseType(self): return self._postgresType() |
From: <sub...@co...> - 2011-06-15 13:01:33
|
Author: phd Date: Wed Jun 15 07:01:27 2011 New Revision: 4410 Log: Removed trunk header. Modified: SQLObject/branches/1.1/docs/News.txt Modified: SQLObject/branches/1.1/docs/News.txt ============================================================================== --- SQLObject/branches/1.1/docs/News.txt Wed Jun 15 06:58:56 2011 (r4409) +++ SQLObject/branches/1.1/docs/News.txt Wed Jun 15 07:01:27 2011 (r4410) @@ -7,12 +7,6 @@ .. _start: -SQLObject (trunk) -================= - -Features & Interface --------------------- - SQLObject 1.1 ============= |
From: <sub...@co...> - 2011-06-15 12:59:05
|
Author: phd Date: Wed Jun 15 06:58:56 2011 New Revision: 4409 Log: Beta version 1.1.0b1. Modified: SQLObject/tags/1.1.0b1/README.txt SQLObject/tags/1.1.0b1/docs/News.txt SQLObject/tags/1.1.0b1/setup.py SQLObject/tags/1.1.0b1/sqlobject/__init__.py SQLObject/tags/1.1.0b1/sqlobject/__version__.py SQLObject/tags/1.1.0b1/sqlobject/main.py Modified: SQLObject/tags/1.1.0b1/README.txt ============================================================================== --- SQLObject/tags/1.1.0b1/README.txt Wed Jun 15 06:53:41 2011 (r4408) +++ SQLObject/tags/1.1.0b1/README.txt Wed Jun 15 06:58:56 2011 (r4409) @@ -1,5 +1,5 @@ -SQLObject 1.1 -============= +SQLObject 1.1.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.1.0b1/docs/News.txt ============================================================================== --- SQLObject/tags/1.1.0b1/docs/News.txt Wed Jun 15 06:53:41 2011 (r4408) +++ SQLObject/tags/1.1.0b1/docs/News.txt Wed Jun 15 06:58:56 2011 (r4409) @@ -7,12 +7,6 @@ .. _start: -SQLObject (trunk) -================= - -Features & Interface --------------------- - SQLObject 1.1 ============= Modified: SQLObject/tags/1.1.0b1/setup.py ============================================================================== --- SQLObject/tags/1.1.0b1/setup.py Wed Jun 15 06:53:41 2011 (r4408) +++ SQLObject/tags/1.1.0b1/setup.py Wed Jun 15 06:58:56 2011 (r4409) @@ -51,7 +51,7 @@ author="Ian Bicking", author_email="ia...@co...", url="http://sqlobject.org/", - download_url="http://cheeseshop.python.org/pypi/SQLObject/%s" % version, + download_url="http://cheeseshop.python.org/pypi/SQLObject/%sdev-r4409" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], scripts=["scripts/sqlobject-admin", "scripts/sqlobject-convertOldURI"], Modified: SQLObject/tags/1.1.0b1/sqlobject/__init__.py ============================================================================== --- SQLObject/tags/1.1.0b1/sqlobject/__init__.py Wed Jun 15 06:53:41 2011 (r4408) +++ SQLObject/tags/1.1.0b1/sqlobject/__init__.py Wed Jun 15 06:58:56 2011 (r4409) @@ -1,5 +1,5 @@ """ -SQLObject 1.1 +SQLObject 1.1.0b1 """ from __version__ import version, version_info Modified: SQLObject/tags/1.1.0b1/sqlobject/__version__.py ============================================================================== --- SQLObject/tags/1.1.0b1/sqlobject/__version__.py Wed Jun 15 06:53:41 2011 (r4408) +++ SQLObject/tags/1.1.0b1/sqlobject/__version__.py Wed Jun 15 06:58:56 2011 (r4409) @@ -1,8 +1,8 @@ -version = '1.1' +version = '1.1.0b1' major = 1 minor = 1 micro = 0 -release_level = 'branch' -serial = 0 +release_level = 'beta' +serial = 1 version_info = (major, minor, micro, release_level, serial) Modified: SQLObject/tags/1.1.0b1/sqlobject/main.py ============================================================================== --- SQLObject/tags/1.1.0b1/sqlobject/main.py Wed Jun 15 06:53:41 2011 (r4408) +++ SQLObject/tags/1.1.0b1/sqlobject/main.py Wed Jun 15 06:58:56 2011 (r4409) @@ -1,6 +1,6 @@ """ -SQLObject 1.1 -------------- +SQLObject 1.1.0b1 +----------------- :author: Ian Bicking <ia...@co...> |
From: <sub...@co...> - 2011-06-15 12:53:47
|
Author: phd Date: Wed Jun 15 06:53:41 2011 New Revision: 4408 Log: Tagging 1.1.0b1 Added: SQLObject/tags/1.1.0b1/ - copied from r4407, SQLObject/branches/1.1/ |
From: <sub...@co...> - 2011-06-15 12:39:29
|
Author: phd Date: Wed Jun 15 06:39:22 2011 New Revision: 4407 Log: The next version will be 1.2. Modified: SQLObject/trunk/README.txt SQLObject/trunk/sqlobject/__init__.py SQLObject/trunk/sqlobject/__version__.py SQLObject/trunk/sqlobject/main.py Modified: SQLObject/trunk/README.txt ============================================================================== --- SQLObject/trunk/README.txt Wed Jun 15 06:36:18 2011 (r4406) +++ SQLObject/trunk/README.txt Wed Jun 15 06:39:22 2011 (r4407) @@ -1,4 +1,4 @@ -SQLObject 1.1 +SQLObject 1.2 ============= Thanks for looking at SQLObject. SQLObject is an object-relational Modified: SQLObject/trunk/sqlobject/__init__.py ============================================================================== --- SQLObject/trunk/sqlobject/__init__.py Wed Jun 15 06:36:18 2011 (r4406) +++ SQLObject/trunk/sqlobject/__init__.py Wed Jun 15 06:39:22 2011 (r4407) @@ -1,5 +1,5 @@ """ -SQLObject 1.1 +SQLObject 1.2 """ from __version__ import version, version_info Modified: SQLObject/trunk/sqlobject/__version__.py ============================================================================== --- SQLObject/trunk/sqlobject/__version__.py Wed Jun 15 06:36:18 2011 (r4406) +++ SQLObject/trunk/sqlobject/__version__.py Wed Jun 15 06:39:22 2011 (r4407) @@ -1,7 +1,7 @@ -version = '1.1' +version = '1.2' major = 1 -minor = 1 +minor = 2 micro = 0 release_level = 'trunk' serial = 0 Modified: SQLObject/trunk/sqlobject/main.py ============================================================================== --- SQLObject/trunk/sqlobject/main.py Wed Jun 15 06:36:18 2011 (r4406) +++ SQLObject/trunk/sqlobject/main.py Wed Jun 15 06:39:22 2011 (r4407) @@ -1,5 +1,5 @@ """ -SQLObject 1.1 +SQLObject 1.2 ------------- :author: Ian Bicking <ia...@co...> |
From: <sub...@co...> - 2011-06-15 12:36:26
|
Author: phd Date: Wed Jun 15 06:36:18 2011 New Revision: 4406 Log: This is the new stable branch. Modified: SQLObject/branches/1.1/setup.py SQLObject/branches/1.1/sqlobject/__version__.py Modified: SQLObject/branches/1.1/setup.py ============================================================================== --- SQLObject/branches/1.1/setup.py Wed Jun 15 06:33:02 2011 (r4405) +++ SQLObject/branches/1.1/setup.py Wed Jun 15 06:36:18 2011 (r4406) @@ -50,7 +50,7 @@ ], author="Ian Bicking", author_email="ia...@co...", - url="http://sqlobject.org/devel/", + url="http://sqlobject.org/", download_url="http://cheeseshop.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], Modified: SQLObject/branches/1.1/sqlobject/__version__.py ============================================================================== --- SQLObject/branches/1.1/sqlobject/__version__.py Wed Jun 15 06:33:02 2011 (r4405) +++ SQLObject/branches/1.1/sqlobject/__version__.py Wed Jun 15 06:36:18 2011 (r4406) @@ -3,6 +3,6 @@ major = 1 minor = 1 micro = 0 -release_level = 'trunk' +release_level = 'branch' serial = 0 version_info = (major, minor, micro, release_level, serial) |
From: <sub...@co...> - 2011-06-15 12:33:08
|
Author: phd Date: Wed Jun 15 06:33:02 2011 New Revision: 4405 Log: Branch 1.1 Added: SQLObject/branches/1.1/ - copied from r4404, SQLObject/trunk/ |
From: <sub...@co...> - 2011-06-15 12:32:28
|
Author: phd Date: Wed Jun 15 06:32:15 2011 New Revision: 4404 Log: Going to release version 1.1. Modified: SQLObject/trunk/docs/News.txt Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Wed Jun 15 06:29:23 2011 (r4403) +++ SQLObject/trunk/docs/News.txt Wed Jun 15 06:32:15 2011 (r4404) @@ -13,6 +13,12 @@ Features & Interface -------------------- +SQLObject 1.1 +============= + +Features & Interface +-------------------- + * SelectResults (returned from .select()) is allowed in IN(column, list). * A different workaround is used in SQLiteConnection to prevent PySQLite |
From: <sub...@co...> - 2011-06-15 12:29:33
|
Author: phd Date: Wed Jun 15 06:29:23 2011 New Revision: 4403 Log: One encoding for all UnicodeCol's per table or per connection. Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/docs/TODO.txt SQLObject/trunk/sqlobject/col.py SQLObject/trunk/sqlobject/main.py SQLObject/trunk/sqlobject/tests/test_unicode.py Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Mon May 30 05:07:33 2011 (r4402) +++ SQLObject/trunk/docs/News.txt Wed Jun 15 06:29:23 2011 (r4403) @@ -21,6 +21,11 @@ now SQLObject uses text_factory instead and properly returns empty strings. +* It is now possible to declare one encoding for all UnicodeCol's per + table (as sqlmeta.dbEncoding) or per connection (as connection.dbEncoding). + Default (if dbEncoding is found neither in column nor in table nor in + connection) is 'utf-8'. + Source code and internals ------------------------- Modified: SQLObject/trunk/docs/TODO.txt ============================================================================== --- SQLObject/trunk/docs/TODO.txt Mon May 30 05:07:33 2011 (r4402) +++ SQLObject/trunk/docs/TODO.txt Wed Jun 15 06:29:23 2011 (r4403) @@ -1,9 +1,6 @@ TODO ---- -* Declare one encoding for all UnicodeCol's per table or even per connection. - Don't forget about fromDatabase. - * Allow to override ConsoleWriter/LogWriter classes and makeDebugWriter function. Modified: SQLObject/trunk/sqlobject/col.py ============================================================================== --- SQLObject/trunk/sqlobject/col.py Mon May 30 05:07:33 2011 (r4402) +++ SQLObject/trunk/sqlobject/col.py Wed Jun 15 06:29:23 2011 (r4403) @@ -535,15 +535,21 @@ class UnicodeStringValidator(validators.Validator): + def getDbEncoding(self, state): + try: + return self.dbEncoding + except AttributeError: + return self.soCol.getDbEncoding(state) + def to_python(self, value, state): if value is None: return None if isinstance(value, (unicode, sqlbuilder.SQLExpression)): return value if isinstance(value, str): - return unicode(value, self.dbEncoding) + return unicode(value, self.getDbEncoding(state)) if isinstance(value, array): # MySQL - return unicode(value.tostring(), self.dbEncoding) + return unicode(value.tostring(), self.getDbEncoding(state)) if hasattr(value, '__unicode__'): return unicode(value) raise validators.Invalid("expected a str or a unicode in the UnicodeCol '%s', got %s %r instead" % \ @@ -555,22 +561,37 @@ if isinstance(value, (str, sqlbuilder.SQLExpression)): return value if isinstance(value, unicode): - return value.encode(self.dbEncoding) + return value.encode(self.getDbEncoding(state)) if hasattr(value, '__unicode__'): - return unicode(value).encode(self.dbEncoding) + return unicode(value).encode(self.getDbEncoding(state)) raise validators.Invalid("expected a str or a unicode in the UnicodeCol '%s', got %s %r instead" % \ (self.name, type(value), value), value, state) class SOUnicodeCol(SOStringLikeCol): def __init__(self, **kw): - self.dbEncoding = kw.pop('dbEncoding', 'UTF-8') + self.dbEncoding = kw.pop('dbEncoding', None) super(SOUnicodeCol, self).__init__(**kw) def createValidators(self): - return [UnicodeStringValidator(name=self.name, - dbEncoding=self.dbEncoding)] + \ + return [UnicodeStringValidator(name=self.name, soCol=self)] + \ super(SOUnicodeCol, self).createValidators() + def getDbEncoding(self, state): + if self.dbEncoding: + return self.dbEncoding + dbEncoding = state.soObject.sqlmeta.dbEncoding + if dbEncoding: + return dbEncoding + try: + connection = state.connection or state.soObject._connection + except AttributeError: + dbEncoding = None + else: + dbEncoding = getattr(connection, "dbEncoding", None) + if not dbEncoding: + dbEncoding = "utf-8" + return dbEncoding + class UnicodeCol(Col): baseClass = SOUnicodeCol Modified: SQLObject/trunk/sqlobject/main.py ============================================================================== --- SQLObject/trunk/sqlobject/main.py Mon May 30 05:07:33 2011 (r4402) +++ SQLObject/trunk/sqlobject/main.py Wed Jun 15 06:29:23 2011 (r4403) @@ -234,6 +234,9 @@ # Does the row require syncing? dirty = False + # Default encoding for UnicodeCol's + dbEncoding = None + __metaclass__ = declarative.DeclarativeMeta def __classinit__(cls, new_attrs): Modified: SQLObject/trunk/sqlobject/tests/test_unicode.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_unicode.py Mon May 30 05:07:33 2011 (r4402) +++ SQLObject/trunk/sqlobject/tests/test_unicode.py Wed Jun 15 06:29:23 2011 (r4403) @@ -38,8 +38,7 @@ assert data[count].encode('utf-8') == col1 assert data[count].encode('latin1') == col2 -def test_select(): - setup() +def _test_select(): for i, value in enumerate(data): rows = list(TestUnicode.select(TestUnicode.q.col1 == value)) assert len(rows) == 1 @@ -79,3 +78,29 @@ assert len(rows) == 1 rows = list(TestUnicode.select(TestUnicode.q.col1.contains(u"\u00f0"))) assert len(rows) == 1 + +def test_select(): + setup() + _test_select() + +def test_dbEncoding(): + setup() + assert TestUnicode.sqlmeta.dbEncoding is None + assert not hasattr(TestUnicode._connection, 'dbEncoding') or \ + TestUnicode._connection.dbEncoding is None + + TestUnicode.sqlmeta.dbEncoding = 'utf-8' + _test_select() + TestUnicode.sqlmeta.dbEncoding = 'latin-1' + raises(AssertionError, _test_select) + TestUnicode.sqlmeta.dbEncoding = 'ascii' + raises(UnicodeEncodeError, _test_select) + TestUnicode.sqlmeta.dbEncoding = None + + TestUnicode._connection.dbEncoding = 'utf-8' + _test_select() + TestUnicode._connection.dbEncoding = 'latin-1' + raises(AssertionError, _test_select) + TestUnicode._connection.dbEncoding = 'ascii' + raises(UnicodeEncodeError, _test_select) + del TestUnicode.sqlmeta.dbEncoding |
From: SourceForge.net <no...@so...> - 2011-05-30 11:13:44
|
Bugs item #3308035, was opened at 2011-05-26 20:31 Message generated for change (Settings changed) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=3308035&group_id=74338 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: SQLite Group: SQLObject release (specify) >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Christoph Zwerschke (cito) >Assigned to: Oleg Broytman (phd) Summary: Ternary operator breaks compatibility with Py < 2.5 Initial Comment: SQLObject 1.0.0 has in sqlobject/sqlite/sqliteconnection.py in line 103 the following ternary operator expression: ':%r' % port if port else '' This should be replaced with port and ':%r' % port or '' because otherwise importing the file gives a syntax error on Python < 2.5. Since there is a Py 2.4 egg on PyPI and in the same function even the decorator syntax for classmethods is avoided, it seems that the code is actually intended to work even with Python 2.3. After fixing this, please document the minimum required Python version and test with that version before releasing. ---------------------------------------------------------------------- >Comment By: Oleg Broytman (phd) Date: 2011-05-30 15:13 Message: Fixed in SQLObject 1.0.1. Thank you! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=3308035&group_id=74338 |
From: <sub...@co...> - 2011-05-30 11:07:39
|
Author: phd Date: Mon May 30 05:07:33 2011 New Revision: 4402 Log: Merged revision 4400 from branch 0.15: exclude sqlobject.conftest, sqlobject.versioning.test, sqlobject.wsgi_middleware. Modified: SQLObject/trunk/setup.cfg Modified: SQLObject/trunk/setup.cfg ============================================================================== --- SQLObject/trunk/setup.cfg Mon May 30 05:07:07 2011 (r4401) +++ SQLObject/trunk/setup.cfg Mon May 30 05:07:33 2011 (r4402) @@ -19,8 +19,9 @@ doc_base = docs/ dest = docs/html modules = sqlobject -exclude_modules = sqlobject.tests - sqlobject.inheritance.tests +exclude_modules = sqlobject.conftest sqlobject.tests + sqlobject.inheritance.tests sqlobject.versioning.test + sqlobject.wsgi_middleware title = SQLObject mailing_list_url = community.html settings = normal_link_color=#039 |
From: <sub...@co...> - 2011-05-30 11:07:14
|
Author: phd Date: Mon May 30 05:07:07 2011 New Revision: 4401 Log: Merged revision 4400 from branch 0.15: exclude sqlobject.conftest, sqlobject.versioning.test, sqlobject.wsgi_middleware. Modified: SQLObject/branches/1.0/setup.cfg Modified: SQLObject/branches/1.0/setup.cfg ============================================================================== --- SQLObject/branches/1.0/setup.cfg Mon May 30 05:04:25 2011 (r4400) +++ SQLObject/branches/1.0/setup.cfg Mon May 30 05:07:07 2011 (r4401) @@ -19,8 +19,9 @@ doc_base = docs/ dest = docs/html modules = sqlobject -exclude_modules = sqlobject.tests - sqlobject.inheritance.tests +exclude_modules = sqlobject.conftest sqlobject.tests + sqlobject.inheritance.tests sqlobject.versioning.test + sqlobject.wsgi_middleware title = SQLObject mailing_list_url = community.html settings = normal_link_color=#039 |
From: <sub...@co...> - 2011-05-30 11:04:32
|
Author: phd Date: Mon May 30 05:04:25 2011 New Revision: 4400 Log: Exclude sqlobject.conftest, sqlobject.versioning.test, sqlobject.wsgi_middleware. Modified: SQLObject/branches/0.15/setup.cfg Modified: SQLObject/branches/0.15/setup.cfg ============================================================================== --- SQLObject/branches/0.15/setup.cfg Mon May 30 03:43:53 2011 (r4399) +++ SQLObject/branches/0.15/setup.cfg Mon May 30 05:04:25 2011 (r4400) @@ -19,8 +19,9 @@ doc_base = docs/ dest = docs/html modules = sqlobject -exclude_modules = sqlobject.tests - sqlobject.inheritance.tests +exclude_modules = sqlobject.conftest sqlobject.tests + sqlobject.inheritance.tests sqlobject.versioning.test + sqlobject.wsgi_middleware title = SQLObject mailing_list_url = community.html settings = normal_link_color=#039 |
From: <sub...@co...> - 2011-05-30 09:44:00
|
Author: phd Date: Mon May 30 03:43:53 2011 New Revision: 4399 Log: Tagging 1.0.1 Added: SQLObject/tags/1.0.1/ - copied from r4398, SQLObject/branches/1.0/ |
From: <sub...@co...> - 2011-05-30 09:43:21
|
Author: phd Date: Mon May 30 03:43:15 2011 New Revision: 4398 Log: Merged revision 4397 from branch 1.0: SQLObject 1.0.1 was released 30 May 2011. Modified: SQLObject/trunk/docs/News.txt Modified: SQLObject/trunk/docs/News.txt ============================================================================== --- SQLObject/trunk/docs/News.txt Mon May 30 03:41:50 2011 (r4397) +++ SQLObject/trunk/docs/News.txt Mon May 30 03:43:15 2011 (r4398) @@ -31,6 +31,8 @@ SQLObject 1.0.1 =============== +Released 30 May 2011. + * A syntax incompatibility was fixed in SQLiteConnection that prevented SQLObject to be used with Python 2.4. |
From: <sub...@co...> - 2011-05-30 09:41:59
|
Author: phd Date: Mon May 30 03:41:50 2011 New Revision: 4397 Log: SQLObject 1.0.1 was released 30 May 2011. Modified: SQLObject/branches/1.0/docs/News.txt Modified: SQLObject/branches/1.0/docs/News.txt ============================================================================== --- SQLObject/branches/1.0/docs/News.txt Sun May 29 05:53:58 2011 (r4396) +++ SQLObject/branches/1.0/docs/News.txt Mon May 30 03:41:50 2011 (r4397) @@ -10,6 +10,8 @@ SQLObject 1.0.1 =============== +Released 30 May 2011. + * A syntax incompatibility was fixed in SQLiteConnection that prevented SQLObject to be used with Python 2.4. |