sqlobject-cvs Mailing List for SQLObject (Page 60)
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
|
Dec
|
From: <sub...@co...> - 2009-04-29 16:05:57
|
Author: phd Date: 2009-04-29 10:05:52 -0600 (Wed, 29 Apr 2009) New Revision: 3870 Modified: SQLObject/branches/0.9/docs/News.txt SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py Log: A bug in SQLiteConnection.columnsFromSchema() that led to an infinite loop was fixed. Modified: SQLObject/branches/0.9/docs/News.txt =================================================================== --- SQLObject/branches/0.9/docs/News.txt 2009-04-29 15:22:54 UTC (rev 3869) +++ SQLObject/branches/0.9/docs/News.txt 2009-04-29 16:05:52 UTC (rev 3870) @@ -39,6 +39,9 @@ without this calling Transaction.close() calls connection.close() which is wrong. +* A bug in SQLiteConnection.columnsFromSchema() that led to an infinite + loop was fixed. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py =================================================================== --- SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py 2009-04-29 15:22:54 UTC (rev 3869) +++ SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py 2009-04-29 16:05:52 UTC (rev 3870) @@ -312,9 +312,11 @@ if not colData: raise ValueError('The table %s was not found in the database. Load failed.' % tableName) colData = colData[0].split('(', 1)[1].strip()[:-2] - while colData.find('(') > -1: + while True: start = colData.find('(') + if start == -1: break end = colData.find(')', start) + if end == -1: break colData = colData[:start] + colData[end+1:] results = [] for colDesc in colData.split(','): |
From: <sub...@co...> - 2009-04-29 15:23:03
|
Author: phd Date: 2009-04-29 09:22:54 -0600 (Wed, 29 Apr 2009) New Revision: 3869 Modified: SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py Log: Merged revision 3867 from 0.9 branch: make sqlite URI nicer. Modified: SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py =================================================================== --- SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py 2009-04-29 15:22:20 UTC (rev 3868) +++ SQLObject/trunk/sqlobject/sqlite/sqliteconnection.py 2009-04-29 15:22:54 UTC (rev 3869) @@ -106,7 +106,12 @@ connectionFromURI = classmethod(connectionFromURI) def uri(self): - return 'sqlite:///%s' % self.filename + path = self.filename + if path == ":memory:": + path = "/:memory:" + else: + path = "//" + path + return 'sqlite:%s' % path def getConnection(self): # SQLite can't share connections between threads, and so can't |
From: <sub...@co...> - 2009-04-29 15:22:23
|
Author: phd Date: 2009-04-29 09:22:20 -0600 (Wed, 29 Apr 2009) New Revision: 3868 Modified: SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py Log: Merged revision 3867 from 0.9 branch: make sqlite URI nicer. Modified: SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py =================================================================== --- SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py 2009-04-29 15:20:56 UTC (rev 3867) +++ SQLObject/branches/0.10/sqlobject/sqlite/sqliteconnection.py 2009-04-29 15:22:20 UTC (rev 3868) @@ -105,7 +105,12 @@ connectionFromURI = classmethod(connectionFromURI) def uri(self): - return 'sqlite:///%s' % self.filename + path = self.filename + if path == ":memory:": + path = "/:memory:" + else: + path = "//" + path + return 'sqlite:%s' % path def getConnection(self): # SQLite can't share connections between threads, and so can't |
From: <sub...@co...> - 2009-04-29 15:21:08
|
Author: phd Date: 2009-04-29 09:20:56 -0600 (Wed, 29 Apr 2009) New Revision: 3867 Modified: SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py Log: Make sqlite URI nicer. Modified: SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py =================================================================== --- SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py 2009-04-23 12:33:51 UTC (rev 3866) +++ SQLObject/branches/0.9/sqlobject/sqlite/sqliteconnection.py 2009-04-29 15:20:56 UTC (rev 3867) @@ -106,7 +106,12 @@ connectionFromURI = classmethod(connectionFromURI) def uri(self): - return 'sqlite:///%s' % self.filename + path = self.filename + if path == ":memory:": + path = "/:memory:" + else: + path = "//" + path + return 'sqlite:%s' % path def getConnection(self): # SQLite can't share connections between threads, and so can't |
From: SourceForge.net <no...@so...> - 2009-04-29 14:58:15
|
Bugs item #2417338, was opened at 2008-12-11 18:02 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2417338&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: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Luci Stanescu (luci_stanescu) Assigned to: Oleg Broytmann (phd) Summary: _connection ignored if sqlhub.processConnection set before Initial Comment: If sqlhub.processConnection is set before a subclass of SQLObject is defined, then the _connection attribute of the new class will be ignored. This is, as far as I could find out, because of: sqlobject/main.py:768 if connection and not hasattr(cls, '_connection'): cls.setConnection(connection) This creates a lot of confusion and, if I understood correctly, is not the intended behaviour either (citing from the documentation): "If you have defined sqlhub.processConnection then this attribute can be omitted from your class and the sqlhub will be used instead. If you have several classes using the same connection that might be an advantage, besides saving a lot of typing." ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-29 18:58 Message: The problem is hasattr(cls, '_connection') - even if there is the code del cls._connection a few lines above hasattr(cls, '_connection') return True in your case because there is a connection in SQLObject class. To fix this I propose to replace hasattr(cls, '_connection') with the test '_connection' not in cls.__dict__: @@ -768,7 +768,7 @@ if hasattr(mod, '__connection__'): connection = mod.__connection__ - if connection and not hasattr(cls, '_connection'): + if connection and ('_connection' not in cls.__dict__): cls.setConnection(connection) What do you think? ---------------------------------------------------------------------- Comment By: Luci Stanescu (luci_stanescu) Date: 2008-12-11 18:31 Message: testsqlobject.py: from sqlobject import * a_connection = connectionForURI('mysql://user:pass@other_host/db') sqlhub.processConnection = connectionForURI('mysql://user:pass@host/db') class Foo(SQLObject): _connection = a_connection bar = StringCol(length=16) print Foo._connection.uri() luci@lucifer:~/sandbox$ python testsqlobject.py mysql://user:pass@host/db It was supposed to print `mysql://user:pass@other_host/db', which it does, if I move the line sqlhub.processConnection = connectionForURI('mysql://user:pass@host/db') after the class is defined. ---------------------------------------------------------------------- Comment By: Oleg Broytmann (phd) Date: 2008-12-11 18:13 Message: if connection and not hasattr(cls, '_connection') means "if there is a global connection and there is no _connection attribute". So I don't see how SQLObject can ignore _connection - there is no one. Can you write a short program that demonstrates the problem? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2417338&group_id=74338 |
From: SourceForge.net <no...@so...> - 2009-04-29 14:20:17
|
Bugs item #2059325, was opened at 2008-08-19 13:21 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2059325&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: General Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Klaus Warnke (kwarnke3) >Assigned to: Oleg Broytmann (phd) >Summary: SQLRelatedJoin: defaultOrder of intermediateTable not used Initial Comment: The SELECT build for a SQLRelatedJoin does not use the sqlmeta: defaultOrder from the intermediateTable. This is not urgent, because I can provide an orderBy in to the join constructor, but it would by nice if it works automatic. Btw: The documentation seems to be outdated, because the _defaultOrder class variable was replaced with class sqlmeta: defaultOrder I think. And what is about defaultOrderBy I have seen in a test_combining_joins.py? ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-29 18:20 Message: SQLRelatedJoin uses defaultOrder from the other table, but not from the intermediate table: if self.orderBy is NoDefault: self.orderBy = self.otherClass.sqlmeta.defaultOrder Do you want SQLObject to test the order of the other table then from the intermediate table and to use the first one that is not None? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2059325&group_id=74338 |
From: <sub...@co...> - 2009-04-23 12:33:59
|
Author: phd Date: 2009-04-23 06:33:51 -0600 (Thu, 23 Apr 2009) New Revision: 3866 Modified: SQLObject/trunk/docs/Authors.txt SQLObject/trunk/docs/DeveloperGuide.txt SQLObject/trunk/docs/FAQ.txt SQLObject/trunk/docs/Inheritance.txt SQLObject/trunk/docs/News.txt SQLObject/trunk/docs/News1.txt SQLObject/trunk/docs/SQLBuilder.txt SQLObject/trunk/docs/SQLObject.txt SQLObject/trunk/docs/SelectResults.txt SQLObject/trunk/docs/TODO.txt SQLObject/trunk/docs/Versioning.txt SQLObject/trunk/docs/Views.txt SQLObject/trunk/docs/community.txt SQLObject/trunk/docs/default.css SQLObject/trunk/docs/download.txt SQLObject/trunk/docs/index.txt SQLObject/trunk/docs/links.txt SQLObject/trunk/docs/rebuild SQLObject/trunk/docs/sqlobject-admin.txt SQLObject/trunk/docs/sqlobject-architecture.txt Log: Merged SF logo changes from 0.10 branch, revision 3865: changed SF logo according to https://sourceforge.net/community/forum/topic.php?id=4666; also changed the style, made the logo centered and removed border. Modified: SQLObject/trunk/docs/Authors.txt =================================================================== --- SQLObject/trunk/docs/Authors.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/Authors.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -24,8 +24,10 @@ * Christopher Singley <csingley at gmail.com> * Oleg Broytmann <ph...@ph...> -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/DeveloperGuide.txt =================================================================== --- SQLObject/trunk/docs/DeveloperGuide.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/DeveloperGuide.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -191,8 +191,10 @@ HTML. It presently requires kid 0.9.3, which must be obtained separately (for instance, from http://cheeseshop.python.org/pypi/kid/0.9.3) -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/FAQ.txt =================================================================== --- SQLObject/trunk/docs/FAQ.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/FAQ.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -530,8 +530,10 @@ COLLATE utf8_estonian_ci'''] } -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/Inheritance.txt =================================================================== --- SQLObject/trunk/docs/Inheritance.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/Inheritance.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -325,8 +325,10 @@ * If you have suggestion, bugs, or patch to this patch, you can contact the SQLObject team: <sqlobject-discuss at lists.sourceforge.net> -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/News.txt =================================================================== --- SQLObject/trunk/docs/News.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/News.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -952,8 +952,10 @@ .. __: News1.html -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/News1.txt =================================================================== --- SQLObject/trunk/docs/News1.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/News1.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -456,8 +456,10 @@ .. _Col docs: SQLObject.html#col-class-specifying-columns -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/SQLBuilder.txt =================================================================== --- SQLObject/trunk/docs/SQLBuilder.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/SQLBuilder.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -65,8 +65,10 @@ That's it -- enjoy! -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/SQLObject.txt =================================================================== --- SQLObject/trunk/docs/SQLObject.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/SQLObject.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -2038,8 +2038,10 @@ .. _SQLBuilder: SQLBuilder.html .. _`SQLBuilder Documentation`: SQLBuilder.html -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/SelectResults.txt =================================================================== --- SQLObject/trunk/docs/SelectResults.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/SelectResults.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -191,4 +191,12 @@ Person.select(Person.q.name=='Steve').throughTo.father.throughTo.father returns a SelectResult of Persons who are the paternal grandfather of someone -named 'Steve'. \ No newline at end of file +named 'Steve'. + +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/TODO.txt =================================================================== --- SQLObject/trunk/docs/TODO.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/TODO.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -42,8 +42,10 @@ processing should be done with unicode strings, conversion to/from ascii strings should happen for non-unicode DB API drivers. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/Versioning.txt =================================================================== --- SQLObject/trunk/docs/Versioning.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/Versioning.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -82,8 +82,10 @@ the main table is altered, so if you add a column to your main class, you will need to manually add the column to your version table. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/Views.txt =================================================================== --- SQLObject/trunk/docs/Views.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/Views.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -32,7 +32,7 @@ number = StringCol() calls = SQLMultipleJoin('PhoneCall') incoming = SQLMultipleJoin('PhoneCall', joinColumn='toID') - + class PhoneCall(SQLObject): phoneNumber = ForeignKey('PhoneNumber') to = ForeignKey('PhoneNumber') @@ -44,7 +44,7 @@ class sqlmeta: idName = PhoneCall.q.id clause = PhoneCall.q.phoneNumberID==PhoneNumber.q.id - + minutes = IntCol(dbName=PhoneCall.q.minutes) number = StringCol(dbName=PhoneNumber.q.number) phoneNumber = ForeignKey('PhoneNumber', dbName=PhoneNumber.q.id) @@ -54,7 +54,7 @@ class sqlmeta: idName = PhoneNumber.q.id clause = PhoneCall.q.phoneNumberID==PhoneNumber.q.id - + minutes = IntCol(dbName=func.SUM(PhoneCall.q.minutes)) numberOfCalls = IntCol(dbName=func.COUNT(PhoneCall.q.phoneNumberID)) number = StringCol(dbName=PhoneNumber.q.number) @@ -62,3 +62,10 @@ calls = SQLMultipleJoin('PhoneCall', joinColumn='phoneNumberID') vCalls = SQLMultipleJoin('ViewPhoneCall', joinColumn='phoneNumberID') +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/community.txt =================================================================== --- SQLObject/trunk/docs/community.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/community.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -29,8 +29,10 @@ Wiki and another tracker are also at http://sqlobject.gcu.info/trac. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/default.css =================================================================== --- SQLObject/trunk/docs/default.css 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/default.css 2009-04-23 12:33:51 UTC (rev 3866) @@ -287,3 +287,5 @@ .stmlattr {color: #000000;} .stmlstring {color: #006600;} .stmlexpr {color: #004444;} + +img.noborder {border-style: none;} Modified: SQLObject/trunk/docs/download.txt =================================================================== --- SQLObject/trunk/docs/download.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/download.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -47,8 +47,10 @@ If you are on Windows you may want to use `TortoiseSVN <http://tortoisesvn.tigris.org/>`_. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/index.txt =================================================================== --- SQLObject/trunk/docs/index.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/index.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -66,8 +66,10 @@ >>> p is p2 True -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/links.txt =================================================================== --- SQLObject/trunk/docs/links.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/links.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -89,8 +89,10 @@ FAQ... basically it's a list of user-submitted articles with a group rating system, and personal adjustments. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/rebuild =================================================================== --- SQLObject/trunk/docs/rebuild 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/rebuild 2009-04-23 12:33:51 UTC (rev 3866) @@ -16,7 +16,8 @@ continue fi echo "Building $NAME." - rst2html.py --no-toc-backlinks -- "$NAME.txt" > "$NAME.html" + rst2html.py --no-toc-backlinks --stylesheet=default.css --link-stylesheet \ + -- "$NAME.txt" > "$NAME.html" done exec source-highlight -f html interface.py Modified: SQLObject/trunk/docs/sqlobject-admin.txt =================================================================== --- SQLObject/trunk/docs/sqlobject-admin.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/sqlobject-admin.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -209,8 +209,10 @@ * A command to trim versions, by merging upgrade scripts. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/trunk/docs/sqlobject-architecture.txt =================================================================== --- SQLObject/trunk/docs/sqlobject-architecture.txt 2009-04-23 12:31:54 UTC (rev 3865) +++ SQLObject/trunk/docs/sqlobject-architecture.txt 2009-04-23 12:33:51 UTC (rev 3866) @@ -35,8 +35,10 @@ and different subdirectories of sqlobject for concrete implementations of connection classes - different backends require different query strings. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads |
From: <sub...@co...> - 2009-04-23 12:31:58
|
Author: phd Date: 2009-04-23 06:31:54 -0600 (Thu, 23 Apr 2009) New Revision: 3865 Modified: SQLObject/branches/0.10/docs/Authors.txt SQLObject/branches/0.10/docs/DeveloperGuide.txt SQLObject/branches/0.10/docs/FAQ.txt SQLObject/branches/0.10/docs/Inheritance.txt SQLObject/branches/0.10/docs/News.txt SQLObject/branches/0.10/docs/News1.txt SQLObject/branches/0.10/docs/SQLBuilder.txt SQLObject/branches/0.10/docs/SQLObject.txt SQLObject/branches/0.10/docs/SelectResults.txt SQLObject/branches/0.10/docs/TODO.txt SQLObject/branches/0.10/docs/Versioning.txt SQLObject/branches/0.10/docs/Views.txt SQLObject/branches/0.10/docs/community.txt SQLObject/branches/0.10/docs/default.css SQLObject/branches/0.10/docs/download.txt SQLObject/branches/0.10/docs/index.txt SQLObject/branches/0.10/docs/links.txt SQLObject/branches/0.10/docs/rebuild SQLObject/branches/0.10/docs/sqlobject-admin.txt SQLObject/branches/0.10/docs/sqlobject-architecture.txt Log: Merged SF logo changes from 0.9 branch, revision 3864: changed SF logo according to https://sourceforge.net/community/forum/topic.php?id=4666; also changed the style, made the logo centered and removed border. Modified: SQLObject/branches/0.10/docs/Authors.txt =================================================================== --- SQLObject/branches/0.10/docs/Authors.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/Authors.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -23,8 +23,10 @@ * Diez B. Roggisch <deets at web.de> * Oleg Broytmann <ph...@ph...> -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/DeveloperGuide.txt =================================================================== --- SQLObject/branches/0.10/docs/DeveloperGuide.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/DeveloperGuide.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -191,8 +191,10 @@ HTML. It presently requires kid 0.9.3, which must be obtained separately (for instance, from http://cheeseshop.python.org/pypi/kid/0.9.3) -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/FAQ.txt =================================================================== --- SQLObject/branches/0.10/docs/FAQ.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/FAQ.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -530,8 +530,10 @@ COLLATE utf8_estonian_ci'''] } -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/Inheritance.txt =================================================================== --- SQLObject/branches/0.10/docs/Inheritance.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/Inheritance.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -325,8 +325,10 @@ * If you have suggestion, bugs, or patch to this patch, you can contact the SQLObject team: <sqlobject-discuss at lists.sourceforge.net> -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/News.txt =================================================================== --- SQLObject/branches/0.10/docs/News.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/News.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -911,8 +911,10 @@ .. __: News1.html -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/News1.txt =================================================================== --- SQLObject/branches/0.10/docs/News1.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/News1.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -456,8 +456,10 @@ .. _Col docs: SQLObject.html#col-class-specifying-columns -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/SQLBuilder.txt =================================================================== --- SQLObject/branches/0.10/docs/SQLBuilder.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/SQLBuilder.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -65,8 +65,10 @@ That's it -- enjoy! -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/SQLObject.txt =================================================================== --- SQLObject/branches/0.10/docs/SQLObject.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/SQLObject.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -2020,8 +2020,10 @@ .. _SQLBuilder: SQLBuilder.html .. _`SQLBuilder Documentation`: SQLBuilder.html -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/SelectResults.txt =================================================================== --- SQLObject/branches/0.10/docs/SelectResults.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/SelectResults.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -191,4 +191,12 @@ Person.select(Person.q.name=='Steve').throughTo.father.throughTo.father returns a SelectResult of Persons who are the paternal grandfather of someone -named 'Steve'. \ No newline at end of file +named 'Steve'. + +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/TODO.txt =================================================================== --- SQLObject/branches/0.10/docs/TODO.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/TODO.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -42,8 +42,10 @@ processing should be done with unicode strings, conversion to/from ascii strings should happen for non-unicode DB API drivers. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/Versioning.txt =================================================================== --- SQLObject/branches/0.10/docs/Versioning.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/Versioning.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -82,8 +82,10 @@ the main table is altered, so if you add a column to your main class, you will need to manually add the column to your version table. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/Views.txt =================================================================== --- SQLObject/branches/0.10/docs/Views.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/Views.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -32,7 +32,7 @@ number = StringCol() calls = SQLMultipleJoin('PhoneCall') incoming = SQLMultipleJoin('PhoneCall', joinColumn='toID') - + class PhoneCall(SQLObject): phoneNumber = ForeignKey('PhoneNumber') to = ForeignKey('PhoneNumber') @@ -44,7 +44,7 @@ class sqlmeta: idName = PhoneCall.q.id clause = PhoneCall.q.phoneNumberID==PhoneNumber.q.id - + minutes = IntCol(dbName=PhoneCall.q.minutes) number = StringCol(dbName=PhoneNumber.q.number) phoneNumber = ForeignKey('PhoneNumber', dbName=PhoneNumber.q.id) @@ -54,7 +54,7 @@ class sqlmeta: idName = PhoneNumber.q.id clause = PhoneCall.q.phoneNumberID==PhoneNumber.q.id - + minutes = IntCol(dbName=func.SUM(PhoneCall.q.minutes)) numberOfCalls = IntCol(dbName=func.COUNT(PhoneCall.q.phoneNumberID)) number = StringCol(dbName=PhoneNumber.q.number) @@ -62,3 +62,10 @@ calls = SQLMultipleJoin('PhoneCall', joinColumn='phoneNumberID') vCalls = SQLMultipleJoin('ViewPhoneCall', joinColumn='phoneNumberID') +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/community.txt =================================================================== --- SQLObject/branches/0.10/docs/community.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/community.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -29,8 +29,10 @@ Wiki and another tracker are also at http://sqlobject.gcu.info/trac. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/default.css =================================================================== --- SQLObject/branches/0.10/docs/default.css 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/default.css 2009-04-23 12:31:54 UTC (rev 3865) @@ -287,3 +287,5 @@ .stmlattr {color: #000000;} .stmlstring {color: #006600;} .stmlexpr {color: #004444;} + +img.noborder {border-style: none;} Modified: SQLObject/branches/0.10/docs/download.txt =================================================================== --- SQLObject/branches/0.10/docs/download.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/download.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -47,8 +47,10 @@ If you are on Windows you may want to use `TortoiseSVN <http://tortoisesvn.tigris.org/>`_. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/index.txt =================================================================== --- SQLObject/branches/0.10/docs/index.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/index.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -66,8 +66,10 @@ >>> p is p2 True -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/links.txt =================================================================== --- SQLObject/branches/0.10/docs/links.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/links.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -89,8 +89,10 @@ FAQ... basically it's a list of user-submitted articles with a group rating system, and personal adjustments. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/rebuild =================================================================== --- SQLObject/branches/0.10/docs/rebuild 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/rebuild 2009-04-23 12:31:54 UTC (rev 3865) @@ -16,7 +16,8 @@ continue fi echo "Building $NAME." - rst2html.py --no-toc-backlinks -- "$NAME.txt" > "$NAME.html" + rst2html.py --no-toc-backlinks --stylesheet=default.css --link-stylesheet \ + -- "$NAME.txt" > "$NAME.html" done exec source-highlight -f html interface.py Modified: SQLObject/branches/0.10/docs/sqlobject-admin.txt =================================================================== --- SQLObject/branches/0.10/docs/sqlobject-admin.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/sqlobject-admin.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -209,8 +209,10 @@ * A command to trim versions, by merging upgrade scripts. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.10/docs/sqlobject-architecture.txt =================================================================== --- SQLObject/branches/0.10/docs/sqlobject-architecture.txt 2009-04-23 12:26:48 UTC (rev 3864) +++ SQLObject/branches/0.10/docs/sqlobject-architecture.txt 2009-04-23 12:31:54 UTC (rev 3865) @@ -35,8 +35,10 @@ and different subdirectories of sqlobject for concrete implementations of connection classes - different backends require different query strings. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads |
From: <sub...@co...> - 2009-04-23 12:27:04
|
Author: phd Date: 2009-04-23 06:26:48 -0600 (Thu, 23 Apr 2009) New Revision: 3864 Modified: SQLObject/branches/0.9/docs/Authors.txt SQLObject/branches/0.9/docs/DeveloperGuide.txt SQLObject/branches/0.9/docs/FAQ.txt SQLObject/branches/0.9/docs/Inheritance.txt SQLObject/branches/0.9/docs/News.txt SQLObject/branches/0.9/docs/SQLBuilder.txt SQLObject/branches/0.9/docs/SQLObject.txt SQLObject/branches/0.9/docs/TODO.txt SQLObject/branches/0.9/docs/Versioning.txt SQLObject/branches/0.9/docs/community.txt SQLObject/branches/0.9/docs/default.css SQLObject/branches/0.9/docs/download.txt SQLObject/branches/0.9/docs/index.txt SQLObject/branches/0.9/docs/links.txt SQLObject/branches/0.9/docs/rebuild SQLObject/branches/0.9/docs/sqlobject-admin.txt SQLObject/branches/0.9/docs/sqlobject-architecture.txt Log: Changed SF logo according to https://sourceforge.net/community/forum/topic.php?id=4666. Also changed the style, made the logo centered and removed border. Modified: SQLObject/branches/0.9/docs/Authors.txt =================================================================== --- SQLObject/branches/0.9/docs/Authors.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/Authors.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -23,8 +23,10 @@ * Diez B. Roggisch <deets at web.de> * Oleg Broytmann <ph...@ph...> -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/DeveloperGuide.txt =================================================================== --- SQLObject/branches/0.9/docs/DeveloperGuide.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/DeveloperGuide.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -191,8 +191,10 @@ HTML. It presently requires kid 0.9.3, which must be obtained separately (for instance, from http://cheeseshop.python.org/pypi/kid/0.9.3) -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/FAQ.txt =================================================================== --- SQLObject/branches/0.9/docs/FAQ.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/FAQ.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -530,8 +530,10 @@ COLLATE utf8_estonian_ci'''] } -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/Inheritance.txt =================================================================== --- SQLObject/branches/0.9/docs/Inheritance.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/Inheritance.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -325,8 +325,10 @@ * If you have suggestion, bugs, or patch to this patch, you can contact the SQLObject team: <sqlobject-discuss at lists.sourceforge.net> -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/News.txt =================================================================== --- SQLObject/branches/0.9/docs/News.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/News.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -1257,8 +1257,10 @@ .. _Col docs: SQLObject.html#col-class-specifying-columns -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/SQLBuilder.txt =================================================================== --- SQLObject/branches/0.9/docs/SQLBuilder.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/SQLBuilder.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -65,8 +65,10 @@ That's it -- enjoy! -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/SQLObject.txt =================================================================== --- SQLObject/branches/0.9/docs/SQLObject.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/SQLObject.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -2015,8 +2015,10 @@ .. _SQLBuilder: SQLBuilder.html .. _`SQLBuilder Documentation`: SQLBuilder.html -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/TODO.txt =================================================================== --- SQLObject/branches/0.9/docs/TODO.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/TODO.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -42,8 +42,10 @@ processing should be done with unicode strings, conversion to/from ascii strings should happen for non-unicode DB API drivers. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/Versioning.txt =================================================================== --- SQLObject/branches/0.9/docs/Versioning.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/Versioning.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -82,8 +82,10 @@ the main table is altered, so if you add a column to your main class, you will need to manually add the column to your version table. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/community.txt =================================================================== --- SQLObject/branches/0.9/docs/community.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/community.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -29,8 +29,10 @@ Wiki and another tracker are also at http://sqlobject.gcu.info/trac. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/default.css =================================================================== --- SQLObject/branches/0.9/docs/default.css 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/default.css 2009-04-23 12:26:48 UTC (rev 3864) @@ -287,3 +287,5 @@ .stmlattr {color: #000000;} .stmlstring {color: #006600;} .stmlexpr {color: #004444;} + +img.noborder {border-style: none;} Modified: SQLObject/branches/0.9/docs/download.txt =================================================================== --- SQLObject/branches/0.9/docs/download.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/download.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -47,8 +47,10 @@ If you are on Windows you may want to use `TortoiseSVN <http://tortoisesvn.tigris.org/>`_. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/index.txt =================================================================== --- SQLObject/branches/0.9/docs/index.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/index.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -64,8 +64,10 @@ >>> p is p2 True -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/links.txt =================================================================== --- SQLObject/branches/0.9/docs/links.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/links.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -89,8 +89,10 @@ FAQ... basically it's a list of user-submitted articles with a group rating system, and personal adjustments. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/rebuild =================================================================== --- SQLObject/branches/0.9/docs/rebuild 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/rebuild 2009-04-23 12:26:48 UTC (rev 3864) @@ -16,7 +16,8 @@ continue fi echo "Building $NAME." - rst2html.py --no-toc-backlinks -- "$NAME.txt" > "$NAME.html" + rst2html.py --no-toc-backlinks --stylesheet=default.css --link-stylesheet \ + -- "$NAME.txt" > "$NAME.html" done source-highlight -f html interface.py Modified: SQLObject/branches/0.9/docs/sqlobject-admin.txt =================================================================== --- SQLObject/branches/0.9/docs/sqlobject-admin.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/sqlobject-admin.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -209,8 +209,10 @@ * A command to trim versions, by merging upgrade scripts. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads Modified: SQLObject/branches/0.9/docs/sqlobject-architecture.txt =================================================================== --- SQLObject/branches/0.9/docs/sqlobject-architecture.txt 2009-04-23 03:21:19 UTC (rev 3863) +++ SQLObject/branches/0.9/docs/sqlobject-architecture.txt 2009-04-23 12:26:48 UTC (rev 3864) @@ -35,8 +35,10 @@ and different subdirectories of sqlobject for concrete implementations of connection classes - different backends require different query strings. -.. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 - :height: 37 - :width: 125 - :alt: Hosted by SourceForge - :target: http://sourceforge.net/ +.. image:: http://sflogo.sourceforge.net/sflogo.php?group_id=74338&type=10 + :target: http://sourceforge.net/projects/sqlobject + :class: noborder + :align: center + :height: 15 + :width: 80 + :alt: Get SQLObject at SourceForge.net. Fast, secure and Free Open Source software downloads |
From: SourceForge.net <no...@so...> - 2009-04-18 07:27:53
|
Bugs item #2334492, was opened at 2008-11-23 23:04 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2334492&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: General Group: SQLObject release (specify) Status: Closed >Resolution: Works For Me Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: reverse method does not return object Initial Comment: In SQLObject 0.10.2: When I have a sqlobject object, and I try something such as: return list(object.select().reverse()) I will get an error because the reverse() method does not return Results, it just applies it into the object. This makes ruby-style chains difficult. ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-18 11:27 Message: SelectResults.reversed() returns a copy of the object so it allows call chaining. What's the problem? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2334492&group_id=74338 |
From: <sub...@co...> - 2009-04-17 17:12:12
|
Author: phd Date: 2009-04-17 11:12:08 -0600 (Fri, 17 Apr 2009) New Revision: 3858 Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/sqlobject/dbconnection.py Log: Merged revision 3856 from branch 0.9: Transaction instances now explicitly raises TypeError on close(). Modified: SQLObject/trunk/docs/News.txt =================================================================== --- SQLObject/trunk/docs/News.txt 2009-04-17 17:11:26 UTC (rev 3857) +++ SQLObject/trunk/docs/News.txt 2009-04-17 17:12:08 UTC (rev 3858) @@ -184,6 +184,10 @@ Transaction.__getattr__() cannot properly wrap 'self' so a property is called with wrong 'self'. +* Transaction instances now explicitly raises TypeError on close() - + without this calling Transaction.close() calls connection.close() which + is wrong. + SQLObject 0.9.9 =============== Modified: SQLObject/trunk/sqlobject/dbconnection.py =================================================================== --- SQLObject/trunk/sqlobject/dbconnection.py 2009-04-17 17:11:26 UTC (rev 3857) +++ SQLObject/trunk/sqlobject/dbconnection.py 2009-04-17 17:12:08 UTC (rev 3858) @@ -791,6 +791,9 @@ return self.rollback() + def close(self): + raise TypeError('You cannot just close transaction - you should either call rollback(), commit() or commit(close=True) to close the underlying connection.') + class ConnectionHub(object): """ |
From: <sub...@co...> - 2009-04-17 17:11:31
|
Author: phd Date: 2009-04-17 11:11:26 -0600 (Fri, 17 Apr 2009) New Revision: 3857 Modified: SQLObject/branches/0.10/docs/News.txt SQLObject/branches/0.10/sqlobject/dbconnection.py Log: Merged revision 3856 from branch 0.9: Transaction instances now explicitly raises TypeError on close(). Modified: SQLObject/branches/0.10/docs/News.txt =================================================================== --- SQLObject/branches/0.10/docs/News.txt 2009-04-17 17:09:12 UTC (rev 3856) +++ SQLObject/branches/0.10/docs/News.txt 2009-04-17 17:11:26 UTC (rev 3857) @@ -143,6 +143,10 @@ Transaction.__getattr__() cannot properly wrap 'self' so a property is called with wrong 'self'. +* Transaction instances now explicitly raises TypeError on close() - + without this calling Transaction.close() calls connection.close() which + is wrong. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.10/sqlobject/dbconnection.py =================================================================== --- SQLObject/branches/0.10/sqlobject/dbconnection.py 2009-04-17 17:09:12 UTC (rev 3856) +++ SQLObject/branches/0.10/sqlobject/dbconnection.py 2009-04-17 17:11:26 UTC (rev 3857) @@ -796,6 +796,9 @@ return self.rollback() + def close(self): + raise TypeError('You cannot just close transaction - you should either call rollback(), commit() or commit(close=True) to close the underlying connection.') + class ConnectionHub(object): """ |
From: <sub...@co...> - 2009-04-17 17:09:26
|
Author: phd Date: 2009-04-17 11:09:12 -0600 (Fri, 17 Apr 2009) New Revision: 3856 Modified: SQLObject/branches/0.9/docs/News.txt SQLObject/branches/0.9/sqlobject/dbconnection.py Log: Transaction instances now explicitly raises TypeError on close(). Modified: SQLObject/branches/0.9/docs/News.txt =================================================================== --- SQLObject/branches/0.9/docs/News.txt 2009-04-17 16:44:30 UTC (rev 3855) +++ SQLObject/branches/0.9/docs/News.txt 2009-04-17 17:09:12 UTC (rev 3856) @@ -35,6 +35,10 @@ Transaction.__getattr__() cannot properly wrap 'self' so a property is called with wrong 'self'. +* Transaction instances now explicitly raises TypeError on close() - + without this calling Transaction.close() calls connection.close() which + is wrong. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.9/sqlobject/dbconnection.py =================================================================== --- SQLObject/branches/0.9/sqlobject/dbconnection.py 2009-04-17 16:44:30 UTC (rev 3855) +++ SQLObject/branches/0.9/sqlobject/dbconnection.py 2009-04-17 17:09:12 UTC (rev 3856) @@ -950,6 +950,9 @@ return self.rollback() + def close(self): + raise TypeError('You cannot just close transaction - you should either call rollback(), commit() or commit(close=True) to close the underlying connection.') + class ConnectionHub(object): """ |
From: SourceForge.net <no...@so...> - 2009-04-17 16:51:00
|
Bugs item #2334492, was opened at 2008-11-23 23:04 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2334492&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: General Group: SQLObject release (specify) >Status: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: reverse method does not return object Initial Comment: In SQLObject 0.10.2: When I have a sqlobject object, and I try something such as: return list(object.select().reverse()) I will get an error because the reverse() method does not return Results, it just applies it into the object. This makes ruby-style chains difficult. ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-17 20:50 Message: Python is not Ruby. In Python methods that changes objects in place don't return the object. Look, for example, chaining is impossible with simple lists - list.reverse() doesn't return the list: >>> t = (1, 2, 3) >>> print list(t).reverse() None ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2334492&group_id=74338 |
From: SourceForge.net <no...@so...> - 2009-04-17 16:47:09
|
Bugs item #2432880, was opened at 2008-12-16 11:19 Message generated for change (Settings changed) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2432880&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: General Group: SQLObject release (specify) >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Iwan Vosloo (iwanvosloo) >Assigned to: Oleg Broytmann (phd) Summary: dropTable creates extra connection when used in transaction Initial Comment: This has been tested with sqlobject (versions 0.9.1 or 0.10.2) and postgresql. If you start a transaction, and then call dropTable on a class, that call creates an extra postgresql connection, outside of the transaction. This is caused by the following line in dbconnection.py: 755 attr = getattr(self._dbConnection, attr) which is called while self is still the Transaction, for attr 'server_version'. This, however, returns the server_version method on the connection, bound to the _dbconnection the getattr was called on. This bound method gets called, and inside it self.queryOne is called: 304 server_version = self.queryOne("SELECT version()")[0] This call creates the second connection. Attached is a file demonstrating the issue, and a temporary workaround. ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-17 20:46 Message: Fixed in the revisions 3853-3855 (branches 0.9, 0.10 and the trunk). Thank you! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2432880&group_id=74338 |
From: <sub...@co...> - 2009-04-17 16:44:39
|
Author: phd Date: 2009-04-17 10:44:30 -0600 (Fri, 17 Apr 2009) New Revision: 3855 Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/sqlobject/col.py SQLObject/trunk/sqlobject/mssql/mssqlconnection.py Log: Partially merged revision 3853 from branch 0.9: a bug in MSSQLConnection related to properties was fixed. Modified: SQLObject/trunk/docs/News.txt =================================================================== --- SQLObject/trunk/docs/News.txt 2009-04-17 16:41:57 UTC (rev 3854) +++ SQLObject/trunk/docs/News.txt 2009-04-17 16:44:30 UTC (rev 3855) @@ -178,6 +178,12 @@ are now recognized and created as proper ForeignKey with correct column name and table name. +* Bugs in PostgresConnection and MSSQLConnection related to properties was + fixed. A note for developers: from now on properties in DBConnection + classes are forbidden as they don't work with Transaction - + Transaction.__getattr__() cannot properly wrap 'self' so a property is + called with wrong 'self'. + SQLObject 0.9.9 =============== Modified: SQLObject/trunk/sqlobject/col.py =================================================================== --- SQLObject/trunk/sqlobject/col.py 2009-04-17 16:41:57 UTC (rev 3854) +++ SQLObject/trunk/sqlobject/col.py 2009-04-17 16:44:30 UTC (rev 3855) @@ -479,7 +479,7 @@ if self.customSQLType is not None: return self.customSQLType if not self.length: - if self.connection and self.connection.can_use_max_types: + if self.connection and self.connection.can_use_max_types(): type = 'VARCHAR(MAX)' else: type = 'varchar(4000)' @@ -1458,7 +1458,7 @@ return 'BYTEA' def _mssqlType(self): - if self.connection and self.connection.can_use_max_types: + if self.connection and self.connection.can_use_max_types(): return 'VARBINARY(MAX)' else: return "IMAGE" Modified: SQLObject/trunk/sqlobject/mssql/mssqlconnection.py =================================================================== --- SQLObject/trunk/sqlobject/mssql/mssqlconnection.py 2009-04-17 16:41:57 UTC (rev 3854) +++ SQLObject/trunk/sqlobject/mssql/mssqlconnection.py 2009-04-17 16:44:30 UTC (rev 3855) @@ -60,6 +60,7 @@ self.limit_re = re.compile('^\s*(select )(.*)', re.IGNORECASE) self.password = password self.module = sqlmodule + self._can_use_max_types = None DBAPI.__init__(self, **kw) def connectionFromURI(cls, uri): @@ -277,7 +278,6 @@ else: return col.Col, {} - @property def server_version(self): try: server_version = self.queryAll("SELECT SERVERPROPERTY('productversion')")[0][0] @@ -288,9 +288,10 @@ self.server_version = server_version # cache it forever return server_version - @property def can_use_max_types(self): - server_version = self.server_version - self.can_use_max_types = can_use_max_types = \ + if self._can_use_max_types is not None: + return self._can_use_max_types + server_version = self.server_version() + self._can_use_max_types = can_use_max_types = \ (server_version is not None) and (server_version >= 9) return can_use_max_types |
From: <sub...@co...> - 2009-04-17 16:42:15
|
Author: phd Date: 2009-04-17 10:41:57 -0600 (Fri, 17 Apr 2009) New Revision: 3854 Modified: SQLObject/branches/0.10/docs/News.txt SQLObject/branches/0.10/sqlobject/col.py SQLObject/branches/0.10/sqlobject/mssql/mssqlconnection.py SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py Log: Merged revision 3853 from branch 0.9: bugs in PostgresConnection and MSSQLConnection related to properties was fixed. Modified: SQLObject/branches/0.10/docs/News.txt =================================================================== --- SQLObject/branches/0.10/docs/News.txt 2009-04-17 16:39:49 UTC (rev 3853) +++ SQLObject/branches/0.10/docs/News.txt 2009-04-17 16:41:57 UTC (rev 3854) @@ -137,6 +137,12 @@ are now recognized and created as proper ForeignKey with correct column name and table name. +* Bugs in PostgresConnection and MSSQLConnection related to properties was + fixed. A note for developers: from now on properties in DBConnection + classes are forbidden as they don't work with Transaction - + Transaction.__getattr__() cannot properly wrap 'self' so a property is + called with wrong 'self'. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.10/sqlobject/col.py =================================================================== --- SQLObject/branches/0.10/sqlobject/col.py 2009-04-17 16:39:49 UTC (rev 3853) +++ SQLObject/branches/0.10/sqlobject/col.py 2009-04-17 16:41:57 UTC (rev 3854) @@ -479,7 +479,7 @@ if self.customSQLType is not None: return self.customSQLType if not self.length: - if self.connection and self.connection.can_use_max_types: + if self.connection and self.connection.can_use_max_types(): type = 'VARCHAR(MAX)' else: type = 'varchar(4000)' @@ -1413,7 +1413,7 @@ return 'BYTEA' def _mssqlType(self): - if self.connection and self.connection.can_use_max_types: + if self.connection and self.connection.can_use_max_types(): return 'VARBINARY(MAX)' else: return "IMAGE" Modified: SQLObject/branches/0.10/sqlobject/mssql/mssqlconnection.py =================================================================== --- SQLObject/branches/0.10/sqlobject/mssql/mssqlconnection.py 2009-04-17 16:39:49 UTC (rev 3853) +++ SQLObject/branches/0.10/sqlobject/mssql/mssqlconnection.py 2009-04-17 16:41:57 UTC (rev 3854) @@ -60,6 +60,7 @@ self.limit_re = re.compile('^\s*(select )(.*)', re.IGNORECASE) self.password = password self.module = sqlmodule + self._can_use_max_types = None DBAPI.__init__(self, **kw) def connectionFromURI(cls, uri): @@ -277,7 +278,6 @@ else: return col.Col, {} - @property def server_version(self): try: server_version = self.queryAll("SELECT SERVERPROPERTY('productversion')")[0][0] @@ -288,9 +288,10 @@ self.server_version = server_version # cache it forever return server_version - @property def can_use_max_types(self): - server_version = self.server_version - self.can_use_max_types = can_use_max_types = \ + if self._can_use_max_types is not None: + return self._can_use_max_types + server_version = self.server_version() + self._can_use_max_types = can_use_max_types = \ (server_version is not None) and (server_version >= 9) return can_use_max_types Modified: SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py =================================================================== --- SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py 2009-04-17 16:39:49 UTC (rev 3853) +++ SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py 2009-04-17 16:41:57 UTC (rev 3854) @@ -160,7 +160,7 @@ return '%s %s PRIMARY KEY' % (soClass.sqlmeta.idName, key_type) def dropTable(self, tableName, cascade=False): - if self.server_version[:3] <= "7.2": + if self.server_version()[:3] <= "7.2": cascade=False self.query("DROP TABLE %s %s" % (tableName, cascade and 'CASCADE' or '')) @@ -310,7 +310,6 @@ server_version = self.queryOne("SELECT version()")[0] self._server_version = server_version.split()[1] return self._server_version - server_version = property(server_version) def createEmptyDatabase(self): # We have to connect to *some* database, so we'll connect to |
From: <sub...@co...> - 2009-04-17 16:40:01
|
Author: phd Date: 2009-04-17 10:39:49 -0600 (Fri, 17 Apr 2009) New Revision: 3853 Modified: SQLObject/branches/0.9/docs/News.txt SQLObject/branches/0.9/sqlobject/col.py SQLObject/branches/0.9/sqlobject/mssql/mssqlconnection.py SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py Log: Bugs in PostgresConnection and MSSQLConnection related to properties was fixed. Modified: SQLObject/branches/0.9/docs/News.txt =================================================================== --- SQLObject/branches/0.9/docs/News.txt 2009-04-16 15:55:36 UTC (rev 3852) +++ SQLObject/branches/0.9/docs/News.txt 2009-04-17 16:39:49 UTC (rev 3853) @@ -27,8 +27,14 @@ * A bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys are now recognized and created as proper ForeignKey with correct - coloumn name and table name. + column name and table name. +* Bugs in PostgresConnection and MSSQLConnection related to properties was + fixed. A note for developers: from now on properties in DBConnection + classes are forbidden as they don't work with Transaction - + Transaction.__getattr__() cannot properly wrap 'self' so a property is + called with wrong 'self'. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.9/sqlobject/col.py =================================================================== --- SQLObject/branches/0.9/sqlobject/col.py 2009-04-16 15:55:36 UTC (rev 3852) +++ SQLObject/branches/0.9/sqlobject/col.py 2009-04-17 16:39:49 UTC (rev 3853) @@ -491,7 +491,7 @@ if self.customSQLType is not None: return self.customSQLType if not self.length: - if self.connection and self.connection.can_use_max_types: + if self.connection and self.connection.can_use_max_types(): type = 'VARCHAR(MAX)' else: type = 'varchar(4000)' @@ -1431,7 +1431,7 @@ return 'BYTEA' def _mssqlType(self): - if self.connection and self.connection.can_use_max_types: + if self.connection and self.connection.can_use_max_types(): return 'VARBINARY(MAX)' else: return "IMAGE" Modified: SQLObject/branches/0.9/sqlobject/mssql/mssqlconnection.py =================================================================== --- SQLObject/branches/0.9/sqlobject/mssql/mssqlconnection.py 2009-04-16 15:55:36 UTC (rev 3852) +++ SQLObject/branches/0.9/sqlobject/mssql/mssqlconnection.py 2009-04-17 16:39:49 UTC (rev 3853) @@ -60,6 +60,7 @@ self.limit_re = re.compile('^\s*(select )(.*)', re.IGNORECASE) self.password = password self.module = sqlmodule + self._can_use_max_types = None DBAPI.__init__(self, **kw) def connectionFromURI(cls, uri): @@ -276,7 +277,6 @@ else: return col.Col, {} - @property def server_version(self): try: server_version = self.queryAll("SELECT SERVERPROPERTY('productversion')")[0][0] @@ -287,9 +287,10 @@ self.server_version = server_version # cache it forever return server_version - @property def can_use_max_types(self): - server_version = self.server_version - self.can_use_max_types = can_use_max_types = \ + if self._can_use_max_types is not None: + return self._can_use_max_types + server_version = self.server_version() + self._can_use_max_types = can_use_max_types = \ (server_version is not None) and (server_version >= 9) return can_use_max_types Modified: SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py =================================================================== --- SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py 2009-04-16 15:55:36 UTC (rev 3852) +++ SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py 2009-04-17 16:39:49 UTC (rev 3853) @@ -159,7 +159,7 @@ return '%s %s PRIMARY KEY' % (soClass.sqlmeta.idName, key_type) def dropTable(self, tableName, cascade=False): - if self.server_version[:3] <= "7.2": + if self.server_version()[:3] <= "7.2": cascade=False self.query("DROP TABLE %s %s" % (tableName, cascade and 'CASCADE' or '')) @@ -309,7 +309,6 @@ server_version = self.queryOne("SELECT version()")[0] self._server_version = server_version.split()[1] return self._server_version - server_version = property(server_version) def createEmptyDatabase(self): # We have to connect to *some* database, so we'll connect to |
From: <sub...@co...> - 2009-04-16 15:55:42
|
Author: phd Date: 2009-04-16 09:55:36 -0600 (Thu, 16 Apr 2009) New Revision: 3852 Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/sqlobject/postgres/pgconnection.py Log: Merged revision 3851 from branch 0.10: a bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys are now recognized and created as proper ForeignKey with correct column name and table name. Modified: SQLObject/trunk/docs/News.txt =================================================================== --- SQLObject/trunk/docs/News.txt 2009-04-16 15:53:15 UTC (rev 3851) +++ SQLObject/trunk/docs/News.txt 2009-04-16 15:55:36 UTC (rev 3852) @@ -168,11 +168,16 @@ * Setup requires FormEncode version 1.1.1+. -* Fixed a minor bug - pass name to DecimalValidator. +* A minor bug was fixed in creating a DecimalValidator - pass the column name + to it. -* Fixed a bug in InheritableIteration - pass connection to child +* A bug was fixed in InheritableIteration - pass connection to child klass.select(). +* A bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys + are now recognized and created as proper ForeignKey with correct + column name and table name. + SQLObject 0.9.9 =============== Modified: SQLObject/trunk/sqlobject/postgres/pgconnection.py =================================================================== --- SQLObject/trunk/sqlobject/postgres/pgconnection.py 2009-04-16 15:53:15 UTC (rev 3851) +++ SQLObject/trunk/sqlobject/postgres/pgconnection.py 2009-04-16 15:55:36 UTC (rev 3852) @@ -238,19 +238,25 @@ for field, t, notnull, defaultstr in colData: if field == primaryKey: continue - colClass, kw = self.guessClass(t) - if self.unicodeCols and colClass is col.StringCol: - colClass = col.UnicodeCol - kw['dbEncoding'] = client_encoding - kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) + if keymap.has_key(field): + colClass = col.ForeignKey + kw = {'foreignKey': soClass.sqlmeta.style.dbTableToPythonClass(keymap[field])} + name = soClass.sqlmeta.style.dbColumnToPythonAttr(field) + if name.endswith('ID'): + name = name[:-2] + kw['name'] = name + else: + colClass, kw = self.guessClass(t) + if self.unicodeCols and colClass is col.StringCol: + colClass = col.UnicodeCol + kw['dbEncoding'] = client_encoding + kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) kw['dbName'] = field kw['notNone'] = notnull if defaultstr is not None: kw['default'] = self.defaultFromSchema(colClass, defaultstr) elif not notnull: kw['default'] = None - if keymap.has_key(field): - kw['foreignKey'] = keymap[field] results.append(colClass(**kw)) return results |
From: <sub...@co...> - 2009-04-16 15:53:25
|
Author: phd Date: 2009-04-16 09:53:15 -0600 (Thu, 16 Apr 2009) New Revision: 3851 Modified: SQLObject/branches/0.10/docs/News.txt SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py Log: Merged revision 3850 from branch 0.9: a bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys are now recognized and created as proper ForeignKey with correct column name and table name. Modified: SQLObject/branches/0.10/docs/News.txt =================================================================== --- SQLObject/branches/0.10/docs/News.txt 2009-04-16 15:49:23 UTC (rev 3850) +++ SQLObject/branches/0.10/docs/News.txt 2009-04-16 15:53:15 UTC (rev 3851) @@ -127,11 +127,16 @@ * Setup requires FormEncode version 1.1.1+. -* Fixed a minor bug - pass name to DecimalValidator. +* A minor bug was fixed in creating a DecimalValidator - pass the column name + to it. -* Fixed a bug in InheritableIteration - pass connection to child +* A bug was fixed in InheritableIteration - pass connection to child klass.select(). +* A bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys + are now recognized and created as proper ForeignKey with correct + column name and table name. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py =================================================================== --- SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py 2009-04-16 15:49:23 UTC (rev 3850) +++ SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py 2009-04-16 15:53:15 UTC (rev 3851) @@ -239,19 +239,25 @@ for field, t, notnull, defaultstr in colData: if field == primaryKey: continue - colClass, kw = self.guessClass(t) - if self.unicodeCols and colClass is col.StringCol: - colClass = col.UnicodeCol - kw['dbEncoding'] = client_encoding - kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) + if keymap.has_key(field): + colClass = col.ForeignKey + kw = {'foreignKey': soClass.sqlmeta.style.dbTableToPythonClass(keymap[field])} + name = soClass.sqlmeta.style.dbColumnToPythonAttr(field) + if name.endswith('ID'): + name = name[:-2] + kw['name'] = name + else: + colClass, kw = self.guessClass(t) + if self.unicodeCols and colClass is col.StringCol: + colClass = col.UnicodeCol + kw['dbEncoding'] = client_encoding + kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) kw['dbName'] = field kw['notNone'] = notnull if defaultstr is not None: kw['default'] = self.defaultFromSchema(colClass, defaultstr) elif not notnull: kw['default'] = None - if keymap.has_key(field): - kw['foreignKey'] = keymap[field] results.append(colClass(**kw)) return results |
From: <sub...@co...> - 2009-04-16 15:49:28
|
Author: phd Date: 2009-04-16 09:49:23 -0600 (Thu, 16 Apr 2009) New Revision: 3850 Modified: SQLObject/branches/0.9/docs/News.txt SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py Log: A bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys are now recognized and created as proper ForeignKey with correct coloumn name and table name. Modified: SQLObject/branches/0.9/docs/News.txt =================================================================== --- SQLObject/branches/0.9/docs/News.txt 2009-04-13 19:34:11 UTC (rev 3849) +++ SQLObject/branches/0.9/docs/News.txt 2009-04-16 15:49:23 UTC (rev 3850) @@ -19,11 +19,16 @@ * Setup requires FormEncode version 1.1.1+. -* Fixed a minor bug - pass name to DecimalValidator. +* A minor bug was fixed in creating a DecimalValidator - pass the column name + to it. -* Fixed a bug in InheritableIteration - pass connection to child +* A bug was fixed in InheritableIteration - pass connection to child klass.select(). +* A bug was fixed in PostgresConnection.columnsFromSchema() - foreign keys + are now recognized and created as proper ForeignKey with correct + coloumn name and table name. + SQLObject 0.9.9 =============== Modified: SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py =================================================================== --- SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py 2009-04-13 19:34:11 UTC (rev 3849) +++ SQLObject/branches/0.9/sqlobject/postgres/pgconnection.py 2009-04-16 15:49:23 UTC (rev 3850) @@ -238,19 +238,25 @@ for field, t, notnull, defaultstr in colData: if field == primaryKey: continue - colClass, kw = self.guessClass(t) - if self.unicodeCols and colClass is col.StringCol: - colClass = col.UnicodeCol - kw['dbEncoding'] = client_encoding - kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) + if keymap.has_key(field): + colClass = col.ForeignKey + kw = {'foreignKey': soClass.sqlmeta.style.dbTableToPythonClass(keymap[field])} + name = soClass.sqlmeta.style.dbColumnToPythonAttr(field) + if name.endswith('ID'): + name = name[:-2] + kw['name'] = name + else: + colClass, kw = self.guessClass(t) + if self.unicodeCols and colClass is col.StringCol: + colClass = col.UnicodeCol + kw['dbEncoding'] = client_encoding + kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) kw['dbName'] = field kw['notNone'] = notnull if defaultstr is not None: kw['default'] = self.defaultFromSchema(colClass, defaultstr) elif not notnull: kw['default'] = None - if keymap.has_key(field): - kw['foreignKey'] = keymap[field] results.append(colClass(**kw)) return results |
From: SourceForge.net <no...@so...> - 2009-04-09 18:27:42
|
Bugs item #2744934, was opened at 2009-04-08 22:18 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2744934&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: General Group: SQLObject from repository >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Alejandro Santos (alejolp) Assigned to: Nobody/Anonymous (nobody) Summary: Missing classmethod in InheritableSQLMeta Initial Comment: In the SVN Revisión: 3846 the following error is raised when the getColumns method is called: >>> SomeTable.sqlmeta.getColumns() TypeError: unbound method getColumns() must be called with sqlmeta instance as first argument (got nothing instead) The class InheritableSQLMeta lacks the getColumns and getAllColumns classmethod declararations. The attached file contains the svn diff output for the patch. ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-09 22:27 Message: Fixed in the revisions 3847, 3848 (branch 0.10 and the trunk). Thank you! ---------------------------------------------------------------------- Comment By: Alejandro Santos (alejolp) Date: 2009-04-08 23:08 Message: Update: the sqlmeta class in main.py also misses the classmethod call for the getColumns method. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2744934&group_id=74338 |
From: <sub...@co...> - 2009-04-09 18:26:20
|
Author: phd Date: 2009-04-09 12:26:10 -0600 (Thu, 09 Apr 2009) New Revision: 3848 Modified: SQLObject/trunk/docs/News.txt SQLObject/trunk/sqlobject/inheritance/__init__.py SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py SQLObject/trunk/sqlobject/main.py Log: Merged a fix r3847 from 0.10 branch: sqlmeta.getColumns() becomes classmethod. Modified: SQLObject/trunk/docs/News.txt =================================================================== --- SQLObject/trunk/docs/News.txt 2009-04-09 18:23:47 UTC (rev 3847) +++ SQLObject/trunk/docs/News.txt 2009-04-09 18:26:10 UTC (rev 3848) @@ -53,6 +53,8 @@ * A number of changes ported from `SQLObject 0.9.10`_. +* sqlmeta.getColumns() becomes classmethod. + SQLObject 0.10.4 ================ Modified: SQLObject/trunk/sqlobject/inheritance/__init__.py =================================================================== --- SQLObject/trunk/sqlobject/inheritance/__init__.py 2009-04-09 18:23:47 UTC (rev 3847) +++ SQLObject/trunk/sqlobject/inheritance/__init__.py 2009-04-09 18:26:10 UTC (rev 3848) @@ -212,12 +212,14 @@ columns.update(sm.parentClass.sqlmeta.columns) sm = sm.parentClass.sqlmeta return columns + getAllColumns = classmethod(getAllColumns) def getColumns(sqlmeta): columns = sqlmeta.getAllColumns() if columns.has_key('childName'): del columns['childName'] return columns + getColumns = classmethod(getColumns) class InheritableSQLObject(SQLObject): Modified: SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py =================================================================== --- SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py 2009-04-09 18:23:47 UTC (rev 3847) +++ SQLObject/trunk/sqlobject/inheritance/tests/test_asdict.py 2009-04-09 18:26:10 UTC (rev 3848) @@ -17,6 +17,17 @@ _inheritable = False position = StringCol() +def test_getColumns(): + setupClass([InheritablePerson, Boss, Employee]) + + for klass, columns in ( + (InheritablePerson, ['first', 'last']), + (Boss, ['department', 'first', 'last']), + (Employee, ['first', 'last', 'position'])): + _columns = klass.sqlmeta.getColumns().keys() + _columns.sort() + assert _columns == columns + def test_asDict(): setupClass([InheritablePerson, Boss, Employee]) InheritablePerson(first='Oneof', last='Authors') Modified: SQLObject/trunk/sqlobject/main.py =================================================================== --- SQLObject/trunk/sqlobject/main.py 2009-04-09 18:23:47 UTC (rev 3847) +++ SQLObject/trunk/sqlobject/main.py 2009-04-09 18:26:10 UTC (rev 3848) @@ -610,6 +610,7 @@ def getColumns(sqlmeta): return sqlmeta.columns.copy() + getColumns = classmethod(getColumns) def asDict(self): """ |
From: <sub...@co...> - 2009-04-09 18:23:58
|
Author: phd Date: 2009-04-09 12:23:47 -0600 (Thu, 09 Apr 2009) New Revision: 3847 Modified: SQLObject/branches/0.10/docs/News.txt SQLObject/branches/0.10/sqlobject/inheritance/__init__.py SQLObject/branches/0.10/sqlobject/inheritance/tests/test_asdict.py SQLObject/branches/0.10/sqlobject/main.py Log: Fixed a bug 2744934: sqlmeta.getColumns() becomes classmethod. Modified: SQLObject/branches/0.10/docs/News.txt =================================================================== --- SQLObject/branches/0.10/docs/News.txt 2009-04-07 04:08:56 UTC (rev 3846) +++ SQLObject/branches/0.10/docs/News.txt 2009-04-09 18:23:47 UTC (rev 3847) @@ -12,6 +12,8 @@ * A number of changes ported from `SQLObject 0.9.10`_. +* sqlmeta.getColumns() becomes classmethod. + SQLObject 0.10.4 ================ Modified: SQLObject/branches/0.10/sqlobject/inheritance/__init__.py =================================================================== --- SQLObject/branches/0.10/sqlobject/inheritance/__init__.py 2009-04-07 04:08:56 UTC (rev 3846) +++ SQLObject/branches/0.10/sqlobject/inheritance/__init__.py 2009-04-09 18:23:47 UTC (rev 3847) @@ -218,12 +218,14 @@ columns.update(sm.parentClass.sqlmeta.columns) sm = sm.parentClass.sqlmeta return columns + getAllColumns = classmethod(getAllColumns) def getColumns(sqlmeta): columns = sqlmeta.getAllColumns() if columns.has_key('childName'): del columns['childName'] return columns + getColumns = classmethod(getColumns) class InheritableSQLObject(SQLObject): Modified: SQLObject/branches/0.10/sqlobject/inheritance/tests/test_asdict.py =================================================================== --- SQLObject/branches/0.10/sqlobject/inheritance/tests/test_asdict.py 2009-04-07 04:08:56 UTC (rev 3846) +++ SQLObject/branches/0.10/sqlobject/inheritance/tests/test_asdict.py 2009-04-09 18:23:47 UTC (rev 3847) @@ -17,6 +17,17 @@ _inheritable = False position = StringCol() +def test_getColumns(): + setupClass([InheritablePerson, Boss, Employee]) + + for klass, columns in ( + (InheritablePerson, ['first', 'last']), + (Boss, ['department', 'first', 'last']), + (Employee, ['first', 'last', 'position'])): + _columns = klass.sqlmeta.getColumns().keys() + _columns.sort() + assert _columns == columns + def test_asDict(): setupClass([InheritablePerson, Boss, Employee]) InheritablePerson(first='Oneof', last='Authors') Modified: SQLObject/branches/0.10/sqlobject/main.py =================================================================== --- SQLObject/branches/0.10/sqlobject/main.py 2009-04-07 04:08:56 UTC (rev 3846) +++ SQLObject/branches/0.10/sqlobject/main.py 2009-04-09 18:23:47 UTC (rev 3847) @@ -610,6 +610,7 @@ def getColumns(sqlmeta): return sqlmeta.columns.copy() + getColumns = classmethod(getColumns) def asDict(self): """ |
From: SourceForge.net <no...@so...> - 2009-04-09 17:57:38
|
Bugs item #2492641, was opened at 2009-01-07 23:08 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2492641&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: General Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Oleg Broytmann (phd) Summary: orderBy sorts differ on Enums w/ MultipleJoin vs Select Initial Comment: Given a structure like: class Table(SQLObject): text = EnumCol(enumValues=['a','c','b']) t2 = ForeignKey("Table2") When using a regular select query like Table.select(orderBy="text") the resulting rows are ordered based on the ordering of the enumValues (a,c,b) When using a MultipleJoin like class Table2(SQLObject): t1 = MultipleJoin("Table", joinColumn="t2_id", orderBy="text") the list yielded from t1 is ordered based on the alphabetical ordering of the enumValues (a,b,c) I believe this can be traced to the 'sorter' method in joins.py Thanks, James ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2009-04-09 21:57 Message: Both Postgres and SQLite sort Table.select(orderBy="text") by the alphabetical ordering (a,b,c). So it seems SQLObject does the right thing in .sorter(). Do not rely too much on a database-specific behavior, especially when it is broken. I am sure alphabetic ordering is the right thing to do. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540672&aid=2492641&group_id=74338 |