sqlobject-cvs Mailing List for SQLObject (Page 96)
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: SourceForge.net <no...@so...> - 2007-04-12 15:14:59
|
Bugs item #1699321, was opened at 2007-04-12 18:49 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1699321&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: cjwhrw12 (cjwhrw12) >Assigned to: Oleg Broytmann (phd) >Summary: Can't get SQLObjectGuide Initial Comment: Link: https://wiki.launchpad.canonical.com/SQLObjectGuide Name in posting: http://sqlobject.org ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-04-12 19:14 Message: Logged In: YES user_id=4799 Originator: NO It seems it's no longer available from the Launchpad. If you know any mirror or copy - please suggest. Else it will be removed from the list of links. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1699321&group_id=74338 |
|
From: SourceForge.net <no...@so...> - 2007-04-12 14:49:51
|
Bugs item #1699321, was opened at 2007-04-12 09:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1699321&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: cjwhrw12 (cjwhrw12) Assigned to: Nobody/Anonymous (nobody) Summary: Link fails from Oleg newsgroup posting Initial Comment: Link: https://wiki.launchpad.canonical.com/SQLObjectGuide Name in posting: http://sqlobject.org ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1699321&group_id=74338 |
|
From: <sub...@co...> - 2007-04-11 16:21:14
|
Author: phd Date: 2007-04-11 10:21:09 -0600 (Wed, 11 Apr 2007) New Revision: 2524 Modified: SQLObject/docs/News.txt Log: SQLObject 0.9.0. Modified: SQLObject/docs/News.txt =================================================================== --- SQLObject/docs/News.txt 2007-04-11 16:17:35 UTC (rev 2523) +++ SQLObject/docs/News.txt 2007-04-11 16:21:09 UTC (rev 2524) @@ -10,6 +10,9 @@ SQLObject (trunk) ================= +SQLObject 0.9.0 +=============== + Features & Interface -------------------- |
|
From: <sub...@co...> - 2007-04-11 16:17:39
|
Author: phd Date: 2007-04-11 10:17:35 -0600 (Wed, 11 Apr 2007) New Revision: 2523 Modified: SQLObject/tags/0.9.0b1/setup.cfg SQLObject/tags/0.9.0b1/setup.py Log: Releasing 0.9.0b1. Modified: SQLObject/tags/0.9.0b1/setup.cfg =================================================================== --- SQLObject/tags/0.9.0b1/setup.cfg 2007-04-11 16:15:24 UTC (rev 2522) +++ SQLObject/tags/0.9.0b1/setup.cfg 2007-04-11 16:17:35 UTC (rev 2523) @@ -1,10 +1,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/SQLObject.txt docs/TODO.txt Modified: SQLObject/tags/0.9.0b1/setup.py =================================================================== --- SQLObject/tags/0.9.0b1/setup.py 2007-04-11 16:15:24 UTC (rev 2522) +++ SQLObject/tags/0.9.0b1/setup.py 2007-04-11 16:17:35 UTC (rev 2523) @@ -28,7 +28,7 @@ """ setup(name="SQLObject", - version="0.9", + version="0.9.0b1", description="Object-Relational Manager, aka database wrapper", long_description="""\ SQLObject is a popular *Object Relational Manager* for providing an |
|
From: <sub...@co...> - 2007-04-11 16:15:27
|
Author: phd Date: 2007-04-11 10:15:24 -0600 (Wed, 11 Apr 2007) New Revision: 2522 Added: SQLObject/tags/0.9.0b1/ Log: Tagging 0.9.0 beta1 Copied: SQLObject/tags/0.9.0b1 (from rev 2521, SQLObject/branches/0.9) |
|
From: <sub...@co...> - 2007-04-11 16:13:53
|
Author: phd
Date: 2007-04-11 10:13:49 -0600 (Wed, 11 Apr 2007)
New Revision: 2521
Modified:
SQLObject/trunk/setup.py
Log:
Trunk will be 0.10.
Modified: SQLObject/trunk/setup.py
===================================================================
--- SQLObject/trunk/setup.py 2007-04-11 16:12:23 UTC (rev 2520)
+++ SQLObject/trunk/setup.py 2007-04-11 16:13:49 UTC (rev 2521)
@@ -28,7 +28,7 @@
"""
setup(name="SQLObject",
- version="0.9",
+ version="0.10",
description="Object-Relational Manager, aka database wrapper",
long_description="""\
SQLObject is a popular *Object Relational Manager* for providing an
@@ -42,7 +42,7 @@
Supports MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (SAPDB).
For development see the `subversion repository
-<http://svn.colorstudy.com/SQLObject/trunk#egg=SQLObject-0.9dev>`_
+<http://svn.colorstudy.com/SQLObject/trunk#egg=SQLObject-0.10dev>`_
""",
classifiers=[
"Development Status :: 5 - Production/Stable",
|
|
From: <sub...@co...> - 2007-04-11 16:12:27
|
Author: phd Date: 2007-04-11 10:12:23 -0600 (Wed, 11 Apr 2007) New Revision: 2520 Modified: SQLObject/branches/0.9/setup.py Log: Trunk will be 0.10. Modified: SQLObject/branches/0.9/setup.py =================================================================== --- SQLObject/branches/0.9/setup.py 2007-04-11 16:09:37 UTC (rev 2519) +++ SQLObject/branches/0.9/setup.py 2007-04-11 16:12:23 UTC (rev 2520) @@ -42,7 +42,7 @@ Supports MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (SAPDB). For development see the `subversion repository -<http://svn.colorstudy.com/SQLObject/trunk#egg=SQLObject-0.9dev>`_ +<http://svn.colorstudy.com/SQLObject/trunk#egg=SQLObject-0.10dev>`_ """, classifiers=[ "Development Status :: 5 - Production/Stable", |
|
From: <sub...@co...> - 2007-04-11 16:04:14
|
Author: phd Date: 2007-04-11 10:04:09 -0600 (Wed, 11 Apr 2007) New Revision: 2518 Added: SQLObject/branches/0.9/ Log: Starting a new branch SQLObject 0.9. Copied: SQLObject/branches/0.9 (from rev 2517, SQLObject/trunk) |
|
From: <sub...@co...> - 2007-04-11 15:55:25
|
Author: phd Date: 2007-04-11 09:55:21 -0600 (Wed, 11 Apr 2007) New Revision: 2517 Modified: SQLObject/docs/News.txt Log: SQLObject 0.7.5 and 0.8.2 was released 11 Apr 2007. Modified: SQLObject/docs/News.txt =================================================================== --- SQLObject/docs/News.txt 2007-04-11 15:46:20 UTC (rev 2516) +++ SQLObject/docs/News.txt 2007-04-11 15:55:21 UTC (rev 2517) @@ -67,6 +67,8 @@ SQLObject 0.8.2 =============== +Released 11 Apr 2007. + Bug Fixes --------- @@ -202,6 +204,8 @@ SQLObject 0.7.5 =============== +Released 11 Apr 2007. + Bug Fixes --------- |
|
From: <sub...@co...> - 2007-04-11 15:46:26
|
Author: phd Date: 2007-04-11 09:46:20 -0600 (Wed, 11 Apr 2007) New Revision: 2516 Modified: SQLObject/tags/0.8.2/setup.cfg Log: Releasing 0.8.2. Modified: SQLObject/tags/0.8.2/setup.cfg =================================================================== --- SQLObject/tags/0.8.2/setup.cfg 2007-04-11 15:44:18 UTC (rev 2515) +++ SQLObject/tags/0.8.2/setup.cfg 2007-04-11 15:46:20 UTC (rev 2516) @@ -1,10 +1,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/SQLObject.txt docs/TODO.txt |
|
From: <sub...@co...> - 2007-04-11 15:44:23
|
Author: phd Date: 2007-04-11 09:44:18 -0600 (Wed, 11 Apr 2007) New Revision: 2515 Added: SQLObject/tags/0.8.2/ Log: Tagging 0.8.2 Copied: SQLObject/tags/0.8.2 (from rev 2514, SQLObject/branches/0.8) |
|
From: <sub...@co...> - 2007-04-11 15:41:54
|
Author: phd
Date: 2007-04-11 09:41:46 -0600 (Wed, 11 Apr 2007)
New Revision: 2514
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/setup.py
Log:
Preparing SQLObject 0.8.2.
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-04-11 15:27:28 UTC (rev 2513)
+++ SQLObject/branches/0.8/docs/News.txt 2007-04-11 15:41:46 UTC (rev 2514)
@@ -10,6 +10,8 @@
SQLObject 0.8.2
===============
+Released 11 Apr 2007.
+
Bug Fixes
---------
@@ -145,6 +147,8 @@
SQLObject 0.7.5
===============
+Released 11 Apr 2007.
+
Bug Fixes
---------
Modified: SQLObject/branches/0.8/setup.py
===================================================================
--- SQLObject/branches/0.8/setup.py 2007-04-11 15:27:28 UTC (rev 2513)
+++ SQLObject/branches/0.8/setup.py 2007-04-11 15:41:46 UTC (rev 2514)
@@ -28,7 +28,7 @@
"""
setup(name="SQLObject",
- version="0.8.1",
+ version="0.8.2",
description="Object-Relational Manager, aka database wrapper",
long_description="""\
SQLObject is a popular *Object Relational Manager* for providing an
|
|
From: <sub...@co...> - 2007-04-11 15:27:35
|
Author: phd
Date: 2007-04-11 09:27:28 -0600 (Wed, 11 Apr 2007)
New Revision: 2513
Modified:
SQLObject/tags/0.7.5/docs/News.txt
SQLObject/tags/0.7.5/setup.cfg
SQLObject/tags/0.7.5/setup.py
Log:
SQLObject 0.7.5 released 11 Apr 2007.
Modified: SQLObject/tags/0.7.5/docs/News.txt
===================================================================
--- SQLObject/tags/0.7.5/docs/News.txt 2007-04-11 15:25:41 UTC (rev 2512)
+++ SQLObject/tags/0.7.5/docs/News.txt 2007-04-11 15:27:28 UTC (rev 2513)
@@ -10,6 +10,8 @@
SQLObject 0.7.5
===============
+Released 11 Apr 2007.
+
Bug Fixes
---------
Modified: SQLObject/tags/0.7.5/setup.cfg
===================================================================
--- SQLObject/tags/0.7.5/setup.cfg 2007-04-11 15:25:41 UTC (rev 2512)
+++ SQLObject/tags/0.7.5/setup.cfg 2007-04-11 15:27:28 UTC (rev 2513)
@@ -1,7 +1,3 @@
-[egg_info]
-tag_build = a
-tag_svn_revision = true
-
[pudge]
title = SQLObject
dest = docs/html
Modified: SQLObject/tags/0.7.5/setup.py
===================================================================
--- SQLObject/tags/0.7.5/setup.py 2007-04-11 15:25:41 UTC (rev 2512)
+++ SQLObject/tags/0.7.5/setup.py 2007-04-11 15:27:28 UTC (rev 2513)
@@ -19,7 +19,7 @@
DistributionMetadata.download_url = None
setup(name="SQLObject",
- version="0.7.4",
+ version="0.7.5",
description="Object-Relational Manager, aka database wrapper",
long_description="""\
SQLObject is a popular *Object Relational Manager* for providing an
@@ -52,7 +52,7 @@
author="Ian Bicking",
author_email="ia...@co...",
url="http://sqlobject.org",
- download_url="http://cheeseshop.python.org/pypi/SQLObject/0.7.4",
+ download_url="http://cheeseshop.python.org/pypi/SQLObject/0.7.5",
license="LGPL",
packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages],
scripts=["scripts/sqlobject-admin"],
|
|
From: <sub...@co...> - 2007-04-11 15:25:50
|
Author: phd
Date: 2007-04-11 09:25:41 -0600 (Wed, 11 Apr 2007)
New Revision: 2512
Modified:
SQLObject/branches/0.7/docs/News.txt
SQLObject/branches/0.7/setup.py
Log:
0.7.5 released 11 Apr 2007.
Modified: SQLObject/branches/0.7/docs/News.txt
===================================================================
--- SQLObject/branches/0.7/docs/News.txt 2007-04-11 15:22:23 UTC (rev 2511)
+++ SQLObject/branches/0.7/docs/News.txt 2007-04-11 15:25:41 UTC (rev 2512)
@@ -10,6 +10,8 @@
SQLObject 0.7.5
===============
+Released 11 Apr 2007.
+
Bug Fixes
---------
Modified: SQLObject/branches/0.7/setup.py
===================================================================
--- SQLObject/branches/0.7/setup.py 2007-04-11 15:22:23 UTC (rev 2511)
+++ SQLObject/branches/0.7/setup.py 2007-04-11 15:25:41 UTC (rev 2512)
@@ -19,7 +19,7 @@
DistributionMetadata.download_url = None
setup(name="SQLObject",
- version="0.7.4",
+ version="0.7.5",
description="Object-Relational Manager, aka database wrapper",
long_description="""\
SQLObject is a popular *Object Relational Manager* for providing an
@@ -52,7 +52,7 @@
author="Ian Bicking",
author_email="ia...@co...",
url="http://sqlobject.org",
- download_url="http://cheeseshop.python.org/pypi/SQLObject/0.7.4",
+ download_url="http://cheeseshop.python.org/pypi/SQLObject/0.7.5",
license="LGPL",
packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages],
scripts=["scripts/sqlobject-admin"],
|
|
From: <sub...@co...> - 2007-04-11 15:22:31
|
Author: phd Date: 2007-04-11 09:22:23 -0600 (Wed, 11 Apr 2007) New Revision: 2511 Added: SQLObject/tags/0.7.5/ Log: Tagging 0.7.5. Copied: SQLObject/tags/0.7.5 (from rev 2510, SQLObject/branches/0.7) |
|
From: Carol G. <ral...@sp...> - 2007-04-11 00:26:36
|
<html> <body bgcolor=3D"#ffffff" text=3D"#000000"> <img src=3D"cid:EB615FA6=2E8B39645C"> <br> God does not play dice with the universe=2E <br> He who hunts for flowers will finds flowers and he who loves weeds will = find weeds=2E <br> Man is a useless passion=2E <br> The fundamental delusion of humanity is to suppose that I am here and yo= u are out there=2E <br> A man who exposes himself when he is intoxicated, has not the art of get= ting drunk=2E <br> Do that which is assigned to you and you cannot hope too much or dare to= o much=2E <br> A heresy can spring only from a system that is in full vigor=2E <br> Don't set compensation as a goal=2E Find work you like, and the compensa= tion will follow=2E <br> A man can learn only two ways, one by reading, and the other by associat= ion with smarter people=2E <br> Danger breeds best on too much confidence=2E <br> No man is entitled to the blessings of freedom unless he be vigilant in = its preservation=2E <br> The art of writing is the art of discovering what you believe=2E <br> Better to be pruned to grow than cut up to burn=2E </body> </html> |
|
From: <sub...@co...> - 2007-04-10 14:15:40
|
Author: phd
Date: 2007-04-10 08:15:36 -0600 (Tue, 10 Apr 2007)
New Revision: 2509
Modified:
home/phd/SQLObject/paramstyles/sqlobject/col.py
home/phd/SQLObject/paramstyles/sqlobject/tests/test_datetime.py
Log:
Merged patches from the revisions 2503:2508 from the trunk
Modified: home/phd/SQLObject/paramstyles/sqlobject/col.py
===================================================================
--- home/phd/SQLObject/paramstyles/sqlobject/col.py 2007-04-10 14:11:40 UTC (rev 2508)
+++ home/phd/SQLObject/paramstyles/sqlobject/col.py 2007-04-10 14:15:36 UTC (rev 2509)
@@ -1052,7 +1052,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return datetime.datetime(*stime[:6])
@@ -1084,7 +1084,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return DateTime.mktime(stime)
@@ -1154,6 +1154,8 @@
if datetime_available:
class DateValidator(DateTimeValidator):
def to_python(self, value, state):
+ if isinstance(value, datetime.datetime):
+ value = value.date()
if isinstance(value, datetime.date):
return value
value = super(DateValidator, self).to_python(value, state)
Modified: home/phd/SQLObject/paramstyles/sqlobject/tests/test_datetime.py
===================================================================
--- home/phd/SQLObject/paramstyles/sqlobject/tests/test_datetime.py 2007-04-10 14:11:40 UTC (rev 2508)
+++ home/phd/SQLObject/paramstyles/sqlobject/tests/test_datetime.py 2007-04-10 14:15:36 UTC (rev 2509)
@@ -18,8 +18,7 @@
def test_dateTime():
setupClass(DateTime1)
_now = datetime.now()
- _today = date.today()
- dt1 = DateTime1(col1=_now, col2=_today, col3=_now.time())
+ dt1 = DateTime1(col1=_now, col2=_now, col3=_now.time())
assert isinstance(dt1.col1, datetime)
assert dt1.col1.year == _now.year
@@ -30,9 +29,10 @@
assert dt1.col1.second == int(_now.second)
assert isinstance(dt1.col2, date)
- assert dt1.col2.year == _today.year
- assert dt1.col2.month == _today.month
- assert dt1.col2.day == _today.day
+ assert not isinstance(dt1.col2, datetime)
+ assert dt1.col2.year == _now.year
+ assert dt1.col2.month == _now.month
+ assert dt1.col2.day == _now.day
assert isinstance(dt1.col3, time)
assert dt1.col3.hour == _now.hour
|
|
From: SourceForge.net <no...@so...> - 2007-04-10 14:12:59
|
Bugs item #1696365, was opened at 2007-04-08 14:02 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696365&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: None Group: SQLObject release (specify) >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Shimizukawa Takayuki (shimi-ta) >Assigned to: Oleg Broytmann (phd) Summary: datetime validation is incorrect Initial Comment: on SQLObject-0.8.1 py2.4 with SQLite3 When set datetime value to DateCol, expect date spec string(as '2007-04-08'), but actual data is datetime spec string(as '2007-04-08 18:50:37.078000'). test code:: class SomeData(SQLObject): date = DateCol() datetime = DateTimeCol() d = datetime.datetime.now() v = SomeData(date=d.date(),datetime=d) v.set(date=d, datetime=d) assert str(v.datetime) == str(d) # raise assert str(v.date) == str(d.date()) ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-04-10 18:12 Message: Logged In: YES user_id=4799 Originator: NO Fixed in the revisions 2504-2508 in the 0.7 and 0.8 branches and in the trunk. The fix will be included in the next releases = 0.7.5, 0.8.2. Thank you! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696365&group_id=74338 |
|
From: <sub...@co...> - 2007-04-10 14:11:46
|
Author: phd Date: 2007-04-10 08:11:40 -0600 (Tue, 10 Apr 2007) New Revision: 2508 Modified: SQLObject/docs/News.txt Log: Fixed a bug in DateValidator caused by datetime being a subclass of date. Modified: SQLObject/docs/News.txt =================================================================== --- SQLObject/docs/News.txt 2007-04-10 14:10:17 UTC (rev 2507) +++ SQLObject/docs/News.txt 2007-04-10 14:11:40 UTC (rev 2508) @@ -208,6 +208,8 @@ * Fixed test_deep_inheritance.py - setup classes in the correct order (required for Postgres 8.0+ which is strict about referential integrity). +* Fixed a bug in DateValidator caused by datetime being a subclass of date. + SQLObject 0.7.4 =============== |
|
From: <sub...@co...> - 2007-04-10 14:10:21
|
Author: luke Date: 2007-04-10 08:10:17 -0600 (Tue, 10 Apr 2007) New Revision: 2507 Added: SQLObject/branches/cache-deps-on-views/ Log: Create branch for derived dependency tracking, based on sqlbuilder-views+1 Copied: SQLObject/branches/cache-deps-on-views (from rev 2506, SQLObject/branches/sqlbuilder-views+1) |
|
From: <sub...@co...> - 2007-04-10 14:08:29
|
Author: phd
Date: 2007-04-10 08:08:24 -0600 (Tue, 10 Apr 2007)
New Revision: 2506
Modified:
SQLObject/trunk/sqlobject/col.py
SQLObject/trunk/sqlobject/tests/test_datetime.py
Log:
Fixed a bug in DateValidator caused by datetime being a subclass of date.
Modified: SQLObject/trunk/sqlobject/col.py
===================================================================
--- SQLObject/trunk/sqlobject/col.py 2007-04-10 14:07:42 UTC (rev 2505)
+++ SQLObject/trunk/sqlobject/col.py 2007-04-10 14:08:24 UTC (rev 2506)
@@ -1052,7 +1052,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return datetime.datetime(*stime[:6])
@@ -1084,7 +1084,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return DateTime.mktime(stime)
@@ -1154,6 +1154,8 @@
if datetime_available:
class DateValidator(DateTimeValidator):
def to_python(self, value, state):
+ if isinstance(value, datetime.datetime):
+ value = value.date()
if isinstance(value, datetime.date):
return value
value = super(DateValidator, self).to_python(value, state)
Modified: SQLObject/trunk/sqlobject/tests/test_datetime.py
===================================================================
--- SQLObject/trunk/sqlobject/tests/test_datetime.py 2007-04-10 14:07:42 UTC (rev 2505)
+++ SQLObject/trunk/sqlobject/tests/test_datetime.py 2007-04-10 14:08:24 UTC (rev 2506)
@@ -18,8 +18,7 @@
def test_dateTime():
setupClass(DateTime1)
_now = datetime.now()
- _today = date.today()
- dt1 = DateTime1(col1=_now, col2=_today, col3=_now.time())
+ dt1 = DateTime1(col1=_now, col2=_now, col3=_now.time())
assert isinstance(dt1.col1, datetime)
assert dt1.col1.year == _now.year
@@ -30,9 +29,10 @@
assert dt1.col1.second == int(_now.second)
assert isinstance(dt1.col2, date)
- assert dt1.col2.year == _today.year
- assert dt1.col2.month == _today.month
- assert dt1.col2.day == _today.day
+ assert not isinstance(dt1.col2, datetime)
+ assert dt1.col2.year == _now.year
+ assert dt1.col2.month == _now.month
+ assert dt1.col2.day == _now.day
assert isinstance(dt1.col3, time)
assert dt1.col3.hour == _now.hour
|
|
From: <sub...@co...> - 2007-04-10 14:07:46
|
Author: phd
Date: 2007-04-10 08:07:42 -0600 (Tue, 10 Apr 2007)
New Revision: 2505
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/col.py
SQLObject/branches/0.8/sqlobject/tests/test_datetime.py
Log:
Fixed a bug in DateValidator caused by datetime being a subclass of date.
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-04-10 14:07:07 UTC (rev 2504)
+++ SQLObject/branches/0.8/docs/News.txt 2007-04-10 14:07:42 UTC (rev 2505)
@@ -151,6 +151,8 @@
* Fixed test_deep_inheritance.py - setup classes in the correct order
(required for Postgres 8.0+ which is strict about referential integrity).
+* Fixed a bug in DateValidator caused by datetime being a subclass of date.
+
SQLObject 0.7.4
===============
Modified: SQLObject/branches/0.8/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/col.py 2007-04-10 14:07:07 UTC (rev 2504)
+++ SQLObject/branches/0.8/sqlobject/col.py 2007-04-10 14:07:42 UTC (rev 2505)
@@ -964,7 +964,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return datetime.datetime(*stime[:6])
@@ -996,7 +996,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return DateTime.mktime(stime)
@@ -1067,6 +1067,8 @@
if datetime_available:
class DateValidator(DateTimeValidator):
def to_python(self, value, state):
+ if isinstance(value, datetime.datetime):
+ value = value.date()
if isinstance(value, datetime.date):
return value
value = super(DateValidator, self).to_python(value, state)
Modified: SQLObject/branches/0.8/sqlobject/tests/test_datetime.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/tests/test_datetime.py 2007-04-10 14:07:07 UTC (rev 2504)
+++ SQLObject/branches/0.8/sqlobject/tests/test_datetime.py 2007-04-10 14:07:42 UTC (rev 2505)
@@ -18,8 +18,7 @@
def test_dateTime():
setupClass(DateTime1)
_now = datetime.now()
- _today = date.today()
- dt1 = DateTime1(col1=_now, col2=_today, col3=_now.time())
+ dt1 = DateTime1(col1=_now, col2=_now, col3=_now.time())
assert isinstance(dt1.col1, datetime)
assert dt1.col1.year == _now.year
@@ -30,9 +29,10 @@
assert dt1.col1.second == int(_now.second)
assert isinstance(dt1.col2, date)
- assert dt1.col2.year == _today.year
- assert dt1.col2.month == _today.month
- assert dt1.col2.day == _today.day
+ assert not isinstance(dt1.col2, datetime)
+ assert dt1.col2.year == _now.year
+ assert dt1.col2.month == _now.month
+ assert dt1.col2.day == _now.day
assert isinstance(dt1.col3, time)
assert dt1.col3.hour == _now.hour
|
|
From: <sub...@co...> - 2007-04-10 14:07:13
|
Author: phd
Date: 2007-04-10 08:07:07 -0600 (Tue, 10 Apr 2007)
New Revision: 2504
Modified:
SQLObject/branches/0.7/docs/News.txt
SQLObject/branches/0.7/sqlobject/col.py
SQLObject/branches/0.7/sqlobject/tests/test_datetime.py
Log:
Fixed a bug in DateValidator caused by datetime being a subclass of date.
Modified: SQLObject/branches/0.7/docs/News.txt
===================================================================
--- SQLObject/branches/0.7/docs/News.txt 2007-04-10 06:13:57 UTC (rev 2503)
+++ SQLObject/branches/0.7/docs/News.txt 2007-04-10 14:07:07 UTC (rev 2504)
@@ -16,6 +16,8 @@
* Fixed test_deep_inheritance.py - setup classes in the correct order
(required for Postgres 8.0+ which is strict about referential integrity).
+* Fixed a bug in DateValidator caused by datetime being a subclass of date.
+
SQLObject 0.7.4
===============
Modified: SQLObject/branches/0.7/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.7/sqlobject/col.py 2007-04-10 06:13:57 UTC (rev 2503)
+++ SQLObject/branches/0.7/sqlobject/col.py 2007-04-10 14:07:07 UTC (rev 2504)
@@ -951,7 +951,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return datetime.datetime(*stime[:6])
@@ -983,7 +983,7 @@
try:
stime = time.strptime(value, self.format)
except:
- raise validators.Invalid("expected an date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
+ raise validators.Invalid("expected a date/time string of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
(self.format, self.name, type(value), value), value, state)
return DateTime.mktime(stime)
@@ -1054,6 +1054,8 @@
if datetime_available:
class DateValidator(DateTimeValidator):
def to_python(self, value, state):
+ if isinstance(value, datetime.datetime):
+ value = value.date()
if isinstance(value, datetime.date):
return value
value = super(DateValidator, self).to_python(value, state)
Modified: SQLObject/branches/0.7/sqlobject/tests/test_datetime.py
===================================================================
--- SQLObject/branches/0.7/sqlobject/tests/test_datetime.py 2007-04-10 06:13:57 UTC (rev 2503)
+++ SQLObject/branches/0.7/sqlobject/tests/test_datetime.py 2007-04-10 14:07:07 UTC (rev 2504)
@@ -18,8 +18,7 @@
def test_dateTime():
setupClass(DateTime1)
_now = datetime.now()
- _today = date.today()
- dt1 = DateTime1(col1=_now, col2=_today, col3=_now.time())
+ dt1 = DateTime1(col1=_now, col2=_now, col3=_now.time())
assert isinstance(dt1.col1, datetime)
assert dt1.col1.year == _now.year
@@ -30,9 +29,10 @@
assert dt1.col1.second == int(_now.second)
assert isinstance(dt1.col2, date)
- assert dt1.col2.year == _today.year
- assert dt1.col2.month == _today.month
- assert dt1.col2.day == _today.day
+ assert not isinstance(dt1.col2, datetime)
+ assert dt1.col2.year == _now.year
+ assert dt1.col2.month == _now.month
+ assert dt1.col2.day == _now.day
assert isinstance(dt1.col3, time)
assert dt1.col3.hour == _now.hour
|
|
From: SourceForge.net <no...@so...> - 2007-04-10 13:33:57
|
Bugs item #1696359, was opened at 2007-04-08 13:36 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696359&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: None Group: SQLObject release (specify) >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Shimizukawa Takayuki (shimi-ta) >Assigned to: Oleg Broytmann (phd) Summary: Can not set ForeignKey and Unicode cols at the same time. Initial Comment: on SQLObject-0.8.1 py2.4 Can not set ForeignKey and Unicode cols at the same time. test code:: class Foo(SQLObject): name = UnicodeCol() class User(SQLObject): name = UnicodeCol() foo = ForeignKey('Foo') foo1 = Foo(name="Foo1") foo2 = Foo(name="Foo2") # raise UnicodeDecodeError user = User(name=u'\u8ab0\u304b', fooID=u'2') # raise UnicodeDecodeError user.set(name=u'\u8ab0\u304b', fooID=u'2') ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-04-10 17:33 Message: Logged In: YES user_id=4799 Originator: NO You are passing unicode to the ForeignKey column: fooID=u'2'. You have to pass ID-type (default is integer). The following program works for me: from sqlobject import * __connection__ = "sqlite:/:memory:?debug=1" class Foo(SQLObject): name = UnicodeCol() class User(SQLObject): name = UnicodeCol() foo = ForeignKey('Foo') Foo.createTable() User.createTable() foo1 = Foo(name="Foo1") foo2 = Foo(name="Foo2") user = User(name=u'\u8ab0\u304b', fooID=2) user.set(name=u'\u8ab0\u304b', fooID=2) Output: 1/Query : CREATE TABLE foo ( id INTEGER PRIMARY KEY, name TEXT ) 1/QueryR : CREATE TABLE foo ( id INTEGER PRIMARY KEY, name TEXT ) 2/Query : CREATE TABLE user ( id INTEGER PRIMARY KEY, name TEXT, foo_id INT CONSTRAINT foo_id_exists REFERENCES foo(id) ) 2/QueryR : CREATE TABLE user ( id INTEGER PRIMARY KEY, name TEXT, foo_id INT CONSTRAINT foo_id_exists REFERENCES foo(id) ) 3/QueryIns: INSERT INTO foo (name) VALUES ('Foo1') 3/QueryR : INSERT INTO foo (name) VALUES ('Foo1') 4/QueryOne: SELECT name FROM foo WHERE id = (1) 4/QueryR : SELECT name FROM foo WHERE id = (1) 5/QueryIns: INSERT INTO foo (name) VALUES ('Foo2') 5/QueryR : INSERT INTO foo (name) VALUES ('Foo2') 6/QueryOne: SELECT name FROM foo WHERE id = (2) 6/QueryR : SELECT name FROM foo WHERE id = (2) 7/QueryIns: INSERT INTO user (foo_id, name) VALUES (2, '誰ã') 7/QueryR : INSERT INTO user (foo_id, name) VALUES (2, '誰ã') 8/QueryOne: SELECT name, foo_id FROM user WHERE id = (1) 8/QueryR : SELECT name, foo_id FROM user WHERE id = (1) 9/Query : UPDATE user SET foo_id = (2), name = ('誰ã') WHERE id = (1) 9/QueryR : UPDATE user SET foo_id = (2), name = ('誰ã') WHERE id = (1) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1696359&group_id=74338 |
|
From: <sub...@co...> - 2007-04-09 15:25:07
|
Author: phd
Date: 2007-04-09 09:25:03 -0600 (Mon, 09 Apr 2007)
New Revision: 2500
Modified:
home/phd/SQLObject/paramstyles/sqlobject/conftest.py
home/phd/SQLObject/paramstyles/sqlobject/dbconnection.py
home/phd/SQLObject/paramstyles/sqlobject/inheritance/tests/test_deep_inheritance.py
Log:
Merged patches from the revisions 2483:2499 from the trunk
Modified: home/phd/SQLObject/paramstyles/sqlobject/conftest.py
===================================================================
--- home/phd/SQLObject/paramstyles/sqlobject/conftest.py 2007-04-09 15:19:59 UTC (rev 2499)
+++ home/phd/SQLObject/paramstyles/sqlobject/conftest.py 2007-04-09 15:25:03 UTC (rev 2500)
@@ -30,8 +30,8 @@
'mssql': 'mssql://sa:@127.0.0.1/test'
}
-Option = py.test.Config.Option
-option = py.test.Config.addoptions(
+Option = py.test.config.Option
+option = py.test.config.addoptions(
"SQLObject options",
Option('-D', '--Database',
action="store", dest="Database", default='sqlite',
Modified: home/phd/SQLObject/paramstyles/sqlobject/dbconnection.py
===================================================================
--- home/phd/SQLObject/paramstyles/sqlobject/dbconnection.py 2007-04-09 15:19:59 UTC (rev 2499)
+++ home/phd/SQLObject/paramstyles/sqlobject/dbconnection.py 2007-04-09 15:25:03 UTC (rev 2500)
@@ -1022,9 +1022,17 @@
"""
# @@: In Python 2.5, something usable with with: should also
# be added.
- old_conn = self.getConnection()
+ try:
+ old_conn = self.threadingLocal.connection
+ old_conn_is_threading = True
+ except AttributeError:
+ old_conn = self.processConnection
+ old_conn_is_threading = False
conn = old_conn.transaction()
- self.threadConnection = conn
+ if old_conn_is_threading:
+ self.threadConnection = conn
+ else:
+ self.processConnection = conn
try:
try:
value = func(*args, **kw)
@@ -1035,7 +1043,10 @@
conn.commit(close=True)
return value
finally:
- self.threadConnection = old_conn
+ if old_conn_is_threading:
+ self.threadConnection = old_conn
+ else:
+ self.processConnection = old_conn
def _set_threadConnection(self, value):
self.threadingLocal.connection = value
Modified: home/phd/SQLObject/paramstyles/sqlobject/inheritance/tests/test_deep_inheritance.py
===================================================================
--- home/phd/SQLObject/paramstyles/sqlobject/inheritance/tests/test_deep_inheritance.py 2007-04-09 15:19:59 UTC (rev 2499)
+++ home/phd/SQLObject/paramstyles/sqlobject/inheritance/tests/test_deep_inheritance.py 2007-04-09 15:25:03 UTC (rev 2500)
@@ -23,12 +23,10 @@
Try to creae an Manager without specifying a position.
this should fail without leaving any partial records in
the database.
+
"""
+ setupClass([DIManager, DIEmployee, DIPerson])
- setupClass(DIManager)
- setupClass(DIEmployee)
- setupClass(DIPerson)
-
kwargs ={'firstName':'John', 'lastname':'Doe'}
raises(TypeError, DIManager, **kwargs)
#what we really need to check for is partial records in the database.
@@ -37,13 +35,8 @@
assert persons.count() == 0
def test_deep_inheritance():
+ setupClass([DIManager, DIEmployee, DIPerson])
- cache = getConnection().cache
-
- setupClass(DIManager)
- setupClass(DIEmployee)
- setupClass(DIPerson)
-
manager = DIManager(firstName='Project', lastName='Manager',
position='Project Manager')
manager_id = manager.id
@@ -51,6 +44,8 @@
position='Project leader', manager=manager).id
person_id = DIPerson(firstName='Oneof', lastName='Authors',
manager=manager).id
+
+ cache = getConnection().cache
cache.clear()
managers = list(DIManager.select())
|