sqlobject-cvs Mailing List for SQLObject (Page 87)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
(9) |
Apr
(74) |
May
(29) |
Jun
(16) |
Jul
(28) |
Aug
(10) |
Sep
(57) |
Oct
(9) |
Nov
(29) |
Dec
(12) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(7) |
Feb
(14) |
Mar
(6) |
Apr
(3) |
May
(12) |
Jun
(34) |
Jul
(9) |
Aug
(29) |
Sep
(22) |
Oct
(2) |
Nov
(15) |
Dec
(52) |
| 2005 |
Jan
(47) |
Feb
(78) |
Mar
(14) |
Apr
(35) |
May
(33) |
Jun
(16) |
Jul
(26) |
Aug
(63) |
Sep
(40) |
Oct
(96) |
Nov
(96) |
Dec
(123) |
| 2006 |
Jan
(159) |
Feb
(144) |
Mar
(64) |
Apr
(31) |
May
(88) |
Jun
(48) |
Jul
(16) |
Aug
(64) |
Sep
(87) |
Oct
(92) |
Nov
(56) |
Dec
(76) |
| 2007 |
Jan
(94) |
Feb
(103) |
Mar
(126) |
Apr
(123) |
May
(85) |
Jun
(11) |
Jul
(130) |
Aug
(47) |
Sep
(65) |
Oct
(70) |
Nov
(12) |
Dec
(11) |
| 2008 |
Jan
(30) |
Feb
(55) |
Mar
(88) |
Apr
(20) |
May
(50) |
Jun
|
Jul
(38) |
Aug
(1) |
Sep
(9) |
Oct
(5) |
Nov
(6) |
Dec
(39) |
| 2009 |
Jan
(8) |
Feb
(16) |
Mar
(3) |
Apr
(33) |
May
(44) |
Jun
(1) |
Jul
(10) |
Aug
(33) |
Sep
(74) |
Oct
(22) |
Nov
|
Dec
(15) |
| 2010 |
Jan
(28) |
Feb
(22) |
Mar
(46) |
Apr
(29) |
May
(1) |
Jun
(1) |
Jul
(27) |
Aug
(8) |
Sep
(5) |
Oct
(33) |
Nov
(24) |
Dec
(41) |
| 2011 |
Jan
(4) |
Feb
(12) |
Mar
(35) |
Apr
(29) |
May
(19) |
Jun
(16) |
Jul
(32) |
Aug
(25) |
Sep
(5) |
Oct
(11) |
Nov
(21) |
Dec
(12) |
| 2012 |
Jan
(3) |
Feb
(4) |
Mar
(20) |
Apr
(4) |
May
(25) |
Jun
(13) |
Jul
|
Aug
|
Sep
(2) |
Oct
(25) |
Nov
(9) |
Dec
(1) |
| 2013 |
Jan
(6) |
Feb
(8) |
Mar
|
Apr
(10) |
May
(31) |
Jun
(7) |
Jul
(18) |
Aug
(33) |
Sep
(4) |
Oct
(16) |
Nov
|
Dec
(27) |
| 2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
(11) |
May
(39) |
Jun
(8) |
Jul
(11) |
Aug
(4) |
Sep
|
Oct
(27) |
Nov
|
Dec
(71) |
| 2015 |
Jan
(17) |
Feb
(47) |
Mar
(33) |
Apr
|
May
|
Jun
(9) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(8) |
| 2016 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
|
May
(12) |
Jun
(7) |
Jul
(9) |
Aug
(31) |
Sep
(8) |
Oct
(3) |
Nov
(15) |
Dec
(1) |
| 2017 |
Jan
(13) |
Feb
(7) |
Mar
(14) |
Apr
(8) |
May
(10) |
Jun
(4) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(4) |
Dec
(5) |
| 2018 |
Jan
(2) |
Feb
(8) |
Mar
|
Apr
(4) |
May
|
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2019 |
Jan
(1) |
Feb
(16) |
Mar
(1) |
Apr
(3) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(3) |
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
(4) |
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(4) |
Dec
|
| 2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(9) |
| 2025 |
Jan
|
Feb
(4) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
(2) |
|
From: <sub...@co...> - 2007-07-20 07:54:48
|
Author: phd
Date: 2007-07-20 01:54:27 -0600 (Fri, 20 Jul 2007)
New Revision: 2769
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/col.py
Log:
Fixed a bug in col.createSQL().
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-07-20 07:54:03 UTC (rev 2768)
+++ SQLObject/branches/0.8/docs/News.txt 2007-07-20 07:54:27 UTC (rev 2769)
@@ -193,6 +193,8 @@
* Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring
the class lock.
+* Fixed a bug in col.createSQL().
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.8/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/col.py 2007-07-20 07:54:03 UTC (rev 2768)
+++ SQLObject/branches/0.8/sqlobject/col.py 2007-07-20 07:54:27 UTC (rev 2769)
@@ -285,7 +285,7 @@
return r + '>'
def createSQL(self):
- return ' '.join([self._sqlType() + self._extraSQL()])
+ return ' '.join([self._sqlType()] + self._extraSQL())
def _extraSQL(self):
result = []
|
|
From: <sub...@co...> - 2007-07-20 07:54:09
|
Author: phd
Date: 2007-07-20 01:54:03 -0600 (Fri, 20 Jul 2007)
New Revision: 2768
Modified:
SQLObject/branches/0.7/docs/News.txt
SQLObject/branches/0.7/sqlobject/col.py
Log:
Fixed a bug in col.createSQL().
Modified: SQLObject/branches/0.7/docs/News.txt
===================================================================
--- SQLObject/branches/0.7/docs/News.txt 2007-07-19 18:20:47 UTC (rev 2767)
+++ SQLObject/branches/0.7/docs/News.txt 2007-07-20 07:54:03 UTC (rev 2768)
@@ -28,6 +28,8 @@
* Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring
the class lock.
+* Fixed a bug in col.createSQL().
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.7/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.7/sqlobject/col.py 2007-07-19 18:20:47 UTC (rev 2767)
+++ SQLObject/branches/0.7/sqlobject/col.py 2007-07-20 07:54:03 UTC (rev 2768)
@@ -282,7 +282,7 @@
return r + '>'
def createSQL(self):
- return ' '.join([self._sqlType() + self._extraSQL()])
+ return ' '.join([self._sqlType()] + self._extraSQL())
def _extraSQL(self):
result = []
|
|
From: Tristan W. <tk...@co...> - 2007-07-20 06:48:10
|
Thank you for your loan request, which we recieved yesterday. We'd like to inform you that we are accepting your application. We are ready to give you= a $272,000 loan (Approved refinance) for a low month payment. Approval proces= s will take only 1 minute. Please visit the confirmation link below and fill-= out our short 30 second form. http://zalqthh.com |
|
From: SourceForge.net <no...@so...> - 2007-07-20 03:30:30
|
Bugs item #1757262, was opened at 2007-07-19 20:30 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=1757262&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: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: DateCols break for years <1000 on SQLite Initial Comment: I'm using SQLObject 0.9.0 with a SQLite database. If I have the schema: class Test(SQLObject): val = DateCol() and try to create an instance with the year < 1000: x = Test(val=date(900, 2, 1)) I get an exception: formencode.api.Invalid: expected a date/time string of the '%Y-%m-%d' format in the DateTimeCol 'val', got <type 'str'> ' 900-02-01' instead I traced this to converters.py; on my Ubuntu 7.04 system, at least, time.strftime requires leading zeros for %Y, while the DateTimeConverter and DateConverter generate the year with the format string %4d. Changing the two format strings to use %04d fixed the bug for me. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1757262&group_id=74338 |
|
From: Toby L. <a-1...@aa...> - 2007-07-19 18:32:16
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> </HEAD> <BODY> Hello! I am bored tonight. I am nice girl that would like to chat with you. Email me at yu...@im... only, because I am writing not from my personal email. Don't miss some of my naughty pictures. </BODY></HTML> |
|
From: <sub...@co...> - 2007-07-19 13:18:38
|
Author: phd Date: 2007-07-19 07:18:34 -0600 (Thu, 19 Jul 2007) New Revision: 2766 Modified: SQLObject/docs/News.txt Log: A patch by Andy Grover <an...@gr...>: Suppress the second RowUpdateSignal in .set() called from ._SO_setValue(). Modified: SQLObject/docs/News.txt =================================================================== --- SQLObject/docs/News.txt 2007-07-19 13:18:07 UTC (rev 2765) +++ SQLObject/docs/News.txt 2007-07-19 13:18:34 UTC (rev 2766) @@ -73,6 +73,14 @@ * idName can be inherited from the parent sqlmeta class. +SQLObject 0.8.5 +=============== + +Small Features +-------------- + +* Suppress the second RowUpdateSignal in .set() called from ._SO_setValue(). + SQLObject 0.8.4 =============== |
|
From: <sub...@co...> - 2007-07-19 13:18:11
|
Author: phd
Date: 2007-07-19 07:18:07 -0600 (Thu, 19 Jul 2007)
New Revision: 2765
Modified:
SQLObject/trunk/sqlobject/main.py
Log:
A patch by Andy Grover <an...@gr...>:
Suppress the second RowUpdateSignal in .set() called from ._SO_setValue().
Modified: SQLObject/trunk/sqlobject/main.py
===================================================================
--- SQLObject/trunk/sqlobject/main.py 2007-07-19 13:17:27 UTC (rev 2764)
+++ SQLObject/trunk/sqlobject/main.py 2007-07-19 13:18:07 UTC (rev 2765)
@@ -1044,7 +1044,11 @@
if not self.sqlmeta._creating:
self.sqlmeta.send(events.RowUpdateSignal, self, d)
if len(d) != 1 or name not in d:
- return self.set(**d)
+ # Already called RowUpdateSignal, don't call it again
+ # inside .set()
+ self.sqlmeta.row_update_sig_suppress = True
+ self.set(**d)
+ del self.sqlmeta.row_update_sig_suppress
value = d[name]
if from_python:
dbValue = from_python(value, self._SO_validatorState)
@@ -1066,7 +1070,7 @@
setattr(self, instanceName(name), value)
def set(self, **kw):
- if not self.sqlmeta._creating:
+ if not self.sqlmeta._creating and not getattr(self.sqlmeta, "row_update_sig_suppress", False):
self.sqlmeta.send(events.RowUpdateSignal, self, kw)
# set() is used to update multiple values at once,
# potentially with one SQL statement if possible.
|
|
From: <sub...@co...> - 2007-07-19 13:17:31
|
Author: phd
Date: 2007-07-19 07:17:27 -0600 (Thu, 19 Jul 2007)
New Revision: 2764
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/sqlobject/main.py
Log:
A patch by Andy Grover <an...@gr...>:
Suppress the second RowUpdateSignal in .set() called from ._SO_setValue().
Modified: SQLObject/branches/0.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2007-07-19 13:16:36 UTC (rev 2763)
+++ SQLObject/branches/0.9/docs/News.txt 2007-07-19 13:17:27 UTC (rev 2764)
@@ -72,6 +72,14 @@
* idName can be inherited from the parent sqlmeta class.
+SQLObject 0.8.5
+===============
+
+Small Features
+--------------
+
+* Suppress the second RowUpdateSignal in .set() called from ._SO_setValue().
+
SQLObject 0.8.4
===============
Modified: SQLObject/branches/0.9/sqlobject/main.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/main.py 2007-07-19 13:16:36 UTC (rev 2763)
+++ SQLObject/branches/0.9/sqlobject/main.py 2007-07-19 13:17:27 UTC (rev 2764)
@@ -1044,7 +1044,11 @@
if not self.sqlmeta._creating:
self.sqlmeta.send(events.RowUpdateSignal, self, d)
if len(d) != 1 or name not in d:
- return self.set(**d)
+ # Already called RowUpdateSignal, don't call it again
+ # inside .set()
+ self.sqlmeta.row_update_sig_suppress = True
+ self.set(**d)
+ del self.sqlmeta.row_update_sig_suppress
value = d[name]
if from_python:
dbValue = from_python(value, self._SO_validatorState)
@@ -1066,7 +1070,7 @@
setattr(self, instanceName(name), value)
def set(self, **kw):
- if not self.sqlmeta._creating:
+ if not self.sqlmeta._creating and not getattr(self.sqlmeta, "row_update_sig_suppress", False):
self.sqlmeta.send(events.RowUpdateSignal, self, kw)
# set() is used to update multiple values at once,
# potentially with one SQL statement if possible.
|
|
From: <sub...@co...> - 2007-07-19 13:16:44
|
Author: phd
Date: 2007-07-19 07:16:36 -0600 (Thu, 19 Jul 2007)
New Revision: 2763
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/main.py
Log:
A patch by Andy Grover <an...@gr...>:
Suppress the second RowUpdateSignal in .set() called from ._SO_setValue().
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-07-17 14:13:46 UTC (rev 2762)
+++ SQLObject/branches/0.8/docs/News.txt 2007-07-19 13:16:36 UTC (rev 2763)
@@ -7,6 +7,14 @@
.. _start:
+SQLObject 0.8.5
+===============
+
+Small Features
+--------------
+
+* Suppress the second RowUpdateSignal in .set() called from ._SO_setValue().
+
SQLObject 0.8.4
===============
Modified: SQLObject/branches/0.8/sqlobject/main.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/main.py 2007-07-17 14:13:46 UTC (rev 2762)
+++ SQLObject/branches/0.8/sqlobject/main.py 2007-07-19 13:16:36 UTC (rev 2763)
@@ -1061,7 +1061,11 @@
if not self.sqlmeta._creating:
self.sqlmeta.send(events.RowUpdateSignal, self, d)
if len(d) != 1 or name not in d:
- return self.set(**d)
+ # Already called RowUpdateSignal, don't call it again
+ # inside .set()
+ self.sqlmeta.row_update_sig_suppress = True
+ self.set(**d)
+ del self.sqlmeta.row_update_sig_suppress
value = d[name]
if from_python:
dbValue = from_python(value, self._SO_validatorState)
@@ -1083,7 +1087,7 @@
setattr(self, instanceName(name), value)
def set(self, **kw):
- if not self.sqlmeta._creating:
+ if not self.sqlmeta._creating and not getattr(self.sqlmeta, "row_update_sig_suppress", False):
self.sqlmeta.send(events.RowUpdateSignal, self, kw)
# set() is used to update multiple values at once,
# potentially with one SQL statement if possible.
|
|
From: Cyrus H. <hi...@ch...> - 2007-07-18 05:30:15
|
Thank you for your loan request, which we recieved yesterday. We'd like to inform you that we are accepting your application. We are ready to give you= a $272,000 loan (Approved refinance) for a low month payment. Approval proces= s will take only 1 minute. Please visit the confirmation link below and fill-= out our short 30 second form. http://girqaffe.com |
|
From: Brady M. <9_g...@gu...> - 2007-07-18 05:09:05
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> </HEAD> <BODY> Hello! I am tired tonight. I am nice girl that would like to chat with you. Email me at dv...@im... only, because I am writing not from my personal email. Hope you will like my pictures. </BODY></HTML> |
Friends I haven't seen for more than a year don't even recognize me. I'm continuing Anatrim to reach my goal of 115 lbs. http://www.modet.hk |
|
From: Sqlobject-c. <bon...@ho...> - 2007-07-17 21:14:06
|
The easiest, safest and the most reliable way to boost up your virility! Save your time and money with our low discount prices and express delivery! Test the brand-name quality – and you will feel the difference! http://Tapia.justface.hk |
|
From: <sub...@co...> - 2007-07-17 14:13:53
|
Author: phd Date: 2007-07-17 08:13:46 -0600 (Tue, 17 Jul 2007) New Revision: 2762 Modified: SQLObject/docs/News.txt Log: A patch by Bernhard <ber...@zk...>: Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring the class lock. Modified: SQLObject/docs/News.txt =================================================================== --- SQLObject/docs/News.txt 2007-07-17 14:13:01 UTC (rev 2761) +++ SQLObject/docs/News.txt 2007-07-17 14:13:46 UTC (rev 2762) @@ -248,6 +248,9 @@ * Fixed a bug with default field values for columns for firebird connection. +* Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring + the class lock. + SQLObject 0.7.7 =============== |
|
From: <sub...@co...> - 2007-07-17 14:13:27
|
Author: phd
Date: 2007-07-17 08:13:01 -0600 (Tue, 17 Jul 2007)
New Revision: 2761
Modified:
SQLObject/trunk/sqlobject/declarative.py
Log:
A patch by Bernhard <ber...@zk...>:
Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring the class lock.
Modified: SQLObject/trunk/sqlobject/declarative.py
===================================================================
--- SQLObject/trunk/sqlobject/declarative.py 2007-07-17 14:12:46 UTC (rev 2760)
+++ SQLObject/trunk/sqlobject/declarative.py 2007-07-17 14:13:01 UTC (rev 2761)
@@ -89,6 +89,10 @@
def threadSafeMethod(lock):
def decorator(fn):
def _wrapper(self, *args, **kwargs):
+ # This prevents deadlocks.
+ # The class lock isn't really needed in __init__() while fetching.
+ if '_SO_fetch_no_create' in kwargs:
+ return fn(self, *args, **kwargs)
lock.acquire()
try:
return fn(self, *args, **kwargs)
|
|
From: <sub...@co...> - 2007-07-17 14:13:09
|
Author: phd
Date: 2007-07-17 08:12:46 -0600 (Tue, 17 Jul 2007)
New Revision: 2760
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/sqlobject/declarative.py
Log:
A patch by Bernhard <ber...@zk...>:
Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring the class lock.
Modified: SQLObject/branches/0.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2007-07-17 14:12:29 UTC (rev 2759)
+++ SQLObject/branches/0.9/docs/News.txt 2007-07-17 14:12:46 UTC (rev 2760)
@@ -247,6 +247,9 @@
* Fixed a bug with default field values for columns for firebird connection.
+* Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring
+ the class lock.
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.9/sqlobject/declarative.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/declarative.py 2007-07-17 14:12:29 UTC (rev 2759)
+++ SQLObject/branches/0.9/sqlobject/declarative.py 2007-07-17 14:12:46 UTC (rev 2760)
@@ -89,6 +89,10 @@
def threadSafeMethod(lock):
def decorator(fn):
def _wrapper(self, *args, **kwargs):
+ # This prevents deadlocks.
+ # The class lock isn't really needed in __init__() while fetching.
+ if '_SO_fetch_no_create' in kwargs:
+ return fn(self, *args, **kwargs)
lock.acquire()
try:
return fn(self, *args, **kwargs)
|
|
From: <sub...@co...> - 2007-07-17 14:12:42
|
Author: phd
Date: 2007-07-17 08:12:29 -0600 (Tue, 17 Jul 2007)
New Revision: 2759
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/declarative.py
Log:
A patch by Bernhard <ber...@zk...>:
Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring the class lock.
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-07-17 14:11:35 UTC (rev 2758)
+++ SQLObject/branches/0.8/docs/News.txt 2007-07-17 14:12:29 UTC (rev 2759)
@@ -182,6 +182,9 @@
* Fixed a bug with default field values for columns for firebird connection.
+* Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring
+ the class lock.
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.8/sqlobject/declarative.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/declarative.py 2007-07-17 14:11:35 UTC (rev 2758)
+++ SQLObject/branches/0.8/sqlobject/declarative.py 2007-07-17 14:12:29 UTC (rev 2759)
@@ -89,6 +89,10 @@
def threadSafeMethod(lock):
def decorator(fn):
def _wrapper(self, *args, **kwargs):
+ # This prevents deadlocks.
+ # The class lock isn't really needed in __init__() while fetching.
+ if '_SO_fetch_no_create' in kwargs:
+ return fn(self, *args, **kwargs)
lock.acquire()
try:
return fn(self, *args, **kwargs)
|
|
From: <sub...@co...> - 2007-07-17 14:11:49
|
Author: phd
Date: 2007-07-17 08:11:35 -0600 (Tue, 17 Jul 2007)
New Revision: 2758
Modified:
SQLObject/branches/0.7/docs/News.txt
SQLObject/branches/0.7/sqlobject/declarative.py
Log:
A patch by Bernhard <ber...@zk...>:
Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring the class lock.
Modified: SQLObject/branches/0.7/docs/News.txt
===================================================================
--- SQLObject/branches/0.7/docs/News.txt 2007-07-16 12:10:23 UTC (rev 2757)
+++ SQLObject/branches/0.7/docs/News.txt 2007-07-17 14:11:35 UTC (rev 2758)
@@ -25,6 +25,9 @@
* Fixed a bug with default field values for columns for firebird connection.
+* Prevent a deadlock in declarative.threadSafeMethod() by not reacquiring
+ the class lock.
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.7/sqlobject/declarative.py
===================================================================
--- SQLObject/branches/0.7/sqlobject/declarative.py 2007-07-16 12:10:23 UTC (rev 2757)
+++ SQLObject/branches/0.7/sqlobject/declarative.py 2007-07-17 14:11:35 UTC (rev 2758)
@@ -88,6 +88,10 @@
def threadSafeMethod(lock):
def decorator(fn):
def _wrapper(self, *args, **kwargs):
+ # This prevents deadlocks.
+ # The class lock isn't really needed in __init__() while fetching.
+ if '_SO_fetch_no_create' in kwargs:
+ return fn(self, *args, **kwargs)
lock.acquire()
try:
return fn(self, *args, **kwargs)
|
|
From: <sub...@co...> - 2007-07-16 12:10:28
|
Author: phd Date: 2007-07-16 06:10:23 -0600 (Mon, 16 Jul 2007) New Revision: 2757 Modified: SQLObject/docs/News.txt Log: Applied the patch N 1745239: Fixed a bug with default field values for columns for firebird connection. Modified: SQLObject/docs/News.txt =================================================================== --- SQLObject/docs/News.txt 2007-07-16 12:08:54 UTC (rev 2756) +++ SQLObject/docs/News.txt 2007-07-16 12:10:23 UTC (rev 2757) @@ -233,6 +233,9 @@ SQLObject 0.7.8 =============== +Bug Fixes +--------- + * Replaced calls to style.dbColumnToPythonAttr() in joins.py by name/dbName lookup in case the user named columns differently using dbName. @@ -243,6 +246,8 @@ * Minor fix in FirebirdConnection.fromDatabase. +* Fixed a bug with default field values for columns for firebird connection. + SQLObject 0.7.7 =============== |
|
From: SourceForge.net <no...@so...> - 2007-07-16 12:09:48
|
Patches item #1745239, was opened at 2007-06-29 14:03 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1745239&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: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: acson-sw (acson-sw) >Assigned to: Oleg Broytmann (phd) Summary: Default field values Initial Comment: Fixed bug with default field values for columns for firebird connection. Default domen values are used too ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-07-16 16:09 Message: Logged In: YES user_id=4799 Originator: NO Applied and committed in the revisions 2753-2757 (branches 0.7, 0.8, 0.9, the trunk and the docs). Thank you! PS. Your patches are slightly invalid - they don't have correct "Index:" header. This patch conflicts with the previous patch. Next time please attach more correct patches. "svn diff" or "diff -c" would be the best. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1745239&group_id=74338 |
|
From: <sub...@co...> - 2007-07-16 12:08:58
|
Author: phd
Date: 2007-07-16 06:08:54 -0600 (Mon, 16 Jul 2007)
New Revision: 2756
Modified:
SQLObject/trunk/sqlobject/firebird/firebirdconnection.py
Log:
Applied the patch N 1745239: Fixed a bug with default field values for columns for firebird connection.
Modified: SQLObject/trunk/sqlobject/firebird/firebirdconnection.py
===================================================================
--- SQLObject/trunk/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:08:08 UTC (rev 2755)
+++ SQLObject/trunk/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:08:54 UTC (rev 2756)
@@ -173,26 +173,27 @@
"""
fieldqry = """\
- SELECT RDB$RELATION_FIELDS.RDB$FIELD_NAME as field,
- RDB$TYPES.RDB$TYPE_NAME as t,
- RDB$FIELDS.RDB$FIELD_LENGTH as flength,
- RDB$FIELDS.RDB$FIELD_SCALE as fscale,
- RDB$RELATION_FIELDS.RDB$NULL_FLAG as nullAllowed,
- RDB$RELATION_FIELDS.RDB$DEFAULT_VALUE as thedefault,
- RDB$FIELDS.RDB$FIELD_SUB_TYPE as blobtype
- FROM RDB$RELATION_FIELDS
- INNER JOIN RDB$FIELDS ON
- (RDB$RELATION_FIELDS.RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME)
- INNER JOIN RDB$TYPES ON (RDB$FIELDS.RDB$FIELD_TYPE =
- RDB$TYPES.RDB$TYPE)
- WHERE
- (RDB$RELATION_FIELDS.RDB$RELATION_NAME = '%s')
- AND (RDB$TYPES.RDB$FIELD_NAME = 'RDB$FIELD_TYPE')"""
+ SELECT rf.RDB$FIELD_NAME as field,
+ t.RDB$TYPE_NAME as t,
+ f.RDB$FIELD_LENGTH as flength,
+ f.RDB$FIELD_SCALE as fscale,
+ rf.RDB$NULL_FLAG as nullAllowed,
+ coalesce(rf.RDB$DEFAULT_SOURCE, f.rdb$default_source) as thedefault,
+ f.RDB$FIELD_SUB_TYPE as blobtype
+ FROM RDB$RELATION_FIELDS rf
+ INNER JOIN RDB$FIELDS f ON rf.RDB$FIELD_SOURCE = f.RDB$FIELD_NAME
+ INNER JOIN RDB$TYPES t ON f.RDB$FIELD_TYPE = t.RDB$TYPE
+ WHERE rf.RDB$RELATION_NAME = '%s'
+ AND t.RDB$FIELD_NAME = 'RDB$FIELD_TYPE'"""
colData = self.queryAll(fieldqry % tableName.upper())
results = []
for field, t, flength, fscale, nullAllowed, thedefault, blobType in colData:
- field = field.strip()
+ field = field.strip().lower()
+ if thedefault:
+ thedefault = thedefault.split(' ')[1]
+ if thedefault.startswith("'") and thedefault.endswith("'"):
+ thedefault = thedefault[1:-1]
idName = str(soClass.sqlmeta.idName or 'id').upper()
if field.upper() == idName:
continue
|
|
From: <sub...@co...> - 2007-07-16 12:08:12
|
Author: phd
Date: 2007-07-16 06:08:08 -0600 (Mon, 16 Jul 2007)
New Revision: 2755
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/sqlobject/firebird/firebirdconnection.py
Log:
Applied the patch N 1745239: Fixed a bug with default field values for columns for firebird connection.
Modified: SQLObject/branches/0.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2007-07-16 12:06:41 UTC (rev 2754)
+++ SQLObject/branches/0.9/docs/News.txt 2007-07-16 12:08:08 UTC (rev 2755)
@@ -232,6 +232,9 @@
SQLObject 0.7.8
===============
+Bug Fixes
+---------
+
* Replaced calls to style.dbColumnToPythonAttr() in joins.py by name/dbName
lookup in case the user named columns differently using dbName.
@@ -242,6 +245,8 @@
* Minor fix in FirebirdConnection.fromDatabase.
+* Fixed a bug with default field values for columns for firebird connection.
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.9/sqlobject/firebird/firebirdconnection.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:06:41 UTC (rev 2754)
+++ SQLObject/branches/0.9/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:08:08 UTC (rev 2755)
@@ -172,26 +172,27 @@
"""
fieldqry = """\
- SELECT RDB$RELATION_FIELDS.RDB$FIELD_NAME as field,
- RDB$TYPES.RDB$TYPE_NAME as t,
- RDB$FIELDS.RDB$FIELD_LENGTH as flength,
- RDB$FIELDS.RDB$FIELD_SCALE as fscale,
- RDB$RELATION_FIELDS.RDB$NULL_FLAG as nullAllowed,
- RDB$RELATION_FIELDS.RDB$DEFAULT_VALUE as thedefault,
- RDB$FIELDS.RDB$FIELD_SUB_TYPE as blobtype
- FROM RDB$RELATION_FIELDS
- INNER JOIN RDB$FIELDS ON
- (RDB$RELATION_FIELDS.RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME)
- INNER JOIN RDB$TYPES ON (RDB$FIELDS.RDB$FIELD_TYPE =
- RDB$TYPES.RDB$TYPE)
- WHERE
- (RDB$RELATION_FIELDS.RDB$RELATION_NAME = '%s')
- AND (RDB$TYPES.RDB$FIELD_NAME = 'RDB$FIELD_TYPE')"""
+ SELECT rf.RDB$FIELD_NAME as field,
+ t.RDB$TYPE_NAME as t,
+ f.RDB$FIELD_LENGTH as flength,
+ f.RDB$FIELD_SCALE as fscale,
+ rf.RDB$NULL_FLAG as nullAllowed,
+ coalesce(rf.RDB$DEFAULT_SOURCE, f.rdb$default_source) as thedefault,
+ f.RDB$FIELD_SUB_TYPE as blobtype
+ FROM RDB$RELATION_FIELDS rf
+ INNER JOIN RDB$FIELDS f ON rf.RDB$FIELD_SOURCE = f.RDB$FIELD_NAME
+ INNER JOIN RDB$TYPES t ON f.RDB$FIELD_TYPE = t.RDB$TYPE
+ WHERE rf.RDB$RELATION_NAME = '%s'
+ AND t.RDB$FIELD_NAME = 'RDB$FIELD_TYPE'"""
colData = self.queryAll(fieldqry % tableName.upper())
results = []
for field, t, flength, fscale, nullAllowed, thedefault, blobType in colData:
- field = field.strip()
+ field = field.strip().lower()
+ if thedefault:
+ thedefault = thedefault.split(' ')[1]
+ if thedefault.startswith("'") and thedefault.endswith("'"):
+ thedefault = thedefault[1:-1]
idName = str(soClass.sqlmeta.idName or 'id').upper()
if field.upper() == idName:
continue
|
|
From: <sub...@co...> - 2007-07-16 12:06:44
|
Author: phd
Date: 2007-07-16 06:06:41 -0600 (Mon, 16 Jul 2007)
New Revision: 2754
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py
Log:
Applied the patch N 1745239: Fixed a bug with default field values for columns for firebird connection.
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-07-16 12:05:22 UTC (rev 2753)
+++ SQLObject/branches/0.8/docs/News.txt 2007-07-16 12:06:41 UTC (rev 2754)
@@ -167,6 +167,9 @@
SQLObject 0.7.8
===============
+Bug Fixes
+---------
+
* Replaced calls to style.dbColumnToPythonAttr() in joins.py by name/dbName
lookup in case the user named columns differently using dbName.
@@ -177,6 +180,8 @@
* Minor fix in FirebirdConnection.fromDatabase.
+* Fixed a bug with default field values for columns for firebird connection.
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:05:22 UTC (rev 2753)
+++ SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:06:41 UTC (rev 2754)
@@ -174,26 +174,27 @@
"""
fieldqry = """\
- SELECT RDB$RELATION_FIELDS.RDB$FIELD_NAME as field,
- RDB$TYPES.RDB$TYPE_NAME as t,
- RDB$FIELDS.RDB$FIELD_LENGTH as flength,
- RDB$FIELDS.RDB$FIELD_SCALE as fscale,
- RDB$RELATION_FIELDS.RDB$NULL_FLAG as nullAllowed,
- RDB$RELATION_FIELDS.RDB$DEFAULT_VALUE as thedefault,
- RDB$FIELDS.RDB$FIELD_SUB_TYPE as blobtype
- FROM RDB$RELATION_FIELDS
- INNER JOIN RDB$FIELDS ON
- (RDB$RELATION_FIELDS.RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME)
- INNER JOIN RDB$TYPES ON (RDB$FIELDS.RDB$FIELD_TYPE =
- RDB$TYPES.RDB$TYPE)
- WHERE
- (RDB$RELATION_FIELDS.RDB$RELATION_NAME = '%s')
- AND (RDB$TYPES.RDB$FIELD_NAME = 'RDB$FIELD_TYPE')"""
+ SELECT rf.RDB$FIELD_NAME as field,
+ t.RDB$TYPE_NAME as t,
+ f.RDB$FIELD_LENGTH as flength,
+ f.RDB$FIELD_SCALE as fscale,
+ rf.RDB$NULL_FLAG as nullAllowed,
+ coalesce(rf.RDB$DEFAULT_SOURCE, f.rdb$default_source) as thedefault,
+ f.RDB$FIELD_SUB_TYPE as blobtype
+ FROM RDB$RELATION_FIELDS rf
+ INNER JOIN RDB$FIELDS f ON rf.RDB$FIELD_SOURCE = f.RDB$FIELD_NAME
+ INNER JOIN RDB$TYPES t ON f.RDB$FIELD_TYPE = t.RDB$TYPE
+ WHERE rf.RDB$RELATION_NAME = '%s'
+ AND t.RDB$FIELD_NAME = 'RDB$FIELD_TYPE'"""
colData = self.queryAll(fieldqry % tableName.upper())
results = []
for field, t, flength, fscale, nullAllowed, thedefault, blobType in colData:
- field = field.strip()
+ field = field.strip().lower()
+ if thedefault:
+ thedefault = thedefault.split(' ')[1]
+ if thedefault.startswith("'") and thedefault.endswith("'"):
+ thedefault = thedefault[1:-1]
idName = str(soClass.sqlmeta.idName or 'id').upper()
if field.upper() == idName:
continue
|
|
From: <sub...@co...> - 2007-07-16 12:05:28
|
Author: phd
Date: 2007-07-16 06:05:22 -0600 (Mon, 16 Jul 2007)
New Revision: 2753
Modified:
SQLObject/branches/0.7/docs/News.txt
SQLObject/branches/0.7/sqlobject/firebird/firebirdconnection.py
Log:
Applied the patch N 1745239: Fixed a bug with default field values for columns for firebird connection.
Modified: SQLObject/branches/0.7/docs/News.txt
===================================================================
--- SQLObject/branches/0.7/docs/News.txt 2007-07-16 11:51:25 UTC (rev 2752)
+++ SQLObject/branches/0.7/docs/News.txt 2007-07-16 12:05:22 UTC (rev 2753)
@@ -10,6 +10,9 @@
SQLObject 0.7.8
===============
+Bug Fixes
+---------
+
* Replaced calls to style.dbColumnToPythonAttr() in joins.py by name/dbName
lookup in case the user named columns differently using dbName.
@@ -20,6 +23,8 @@
* Minor fix in FirebirdConnection.fromDatabase.
+* Fixed a bug with default field values for columns for firebird connection.
+
SQLObject 0.7.7
===============
Modified: SQLObject/branches/0.7/sqlobject/firebird/firebirdconnection.py
===================================================================
--- SQLObject/branches/0.7/sqlobject/firebird/firebirdconnection.py 2007-07-16 11:51:25 UTC (rev 2752)
+++ SQLObject/branches/0.7/sqlobject/firebird/firebirdconnection.py 2007-07-16 12:05:22 UTC (rev 2753)
@@ -169,26 +169,27 @@
"""
fieldqry = """\
- SELECT RDB$RELATION_FIELDS.RDB$FIELD_NAME as field,
- RDB$TYPES.RDB$TYPE_NAME as t,
- RDB$FIELDS.RDB$FIELD_LENGTH as flength,
- RDB$FIELDS.RDB$FIELD_SCALE as fscale,
- RDB$RELATION_FIELDS.RDB$NULL_FLAG as nullAllowed,
- RDB$RELATION_FIELDS.RDB$DEFAULT_VALUE as thedefault,
- RDB$FIELDS.RDB$FIELD_SUB_TYPE as blobtype
- FROM RDB$RELATION_FIELDS
- INNER JOIN RDB$FIELDS ON
- (RDB$RELATION_FIELDS.RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME)
- INNER JOIN RDB$TYPES ON (RDB$FIELDS.RDB$FIELD_TYPE =
- RDB$TYPES.RDB$TYPE)
- WHERE
- (RDB$RELATION_FIELDS.RDB$RELATION_NAME = '%s')
- AND (RDB$TYPES.RDB$FIELD_NAME = 'RDB$FIELD_TYPE')"""
+ SELECT rf.RDB$FIELD_NAME as field,
+ t.RDB$TYPE_NAME as t,
+ f.RDB$FIELD_LENGTH as flength,
+ f.RDB$FIELD_SCALE as fscale,
+ rf.RDB$NULL_FLAG as nullAllowed,
+ coalesce(rf.RDB$DEFAULT_SOURCE, f.rdb$default_source) as thedefault,
+ f.RDB$FIELD_SUB_TYPE as blobtype
+ FROM RDB$RELATION_FIELDS rf
+ INNER JOIN RDB$FIELDS f ON rf.RDB$FIELD_SOURCE = f.RDB$FIELD_NAME
+ INNER JOIN RDB$TYPES t ON f.RDB$FIELD_TYPE = t.RDB$TYPE
+ WHERE rf.RDB$RELATION_NAME = '%s'
+ AND t.RDB$FIELD_NAME = 'RDB$FIELD_TYPE'"""
colData = self.queryAll(fieldqry % tableName.upper())
results = []
for field, t, flength, fscale, nullAllowed, thedefault, blobType in colData:
- field = field.strip()
+ field = field.strip().lower()
+ if thedefault:
+ thedefault = thedefault.split(' ')[1]
+ if thedefault.startswith("'") and thedefault.endswith("'"):
+ thedefault = thedefault[1:-1]
idName = str(soClass.sqlmeta.idName or 'id').upper()
if field.upper() == idName:
continue
|
|
From: SourceForge.net <no...@so...> - 2007-07-16 11:51:46
|
Patches item #1744847, was opened at 2007-06-28 18:29 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1744847&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: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Oleg Broytmann (phd) Summary: Firebird, fromDatabase generate 2 ID columns fix Initial Comment: fixed bug with 2 ID columns in "fromDatabase" tables for Firebird connection ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2007-07-16 15:51 Message: Logged In: YES user_id=4799 Originator: NO Applied and committed in the revisions 2748-2752 (branches 0.7, 0.8, 0.9, the trunks and the docs.) Thank you! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1744847&group_id=74338 |