sqlobject-cvs Mailing List for SQLObject (Page 11)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
(9) |
Apr
(74) |
May
(29) |
Jun
(16) |
Jul
(28) |
Aug
(10) |
Sep
(57) |
Oct
(9) |
Nov
(29) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(7) |
Feb
(14) |
Mar
(6) |
Apr
(3) |
May
(12) |
Jun
(34) |
Jul
(9) |
Aug
(29) |
Sep
(22) |
Oct
(2) |
Nov
(15) |
Dec
(52) |
2005 |
Jan
(47) |
Feb
(78) |
Mar
(14) |
Apr
(35) |
May
(33) |
Jun
(16) |
Jul
(26) |
Aug
(63) |
Sep
(40) |
Oct
(96) |
Nov
(96) |
Dec
(123) |
2006 |
Jan
(159) |
Feb
(144) |
Mar
(64) |
Apr
(31) |
May
(88) |
Jun
(48) |
Jul
(16) |
Aug
(64) |
Sep
(87) |
Oct
(92) |
Nov
(56) |
Dec
(76) |
2007 |
Jan
(94) |
Feb
(103) |
Mar
(126) |
Apr
(123) |
May
(85) |
Jun
(11) |
Jul
(130) |
Aug
(47) |
Sep
(65) |
Oct
(70) |
Nov
(12) |
Dec
(11) |
2008 |
Jan
(30) |
Feb
(55) |
Mar
(88) |
Apr
(20) |
May
(50) |
Jun
|
Jul
(38) |
Aug
(1) |
Sep
(9) |
Oct
(5) |
Nov
(6) |
Dec
(39) |
2009 |
Jan
(8) |
Feb
(16) |
Mar
(3) |
Apr
(33) |
May
(44) |
Jun
(1) |
Jul
(10) |
Aug
(33) |
Sep
(74) |
Oct
(22) |
Nov
|
Dec
(15) |
2010 |
Jan
(28) |
Feb
(22) |
Mar
(46) |
Apr
(29) |
May
(1) |
Jun
(1) |
Jul
(27) |
Aug
(8) |
Sep
(5) |
Oct
(33) |
Nov
(24) |
Dec
(41) |
2011 |
Jan
(4) |
Feb
(12) |
Mar
(35) |
Apr
(29) |
May
(19) |
Jun
(16) |
Jul
(32) |
Aug
(25) |
Sep
(5) |
Oct
(11) |
Nov
(21) |
Dec
(12) |
2012 |
Jan
(3) |
Feb
(4) |
Mar
(20) |
Apr
(4) |
May
(25) |
Jun
(13) |
Jul
|
Aug
|
Sep
(2) |
Oct
(25) |
Nov
(9) |
Dec
(1) |
2013 |
Jan
(6) |
Feb
(8) |
Mar
|
Apr
(10) |
May
(31) |
Jun
(7) |
Jul
(18) |
Aug
(33) |
Sep
(4) |
Oct
(16) |
Nov
|
Dec
(27) |
2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
(11) |
May
(39) |
Jun
(8) |
Jul
(11) |
Aug
(4) |
Sep
|
Oct
(27) |
Nov
|
Dec
(71) |
2015 |
Jan
(17) |
Feb
(47) |
Mar
(33) |
Apr
|
May
|
Jun
(9) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(8) |
2016 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
|
May
(12) |
Jun
(7) |
Jul
(9) |
Aug
(31) |
Sep
(8) |
Oct
(3) |
Nov
(15) |
Dec
(1) |
2017 |
Jan
(13) |
Feb
(7) |
Mar
(14) |
Apr
(8) |
May
(10) |
Jun
(4) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(4) |
Dec
(5) |
2018 |
Jan
(2) |
Feb
(8) |
Mar
|
Apr
(4) |
May
|
Jun
(6) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2019 |
Jan
(1) |
Feb
(16) |
Mar
(1) |
Apr
(3) |
May
(5) |
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(3) |
2020 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(1) |
Nov
(1) |
Dec
(4) |
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(4) |
Dec
|
2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
(9) |
2025 |
Jan
|
Feb
(4) |
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Oleg B. <no...@so...> - 2016-07-03 18:59:38
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via c5c2b34590f51dcdfa8b8754a00fa624ff9b97b5 (commit) from 7141e586c7702fde769ea286864a1655ff900bf5 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/c5c2b34590f51dcdfa8b8754a00fa624ff9b97b5 commit c5c2b34590f51dcdfa8b8754a00fa624ff9b97b5 Author: Oleg Broytman <ph...@ph...> Date: Sun Jul 3 15:25:52 2016 +0300 Explain columns, validators and converters in details [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index eca0491..42b2a19 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -35,41 +35,75 @@ checkout were not copied into ``site-packages``. See `setuptools Architecture ============ -There are four main kinds of objects in SQLObject: tables, columns, -connections and converters. +There are three main kinds of objects in SQLObject: tables, columns and +connections. Tables-related objects are in `sqlobject/main.py`_ module. There are two -main classes: SQLObject and sqlmeta; the latter is not a metaclass but a -parent class for sqlmeta attribute in every class - the authors tried to -move there all attributes and methods not directly related to columns to -avoid cluttering table namespace. +main classes: ``SQLObject`` and ``sqlmeta``; the latter is not a +metaclass but a parent class for ``sqlmeta`` attribute in every class - +the authors tried to move there all attributes and methods not directly +related to columns to avoid cluttering table namespace. .. _`sqlobject/main.py`: sqlobject/main.py.html +Connections are instances of ``DBConnection`` class (from +`sqlobject/dbconnection.py`_) and its concrete descendants. +``DBConnection`` contains generic code for generating SQL, working with +transactions and so on. Concrete connection classes (like +``PostgresConnection`` and ``SQLiteConnection``) provide +backend-specific functionality. + +.. _`sqlobject/dbconnection.py`: sqlobject/dbconnection.py.html + +Columns, validators and converters +---------------------------------- + Columns are instances of classes from `sqlobject/col.py`_. There are two classes for every column: one is for user to include into an instance of SQLObject, an instance of the other is automatically created by -SQLObject metaclass. The two classes are names SOCol and Col; for -example, SOBoolCol and BoolCol. +SQLObject's metaclass. The two classes are usually named ``Col`` and +``SOCol``; for example, ``BoolCol`` and ``SOBoolCol``. User-visible +classes, descendants of ``Col``, seldom contain any code; the main code +for a column is in ``SOCol`` descendants and in validators. .. _`sqlobject/col.py`: sqlobject/col.py.html -Connections are instances of DBConnection class (from -`sqlobject/dbconnection.py`_) and its concrete descendants. DBConnection -contains generic code for generating SQL, working with transactions and -so on. Concrete connection classes (like PostgresConnection and -SQLiteConnection) provides backend-specific functionality. - -.. _`sqlobject/dbconnection.py`: sqlobject/dbconnection.py.html - -Converters from `sqlobject/converters.py`_ aren't visible to the user. They -are used behind the scene to convert object to SQL strings. The most -elaborated converter there is StringConverters. Yes, it converts strings -to strings. It converts python strings to SQL strings using -backend-specific quoting rules. +Every column has a list of validators. Validators validate input data +and convert input data to python data and back. Every validator must +have methods ``from_python`` and ``to_python``. The former converts data +from python to internal representation that will be converted by +converters to SQL strings. The latter converts data from SQL data to +python. Also please bear in mind that validators can receive ``None`` +(for SQL ``NULL``) and ``SQLExpression`` (an object that represents +SQLObject expressions); both objects must be passed unchanged by +validators. + +Converters from `sqlobject/converters.py`_ aren't visible to users. They +are used behind the scene to convert objects returned by validators to +backend-specific SQL strings. The most elaborated converter is +``StringLikeConverter``. Yes, it converts strings to strings. It +converts python strings to SQL strings using backend-specific quoting +rules. .. _`sqlobject/converters.py`: sqlobject/converters.py.html +Let look into ``BoolCol`` as an example. The very ``BoolCol`` doesn't +have any code. ``SOBoolCol`` has a method to create ``BoolValidator`` +and methods to create backend-specific column type. ``BoolValidator`` +has identical methods ``from_python`` and ``to_python``; the method +passes ``None``, ``SQLExpression`` and bool values unchanged; int and +objects that have method ``__nonzero__`` are converted to bool; other +objects trigger validation error. Bool values that are returned by call +to ``from_python`` will be converted to SQL strings by +``BoolConverter``; bool values from ``to_python`` (is is supposed they +are originated from the backend via DB API driver) are passed to the +application. + +Objects that are returned from ``from_python`` must be registered with +converters. Another approach for ``from_python`` is to return an object +that has ``__sqlrepr__`` method. Such objects convert to SQL strings +themselves, converters are not used. + Style Guide =========== ----------------------------------------------------------------------- Summary of changes: docs/DeveloperGuide.txt | 76 ++++++++++++++++++++++++++++++++++------------- 1 files changed, 55 insertions(+), 21 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-06-30 18:12:53
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 7141e586c7702fde769ea286864a1655ff900bf5 (commit) via b85b7c37b1c12a727c5c16cef0564dd32a558abb (commit) from 2686101c67dc05258a9aa3855367ebdad28ebee1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/7141e586c7702fde769ea286864a1655ff900bf5 commit 7141e586c7702fde769ea286864a1655ff900bf5 Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 21:04:19 2016 +0300 Link to html'ized sources [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index 3362c11..eca0491 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -38,30 +38,38 @@ Architecture There are four main kinds of objects in SQLObject: tables, columns, connections and converters. -Tables-related objects are in sqlobject/main.py module. There are two +Tables-related objects are in `sqlobject/main.py`_ module. There are two main classes: SQLObject and sqlmeta; the latter is not a metaclass but a parent class for sqlmeta attribute in every class - the authors tried to move there all attributes and methods not directly related to columns to avoid cluttering table namespace. -Columns are instances of classes from sqlobject/col.py. There are two +.. _`sqlobject/main.py`: sqlobject/main.py.html + +Columns are instances of classes from `sqlobject/col.py`_. There are two classes for every column: one is for user to include into an instance of SQLObject, an instance of the other is automatically created by SQLObject metaclass. The two classes are names SOCol and Col; for example, SOBoolCol and BoolCol. +.. _`sqlobject/col.py`: sqlobject/col.py.html + Connections are instances of DBConnection class (from -sqlobject/dbconnection.py ) and its concrete descendants. DBConnection +`sqlobject/dbconnection.py`_) and its concrete descendants. DBConnection contains generic code for generating SQL, working with transactions and so on. Concrete connection classes (like PostgresConnection and SQLiteConnection) provides backend-specific functionality. -Converters from sqlobject/converters.py aren't visible to the user. They +.. _`sqlobject/dbconnection.py`: sqlobject/dbconnection.py.html + +Converters from `sqlobject/converters.py`_ aren't visible to the user. They are used behind the scene to convert object to SQL strings. The most elaborated converter there is StringConverters. Yes, it converts strings to strings. It converts python strings to SQL strings using backend-specific quoting rules. +.. _`sqlobject/converters.py`: sqlobject/converters.py.html + Style Guide =========== http://sourceforge.net/p/sqlobject/sqlobject/ci/b85b7c37b1c12a727c5c16cef0564dd32a558abb commit b85b7c37b1c12a727c5c16cef0564dd32a558abb Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 20:40:36 2016 +0300 We, the developers... [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index 3a04b21..3362c11 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -78,7 +78,7 @@ Python Style Guide. Some things to take particular note of: * **No tabs**. Not anywhere. Always indent with 4 spaces. -* I don't stress too much on line length. But try to break lines up +* We don't stress too much on line length. But try to break lines up by grouping with parenthesis instead of with backslashes (if you can). Do asserts like:: @@ -98,7 +98,7 @@ Python Style Guide. Some things to take particular note of: sqlobject import *`` so names should be fairly distinct, or they shouldn't be exported in ``sqlobject.__init__``. -* I'm very picky about whitespace. There's one and only one right way +* We're very picky about whitespace. There's one and only one right way to do it. Good examples:: short = 3 @@ -122,9 +122,9 @@ Python Style Guide. Some things to take particular note of: func( a, b ) [ 1, 2, 3 ] - To me, the poor use of whitespace seems lazy. I'll think less of - your code (justified or not) for this very trivial reason. I will - fix all your code for you if you don't do it yourself, because I + To us, the poor use of whitespace seems lazy. We'll think less of + your code (justified or not) for this very trivial reason. We will + fix all your code for you if you don't do it yourself, because we can't bear to look at sloppy whitespace. * Use ``@@`` to mark something that is suboptimal, or where you have a @@ -210,8 +210,8 @@ miscellaneous functions. .. _raises: http://pytest.org/latest/assert.html#assertions-about-expected-exceptions -If you submit a patch or implement a feature without a test, I'll be -forced to write the test. That's no fun for me, to just be writing +If you submit a patch or implement a feature without a test, we'll be +forced to write the test. That's no fun for us, to just be writing tests. So please, write tests; everything at least needs to be exercised, even if the tests are absolutely complete. ----------------------------------------------------------------------- Summary of changes: docs/DeveloperGuide.txt | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-06-30 16:00:45
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, sphinx-docs has been deleted was 6f2ef7915dd836069b390dca942b46a8bdd1bb05 - Log ----------------------------------------------------------------- 6f2ef7915dd836069b390dca942b46a8bdd1bb05 Generate docs using sphinx ----------------------------------------------------------------------- hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-06-30 15:57:54
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, sphinx-docs has been created at 6f2ef7915dd836069b390dca942b46a8bdd1bb05 (commit) - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/6f2ef7915dd836069b390dca942b46a8bdd1bb05 commit 6f2ef7915dd836069b390dca942b46a8bdd1bb05 Author: Oleg Broytman <ph...@ph...> Date: Mon Feb 16 21:56:33 2015 +0300 Generate docs using sphinx Used sphinx-apidoc to generate split API docs. diff --git a/docs/.gitignore b/docs/.gitignore index 5937020..cf1f956 100644 --- a/docs/.gitignore +++ b/docs/.gitignore @@ -1,3 +1,4 @@ /*.html +/_build/ /data.db /html diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000..5188142 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,183 @@ +# Makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +PAPER = +BUILDDIR = _build + +# User-friendly check for sphinx-build +ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) +$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/) +endif + +# Internal variables. +PAPEROPT_a4 = -D latex_paper_size=a4 +PAPEROPT_letter = -D latex_paper_size=letter +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +# the i18n builder cannot share the environment and doctrees with the others +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . + +.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext + +help: + @echo "Please use \`make <target>' where <target> is one of" + @echo " html to make standalone HTML files" + @echo " dirhtml to make HTML files named index.html in directories" + @echo " singlehtml to make a single large HTML file" + @echo " pickle to make pickle files" + @echo " json to make JSON files" + @echo " htmlhelp to make HTML files and a HTML help project" + @echo " qthelp to make HTML files and a qthelp project" + @echo " devhelp to make HTML files and a Devhelp project" + @echo " epub to make an epub" + @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" + @echo " latexpdf to make LaTeX files and run them through pdflatex" + @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" + @echo " text to make text files" + @echo " man to make manual pages" + @echo " texinfo to make Texinfo files" + @echo " info to make Texinfo files and run them through makeinfo" + @echo " gettext to make PO message catalogs" + @echo " changes to make an overview of all changed/added/deprecated items" + @echo " xml to make Docutils-native XML files" + @echo " pseudoxml to make pseudoxml-XML files for display purposes" + @echo " linkcheck to check all external links for integrity" + @echo " doctest to run all doctests embedded in the documentation (if enabled)" + @echo " coverage to run coverage check of the documentation (if enabled)" + +clean: + rm -rf $(BUILDDIR)/* + +html: + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." + +dirhtml: + $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." + +singlehtml: + $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml + @echo + @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." + +pickle: + $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle + @echo + @echo "Build finished; now you can process the pickle files." + +json: + $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + @echo + @echo "Build finished; now you can process the JSON files." + +htmlhelp: + $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp + @echo + @echo "Build finished; now you can run HTML Help Workshop with the" \ + ".hhp project file in $(BUILDDIR)/htmlhelp." + +qthelp: + $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp + @echo + @echo "Build finished; now you can run "qcollectiongenerator" with the" \ + ".qhcp project file in $(BUILDDIR)/qthelp, like this:" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/SQLObject.qhcp" + @echo "To view the help file:" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/SQLObject.qhc" + +devhelp: + $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp + @echo + @echo "Build finished." + @echo "To view the help file:" + @echo "# mkdir -p $$HOME/.local/share/devhelp/SQLObject" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/SQLObject" + @echo "# devhelp" + +epub: + $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub + @echo + @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + +latex: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo + @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." + @echo "Run \`make' in that directory to run these through (pdf)latex" \ + "(use \`make latexpdf' here to do that automatically)." + +latexpdf: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through pdflatex..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +latexpdfja: + $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex + @echo "Running LaTeX files through platex and dvipdfmx..." + $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja + @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + +text: + $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text + @echo + @echo "Build finished. The text files are in $(BUILDDIR)/text." + +man: + $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man + @echo + @echo "Build finished. The manual pages are in $(BUILDDIR)/man." + +texinfo: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo + @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." + @echo "Run \`make' in that directory to run these through makeinfo" \ + "(use \`make info' here to do that automatically)." + +info: + $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo + @echo "Running Texinfo files through makeinfo..." + make -C $(BUILDDIR)/texinfo info + @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." + +gettext: + $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale + @echo + @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." + +changes: + $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes + @echo + @echo "The overview file is in $(BUILDDIR)/changes." + +linkcheck: + $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck + @echo + @echo "Link check complete; look for any errors in the above output " \ + "or in $(BUILDDIR)/linkcheck/output.txt." + +doctest: + $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest + @echo "Testing of doctests in the sources finished, look at the " \ + "results in $(BUILDDIR)/doctest/output.txt." + +coverage: + $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage + @echo "Testing of coverage in the sources finished, look at the " \ + "results in $(BUILDDIR)/coverage/python.txt." + +xml: + $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml + @echo + @echo "Build finished. The XML files are in $(BUILDDIR)/xml." + +pseudoxml: + $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml + @echo + @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml." diff --git a/docs/api/modules.txt b/docs/api/modules.txt new file mode 100644 index 0000000..656ed22 --- /dev/null +++ b/docs/api/modules.txt @@ -0,0 +1,7 @@ +sqlobject +========= + +.. toctree:: + :maxdepth: 4 + + sqlobject diff --git a/docs/api/sqlobject.boundattributes.txt b/docs/api/sqlobject.boundattributes.txt new file mode 100644 index 0000000..1518f8d --- /dev/null +++ b/docs/api/sqlobject.boundattributes.txt @@ -0,0 +1,7 @@ +sqlobject.boundattributes module +================================ + +.. automodule:: sqlobject.boundattributes + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.cache.txt b/docs/api/sqlobject.cache.txt new file mode 100644 index 0000000..6c74d5b --- /dev/null +++ b/docs/api/sqlobject.cache.txt @@ -0,0 +1,7 @@ +sqlobject.cache module +====================== + +.. automodule:: sqlobject.cache + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.classregistry.txt b/docs/api/sqlobject.classregistry.txt new file mode 100644 index 0000000..0882491 --- /dev/null +++ b/docs/api/sqlobject.classregistry.txt @@ -0,0 +1,7 @@ +sqlobject.classregistry module +============================== + +.. automodule:: sqlobject.classregistry + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.col.txt b/docs/api/sqlobject.col.txt new file mode 100644 index 0000000..5282fc2 --- /dev/null +++ b/docs/api/sqlobject.col.txt @@ -0,0 +1,7 @@ +sqlobject.col module +==================== + +.. automodule:: sqlobject.col + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.conftest.txt b/docs/api/sqlobject.conftest.txt new file mode 100644 index 0000000..8e56428 --- /dev/null +++ b/docs/api/sqlobject.conftest.txt @@ -0,0 +1,7 @@ +sqlobject.conftest module +========================= + +.. automodule:: sqlobject.conftest + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.constraints.txt b/docs/api/sqlobject.constraints.txt new file mode 100644 index 0000000..ad39272 --- /dev/null +++ b/docs/api/sqlobject.constraints.txt @@ -0,0 +1,7 @@ +sqlobject.constraints module +============================ + +.. automodule:: sqlobject.constraints + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.converters.txt b/docs/api/sqlobject.converters.txt new file mode 100644 index 0000000..82b5cff --- /dev/null +++ b/docs/api/sqlobject.converters.txt @@ -0,0 +1,7 @@ +sqlobject.converters module +=========================== + +.. automodule:: sqlobject.converters + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.dbconnection.txt b/docs/api/sqlobject.dbconnection.txt new file mode 100644 index 0000000..6a6adc3 --- /dev/null +++ b/docs/api/sqlobject.dbconnection.txt @@ -0,0 +1,7 @@ +sqlobject.dbconnection module +============================= + +.. automodule:: sqlobject.dbconnection + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.dberrors.txt b/docs/api/sqlobject.dberrors.txt new file mode 100644 index 0000000..3035746 --- /dev/null +++ b/docs/api/sqlobject.dberrors.txt @@ -0,0 +1,7 @@ +sqlobject.dberrors module +========================= + +.. automodule:: sqlobject.dberrors + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.declarative.txt b/docs/api/sqlobject.declarative.txt new file mode 100644 index 0000000..9cc7e9b --- /dev/null +++ b/docs/api/sqlobject.declarative.txt @@ -0,0 +1,7 @@ +sqlobject.declarative module +============================ + +.. automodule:: sqlobject.declarative + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.events.txt b/docs/api/sqlobject.events.txt new file mode 100644 index 0000000..8c33239 --- /dev/null +++ b/docs/api/sqlobject.events.txt @@ -0,0 +1,7 @@ +sqlobject.events module +======================= + +.. automodule:: sqlobject.events + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.firebird.firebirdconnection.txt b/docs/api/sqlobject.firebird.firebirdconnection.txt new file mode 100644 index 0000000..6fdf26e --- /dev/null +++ b/docs/api/sqlobject.firebird.firebirdconnection.txt @@ -0,0 +1,7 @@ +sqlobject.firebird.firebirdconnection module +============================================ + +.. automodule:: sqlobject.firebird.firebirdconnection + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.firebird.txt b/docs/api/sqlobject.firebird.txt new file mode 100644 index 0000000..78cec9a --- /dev/null +++ b/docs/api/sqlobject.firebird.txt @@ -0,0 +1,15 @@ +sqlobject.firebird package +========================== + +.. automodule:: sqlobject.firebird + :members: + :undoc-members: + :show-inheritance: + +Submodules +---------- + +.. toctree:: + + sqlobject.firebird.firebirdconnection + diff --git a/docs/api/sqlobject.include.hashcol.txt b/docs/api/sqlobject.include.hashcol.txt new file mode 100644 index 0000000..76396aa --- /dev/null +++ b/docs/api/sqlobject.include.hashcol.txt @@ -0,0 +1,7 @@ +sqlobject.include.hashcol module +================================ + +.. automodule:: sqlobject.include.hashcol + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.include.txt b/docs/api/sqlobject.include.txt new file mode 100644 index 0000000..b438105 --- /dev/null +++ b/docs/api/sqlobject.include.txt @@ -0,0 +1,15 @@ +sqlobject.include package +========================= + +.. automodule:: sqlobject.include + :members: + :undoc-members: + :show-inheritance: + +Submodules +---------- + +.. toctree:: + + sqlobject.include.hashcol + diff --git a/docs/api/sqlobject.index.txt b/docs/api/sqlobject.index.txt new file mode 100644 index 0000000..bc96433 --- /dev/null +++ b/docs/api/sqlobject.index.txt @@ -0,0 +1,7 @@ +sqlobject.index module +====================== + +.. automodule:: sqlobject.index + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.inheritance.iteration.txt b/docs/api/sqlobject.inheritance.iteration.txt new file mode 100644 index 0000000..0e9538f --- /dev/null +++ b/docs/api/sqlobject.inheritance.iteration.txt @@ -0,0 +1,7 @@ +sqlobject.inheritance.iteration module +====================================== + +.. automodule:: sqlobject.inheritance.iteration + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.inheritance.tests.testDestroyCascade.txt b/docs/api/sqlobject.inheritance.tests.testDestroyCascade.txt new file mode 100644 index 0000000..7dc60f6 --- /dev/null +++ b/docs/api/sqlobject.inheritance.tests.testDestroyCascade.txt @@ -0,0 +1,7 @@ +sqlobject.inheritance.tests.testDestroyCascade module +===================================================== + +.. automodule:: sqlobject.inheritance.tests.testDestroyCascade + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.inheritance.tests.test_aggregates.txt b/docs/api/sqlobject.inheritance.tests.test_aggregates.txt new file mode 100644 index 0000000..ee01f6b --- /dev/null +++ b/docs/api/sqlobject.inheritance.tests.test_aggregates.txt @@ -0,0 +1,7 @@ +sqlobject.inheritance.tests.test_aggregates module +================================================== + +.. automodule:: sqlobject.inheritance.tests.test_aggregates + :members: + :undoc-members: + :show-inheritance: diff --git a/docs/api/sqlobject.inheritance.tests.test_asdict.txt b/docs/api/sqlobject.inheritance.tests.test_asdict.txt new file mode 100644 index 0000000..ff95591 --- /dev/null +++ b/docs/api/sqlobject.inheritance.tests.test_asdict.txt @@ -0,0 +1,7 @@ +sqlobject.inheritance.tests.test_asdict module +============================================== + +.. automodule:: sqlobject.inheritance.tests.test_asdict + :members: + :undoc-members: + :show-inheritance: ... 2045 lines suppressed ... hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-06-30 15:57:51
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 2686101c67dc05258a9aa3855367ebdad28ebee1 (commit) via 6d18c706d6e33c50f91b0f04c9ab0654bb16c160 (commit) via 9330aef08568f8030798dcb58df99ae2f263cad4 (commit) via 49e3c5a467631e5c0edd916a3f4530ae6509509c (commit) via fb6b017b2f8360284287c95ad44d720b49ca8023 (commit) via 9c92444dc04567dad5c7b3135cd95c3ded274987 (commit) from 27ff3d8110f76cc8b9e4565b3dda5cd767f417ec (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/2686101c67dc05258a9aa3855367ebdad28ebee1 commit 2686101c67dc05258a9aa3855367ebdad28ebee1 Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 18:38:00 2016 +0300 Use https for pypi.python.org [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index bb43c06..3a04b21 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -179,7 +179,7 @@ Tests are important. Tests keep everything from falling apart. All new additions should have tests. Testing uses py.test, an alternative to ``unittest``. It is available at -http://pytest.org/ and http://pypi.python.org/pypi/pytest. Read its `getting +http://pytest.org/ and https://pypi.python.org/pypi/pytest. Read its `getting started`_ document for more. .. _getting started: http://pytest.org/latest/getting-started.html @@ -226,7 +226,7 @@ Documentation Please write documentation. Documentation should live in the docs/ directory. Pudge converts documentation from Restructured Text to HTML. It presently requires kid 0.9.6, which must be obtained -separately (for instance, from http://pypi.python.org/pypi/kid/0.9.6). +separately (for instance, from https://pypi.python.org/pypi/kid/0.9.6). .. image:: https://sourceforge.net/sflogo.php?group_id=74338&type=10 :target: https://sourceforge.net/projects/sqlobject diff --git a/docs/download.txt b/docs/download.txt index e556283..407330e 100644 --- a/docs/download.txt +++ b/docs/download.txt @@ -2,7 +2,7 @@ Download SQLObject ++++++++++++++++++ The latest releases are always available on the `Python Package Index -<http://pypi.python.org/pypi/SQLObject>`_, and is installable +<https://pypi.python.org/pypi/SQLObject>`_, and is installable with `easy_install <http://pythonhosted.org/setuptools/easy_install.html>`_. diff --git a/sqlobject/compat.py b/sqlobject/compat.py index 6b7d71b..7e8d0e1 100644 --- a/sqlobject/compat.py +++ b/sqlobject/compat.py @@ -1,7 +1,7 @@ import sys import types -# Credit to six authors: http://pypi.python.org/pypi/six +# Credit to six authors: https://pypi.python.org/pypi/six # License: MIT http://sourceforge.net/p/sqlobject/sqlobject/ci/6d18c706d6e33c50f91b0f04c9ab0654bb16c160 commit 6d18c706d6e33c50f91b0f04c9ab0654bb16c160 Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 18:37:35 2016 +0300 Use the latest kid (0.9.6) [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index 8d6aaa0..bb43c06 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -225,8 +225,8 @@ Documentation Please write documentation. Documentation should live in the docs/ directory. Pudge converts documentation from Restructured Text to -HTML. It presently requires kid 0.9.3, which must be obtained -separately (for instance, from http://pypi.python.org/pypi/kid/0.9.3) +HTML. It presently requires kid 0.9.6, which must be obtained +separately (for instance, from http://pypi.python.org/pypi/kid/0.9.6). .. image:: https://sourceforge.net/sflogo.php?group_id=74338&type=10 :target: https://sourceforge.net/projects/sqlobject http://sourceforge.net/p/sqlobject/sqlobject/ci/9330aef08568f8030798dcb58df99ae2f263cad4 commit 9330aef08568f8030798dcb58df99ae2f263cad4 Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 17:50:37 2016 +0300 SQLObject architecture from the developer's point of view [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index 283f004..8d6aaa0 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -32,6 +32,36 @@ Voila! The packages are globally installed, but the files from the checkout were not copied into ``site-packages``. See `setuptools <http://pythonhosted.org/setuptools/>`_ for more. +Architecture +============ + +There are four main kinds of objects in SQLObject: tables, columns, +connections and converters. + +Tables-related objects are in sqlobject/main.py module. There are two +main classes: SQLObject and sqlmeta; the latter is not a metaclass but a +parent class for sqlmeta attribute in every class - the authors tried to +move there all attributes and methods not directly related to columns to +avoid cluttering table namespace. + +Columns are instances of classes from sqlobject/col.py. There are two +classes for every column: one is for user to include into an instance of +SQLObject, an instance of the other is automatically created by +SQLObject metaclass. The two classes are names SOCol and Col; for +example, SOBoolCol and BoolCol. + +Connections are instances of DBConnection class (from +sqlobject/dbconnection.py ) and its concrete descendants. DBConnection +contains generic code for generating SQL, working with transactions and +so on. Concrete connection classes (like PostgresConnection and +SQLiteConnection) provides backend-specific functionality. + +Converters from sqlobject/converters.py aren't visible to the user. They +are used behind the scene to convert object to SQL strings. The most +elaborated converter there is StringConverters. Yes, it converts strings +to strings. It converts python strings to SQL strings using +backend-specific quoting rules. + Style Guide =========== http://sourceforge.net/p/sqlobject/sqlobject/ci/49e3c5a467631e5c0edd916a3f4530ae6509509c commit 49e3c5a467631e5c0edd916a3f4530ae6509509c Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 17:49:54 2016 +0300 Explain why a dev should fork and clone [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index 1eb8529..283f004 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -24,6 +24,10 @@ Then do the same for SQLObject:: $ cd sqlobject $ sudo python setup.py develop +Or rather fork it and clone your fork. To develop a feature or a bugfix +create a separate branch, push it to your fork and create a pull request +to the original repo. That way CI will be triggered to test your code. + Voila! The packages are globally installed, but the files from the checkout were not copied into ``site-packages``. See `setuptools <http://pythonhosted.org/setuptools/>`_ for more. http://sourceforge.net/p/sqlobject/sqlobject/ci/fb6b017b2f8360284287c95ad44d720b49ca8023 commit fb6b017b2f8360284287c95ad44d720b49ca8023 Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 17:48:51 2016 +0300 Change clone URL from SF to github [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index d339cd4..1eb8529 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -20,7 +20,7 @@ First install `FormEncode <http://www.formencode.org/en/latest/download.html>`_: Then do the same for SQLObject:: - $ git clone git clone git://git.code.sf.net/p/sqlobject/sqlobject + $ git clone git clone git://github.com/sqlobject/sqlobject $ cd sqlobject $ sudo python setup.py develop http://sourceforge.net/p/sqlobject/sqlobject/ci/9c92444dc04567dad5c7b3135cd95c3ded274987 commit 9c92444dc04567dad5c7b3135cd95c3ded274987 Author: Oleg Broytman <ph...@ph...> Date: Thu Jun 30 17:47:51 2016 +0300 Gonna extend the dev guide [skip ci] diff --git a/docs/DeveloperGuide.txt b/docs/DeveloperGuide.txt index 4453733..d339cd4 100644 --- a/docs/DeveloperGuide.txt +++ b/docs/DeveloperGuide.txt @@ -7,10 +7,7 @@ SQLObject Developer Guide .. _start: -These are some notes on developing SQLObject. I'll try to expand them -as things come up. - - -- Ian Bicking +These are some notes on developing SQLObject. Development Installation ======================== ----------------------------------------------------------------------- Summary of changes: docs/DeveloperGuide.txt | 47 +++++++++++++++++++++++++++++++++++++++-------- docs/download.txt | 2 +- sqlobject/compat.py | 2 +- 3 files changed, 41 insertions(+), 10 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-06-01 15:50:53
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The annotated tag, 3.0.0 has been created at 4ce9a4c7283c0fbc4b574166bc82dcd03fd7a342 (tag) tagging 27ff3d8110f76cc8b9e4565b3dda5cd767f417ec (commit) replaces 3.0.0b1 tagged by Oleg Broytman on Wed Jun 1 18:19:27 2016 +0300 - Log ----------------------------------------------------------------- Release 3.0.0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCgAGBQJXTvz/AAoJEG4IC3C2KHsDwAYP/0JBqEE7FedtJmvdDJBFWzuP 9azSlO9Fr9ytMwpkH5DmsOMA0stjZY1YCrMBYNh8D5To8Fr+SuIWQD988zWyETHR emRjgqg2GAY/PaUmVxCHMvXrVbDbEOO2GA5KmuZfquoJSMU93+uXuoJoIuWaayR+ Lmi3bO8Yxz1e/kL7MNdpS5ZK57E9pH6N0U3fYk4FWm4aiP2jd5D1EY+jIl2+RYy1 VkgwE9PmNGno1lrMHLzS4vmsPO/SJsW5KozE87bRQoR6s3R32aHtZt/dXMeN+fwb u1mD6NGZfcmRmHOLHWV/KJMbCLFy8I5xj6ePxmGGpeYP48IrO5213aCvlXt5B9aW QFFzLxjsZZuG+HKsQKK7Ykpzxxcl8y8EvVcWyUDN7FUSGzhxuKk6NIPjv45u3OZ9 ozwnBZ5C8mAYMYMfh5R8N8LHuZQj4SUKM/Sfx0mJYlUgw6ilYI+7OxA02sK3aOje 1oAG14wk5yZgKQorfVEe8oq4gkVRmubK0cVOXZ4eH0IQc+sZ7Zq49xGh5WpvO4Ny W6DSYXqd47cAZz2b7M++dnTsoY2T6vZeejUVNrWSlq2nz7voC00UA7nUsMhZYJZ+ 21q1m71DuvdprNvouC/FtPF3FaTDNQQnTBukxg4ewsumExC0+r5mz33JDq6tzmhA nJKplElrLdgbTebIsHNI =F9Ix -----END PGP SIGNATURE----- Oleg Broytman (1): Release 3.0.0 ----------------------------------------------------------------------- hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-06-01 15:50:26
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 27ff3d8110f76cc8b9e4565b3dda5cd767f417ec (commit) from 82ce502a904ca579c20c20771c95867553048549 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/27ff3d8110f76cc8b9e4565b3dda5cd767f417ec commit 27ff3d8110f76cc8b9e4565b3dda5cd767f417ec Author: Oleg Broytman <ph...@ph...> Date: Wed Jun 1 18:18:23 2016 +0300 Release 3.0.0 diff --git a/README.txt b/README.txt index 49cd23b..2fb247d 100644 --- a/README.txt +++ b/README.txt @@ -1,5 +1,5 @@ -SQLObject 3.0.0b1 -================= +SQLObject 3.0.0 +=============== Thanks for looking at SQLObject. SQLObject is an object-relational mapper, i.e., a library that will wrap your database tables in Python diff --git a/docs/News.txt b/docs/News.txt index 24c4350..3cfec6e 100644 --- a/docs/News.txt +++ b/docs/News.txt @@ -10,6 +10,8 @@ News SQLObject 3.0.0 (master) ======================== +Released 1 Jun 2016. + Features -------- diff --git a/setup.cfg b/setup.cfg index cdf3bfa..b6e6ba4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,9 +47,9 @@ doc-dir = docs/html make-dirs = 1 ## For live documentation: -# doc-dest = scp://web.sourceforge.net:/home/project-web/sqlobject/ +doc-dest = scp://web.sourceforge.net:/home/project-web/sqlobject/ ## For in-development documentation: -doc-dest = scp://web.sourceforge.net:/home/project-web/sqlobject/devel/ +# doc-dest = scp://web.sourceforge.net:/home/project-web/sqlobject/devel/ [bdist_wheel] universal = 1 diff --git a/setup.py b/setup.py index f5c1ae6..834893d 100755 --- a/setup.py +++ b/setup.py @@ -62,7 +62,7 @@ and `GitHub <https://github.com/sqlobject>`_. :target: https://travis-ci.org/sqlobject/sqlobject """, classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: " "GNU Library or Lesser General Public License (LGPL)", diff --git a/sqlobject/__version__.py b/sqlobject/__version__.py index 2f7f570..431113f 100644 --- a/sqlobject/__version__.py +++ b/sqlobject/__version__.py @@ -1,8 +1,8 @@ -version = '3.0.0b1' +version = '3.0.0' major = 3 minor = 0 micro = 0 -release_level = 'beta' -serial = 1 +release_level = 'final' +serial = 0 version_info = (major, minor, micro, release_level, serial) ----------------------------------------------------------------------- Summary of changes: README.txt | 4 ++-- docs/News.txt | 2 ++ setup.cfg | 4 ++-- setup.py | 2 +- sqlobject/__version__.py | 6 +++--- 5 files changed, 10 insertions(+), 8 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-15 11:43:53
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The annotated tag, 3.0.0b1 has been created at 9cd027a41cfbc94e855f97488d8b7a32b497cbcb (tag) tagging 82ce502a904ca579c20c20771c95867553048549 (commit) replaces 3.0.0a2 tagged by Oleg Broytman on Sun May 15 14:25:57 2016 +0300 - Log ----------------------------------------------------------------- Release 3.0.0b1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCgAGBQJXOFzFAAoJEG4IC3C2KHsDct4QALei1NYX8OJNENs+BtuGg1fz il5rHVIGMKYnvdn5Bnf6Moa5o8UdfyJ6uKy0OhVz33JJRObfAQW7bQdvvu2O9Z4I x1jrsuT5Hsa6yCCfpdposRWZVbGSRKJffWCUaaJBGzkoq60RKc/17+P5/6liPLs6 Q2xVaw8f3AyMCKp5W1wA7r7JoOAF0XHk/67BeUa+G3iCZ1gUG/stZG3CZoSpnXSr ZUzy+VuKjEsZrcwZxStLgUairXpETtysTWUYPDLOYHMJuUCm82nKP3N1IaVbDD7w oaTFY4QW6lNOSmcumZY1AArzYveTcECXBxfqhpKMPRYswFxNAUy2ClxwlTJ2E75e JsHPii4QfoufbHmYwBrkop4UZkJcdM2xV74kh65TvxNCtlT7MJNyip6qAnF4vhUi VVCbqANyVjMCi8iW0CBfEA5p1hLKsdx0uGi7ZYrbPa1iwWKfXfDeUh4moMly0sNC li7RdTDepEbFy0Hwum9b8x20oks9HOz+mbruJufvLm1aJqKJAogjYXCcTJk8eTuJ 9/Xvx+vCUl9UUi1bJ9VKTGjPB+5qPlNuD+SSeasdfFU4dBrn1BzNDD5suGaBf/Bm Lycy6snKSS5dyVYet/KrjT3c8ooOZer8XpzNSN1VYItRmzu0Qvv5/+E4+2VO88Lv esLszDG1mW1kR3g1PwKg =vp1h -----END PGP SIGNATURE----- Neil (4): Add hash function Add simple test case for hash implementation Fix flake8 warning in test case Fix __name__ typo Oleg Broytman (26): Fix argument for super() Merge branch '1.6' into 1.7 Merge branch '1.7' into 2.2 Merge branch '2.2' Fix unicode test for Py3 Merge pull request #117 from drnlm/bugs/issue-115-hashable-columns SourceForge has finally switched to HTTPS Merge branch '1.6' into 1.7 Merge branch '1.7' into 2.2 SourceForge has finally switched to HTTPS Merge branch '2.2' Add sqlbuilder.CONCAT to generate concatenation command Merge branch '2.2' Minor refactoring in test_CONCAT Merge branch '2.2' Adapt test_CONCAT to Py3 SQLObject 2.2.0 was released 8 May 2016 Merge branch '2.2' Release 2.2.0 Null-merge branch '2.2' Fix a bug in sqlbuilder.CONCAT Merge branch '2.2' Release 2.2.1 Merge branch '2.2' Remove announcements for merged features Release 3.0.0b1 ----------------------------------------------------------------------- hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-15 11:43:51
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 82ce502a904ca579c20c20771c95867553048549 (commit) via 742a466ae8bb0233594542950c774c9bbbfc16be (commit) from b2a311bed228254fc19ee20d8ee8eae11d07df09 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/82ce502a904ca579c20c20771c95867553048549 commit 82ce502a904ca579c20c20771c95867553048549 Author: Oleg Broytman <ph...@ph...> Date: Sun May 15 14:23:59 2016 +0300 Release 3.0.0b1 diff --git a/README.txt b/README.txt index dabed60..49cd23b 100644 --- a/README.txt +++ b/README.txt @@ -1,4 +1,4 @@ -SQLObject 3.0.0a2 +SQLObject 3.0.0b1 ================= Thanks for looking at SQLObject. SQLObject is an object-relational diff --git a/setup.cfg b/setup.cfg index 1becbdb..cdf3bfa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,8 +3,8 @@ command_packages = buildutils.pudge_command, buildutils.publish_command [egg_info] -tag_build = dev -tag_date = 1 +tag_build = +tag_date = 0 tag_svn_revision = 0 [flake8] diff --git a/setup.py b/setup.py index 4099b41..f5c1ae6 100755 --- a/setup.py +++ b/setup.py @@ -62,7 +62,7 @@ and `GitHub <https://github.com/sqlobject>`_. :target: https://travis-ci.org/sqlobject/sqlobject """, classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: " "GNU Library or Lesser General Public License (LGPL)", @@ -81,8 +81,7 @@ and `GitHub <https://github.com/sqlobject>`_. maintainer="Oleg Broytman", maintainer_email="ph...@ph...", url="http://sqlobject.org/devel/", - download_url="https://pypi.python.org/pypi/SQLObject/" - "%sdev-20151224" % version, + download_url="https://pypi.python.org/pypi/SQLObject/%s" % version, license="LGPL", packages=["sqlobject"] + ['sqlobject.%s' % package for package in subpackages], diff --git a/sqlobject/__version__.py b/sqlobject/__version__.py index 05e6604..2f7f570 100644 --- a/sqlobject/__version__.py +++ b/sqlobject/__version__.py @@ -1,8 +1,8 @@ -version = '3.0.0a2' +version = '3.0.0b1' major = 3 minor = 0 micro = 0 -release_level = 'alpha' -serial = 2 +release_level = 'beta' +serial = 1 version_info = (major, minor, micro, release_level, serial) http://sourceforge.net/p/sqlobject/sqlobject/ci/742a466ae8bb0233594542950c774c9bbbfc16be commit 742a466ae8bb0233594542950c774c9bbbfc16be Author: Oleg Broytman <ph...@ph...> Date: Fri May 13 19:54:58 2016 +0300 Remove announcements for merged features These features are already published in 2.2. diff --git a/docs/News.txt b/docs/News.txt index 32906c8..24c4350 100644 --- a/docs/News.txt +++ b/docs/News.txt @@ -16,18 +16,11 @@ Features * Support for Python 2 and Python 3 with one codebase! (Python version >= 3.4 currently required.) -* Columns for ForeignKey are created using idType of the referenced - table -- merged from `SQLObject 2.2.0`_. - Minor features -------------- -* Use fdb adapter for Firebird. - * PyDispatcher (>=2.0.4) was made an external dependency. -* Document MSSQL server versions -- merged from `SQLObject 2.2.0`_. - Development ----------- @@ -39,14 +32,6 @@ Documentation * Documentation is published at http://sqlobject.readthedocs.org/ in Sphinx format. -Tests ------ - -* Speedup SQLite connections in tests -- merged from `SQLObject 2.2.0`_. - -* Added new test helper setupCyclicClasses to setup classes with mutual - references -- merged from `SQLObject 2.2.0`_. - SQLObject 2.2.1 =============== ----------------------------------------------------------------------- Summary of changes: README.txt | 2 +- docs/News.txt | 15 --------------- setup.cfg | 4 ++-- setup.py | 5 ++--- sqlobject/__version__.py | 6 +++--- 5 files changed, 8 insertions(+), 24 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-10 19:34:54
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The annotated tag, 2.2.1 has been created at f94b9291a7fe0dd454c3300a97ccc54f780b6a9d (tag) tagging c3c82cc58dbb861a228e3f355f69c07c28e36462 (commit) replaces 2.2.0 tagged by Oleg Broytman on Tue May 10 22:17:44 2016 +0300 - Log ----------------------------------------------------------------- Release 2.2.1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCgAGBQJXMjPYAAoJEG4IC3C2KHsD8LcP/0I7zSSMsiCfAfvCuRCS340Q jkL4J5bNlfZWaqtF038DlRZabwl7pXz6JX4knD+vejCUN39DVuTowPo6dGtBDA0e 9TcSXj033gguyI2H/hNOGjcvYCt4DEsTFu8WIAkpaeUAU8HXKrUYaNUHod0lLAnU 4n0JpiomekSQM927CUWQYSxCCkTs9Y+JhYnGK3FDgoUqm7D9VL9YWciqgqWCUr+n wtw9/iLtS13vY2SuCGpZ0Noj8ddAsJl+h05wW2KepE1PpcEihaZzVAR4YhiLq0BC DtrDYUwZtm8uAfjikqAHuOE2EUSB8CnopHT6LGpERrH+hXcXsKmmRUUtTB2E5uCV Qi0KQFE9+WMyjGIhan0oDAJSe+iA8Mo9WY6JENb9g8h3AgyPH/mhelUir/N7tJpD 1YC4QMDCthc5HTksQabs0cvCWHH/mDqSBtSgR2uL2BeucaH8romcUqNF/JmNQ28v HwnNOfd7iVMpyk4quHF8lvtmnW5v5rFI/HcfGfef9MNRSwuZfSeIQtFIcsAaHjlH eTkGYSSBAZ5YC0+7XbUHuad901D1d59MH/eus8rLt9zsfj6eXmcKlhHokN3yeRL1 +fCjkZy8UvfJt+B8hMYuPdrWKKynnUuFSBgucjm94qdz4XcQFvCa5hL4JKSQ2bq4 cBKBqj78IByfDcvdTIKq =xKBY -----END PGP SIGNATURE----- Oleg Broytman (2): Fix a bug in sqlbuilder.CONCAT Release 2.2.1 ----------------------------------------------------------------------- hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-10 19:34:52
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via b2a311bed228254fc19ee20d8ee8eae11d07df09 (commit) via c3c82cc58dbb861a228e3f355f69c07c28e36462 (commit) via 2459efe7e9f6179ab11c7f3dde1bca38640b3d94 (commit) via 4aa1c01c86e66964d9ef768a092dafe55bb06e88 (commit) from 696519214777210f631382089d1f60ce10989d75 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/b2a311bed228254fc19ee20d8ee8eae11d07df09 commit b2a311bed228254fc19ee20d8ee8eae11d07df09 Merge: 2459efe c3c82cc Author: Oleg Broytman <ph...@ph...> Date: Tue May 10 22:17:23 2016 +0300 Merge branch '2.2' http://sourceforge.net/p/sqlobject/sqlobject/ci/2459efe7e9f6179ab11c7f3dde1bca38640b3d94 commit 2459efe7e9f6179ab11c7f3dde1bca38640b3d94 Merge: 6965192 4aa1c01 Author: Oleg Broytman <ph...@ph...> Date: Mon May 9 00:25:31 2016 +0300 Merge branch '2.2' diff --cc docs/News.txt index 6239a20,f982beb..1aec5cd --- a/docs/News.txt +++ b/docs/News.txt @@@ -7,46 -7,11 +7,51 @@@ New .. _start: +SQLObject 3.0.0 (master) +======================== + +Features +-------- + +* Support for Python 2 and Python 3 with one codebase! + (Python version >= 3.4 currently required.) + +* Columns for ForeignKey are created using idType of the referenced + table -- merged from `SQLObject 2.2.0`_. + +Minor features +-------------- + +* Use fdb adapter for Firebird. + +* PyDispatcher (>=2.0.4) was made an external dependency. + +* Document MSSQL server versions -- merged from `SQLObject 2.2.0`_. + +Development +----------- + +* Source code was made flake8-clean. + +Documentation +------------- + +* Documentation is published at http://sqlobject.readthedocs.org/ in + Sphinx format. + +Tests +----- + +* Speedup SQLite connections in tests -- merged from `SQLObject 2.2.0`_. + +* Added new test helper setupCyclicClasses to setup classes with mutual + references -- merged from `SQLObject 2.2.0`_. + + SQLObject 2.2.1 + =============== + + * Fix a bug in sqlbuilder.CONCAT. + SQLObject 2.2.0 =============== diff --cc sqlobject/sqlbuilder.py index 3a11325,ce93b4e..c53580b --- a/sqlobject/sqlbuilder.py +++ b/sqlobject/sqlbuilder.py @@@ -1082,13 -930,10 +1082,13 @@@ def _quote_like_special(s, db) escape = r'\\' else: escape = '\\' - s = s.replace('\\', r'\\').replace('%', escape+'%').replace('_', escape+'_') + s = s.replace('\\', r'\\').\ + replace('%', escape + '%').\ + replace('_', escape + '_') return s + - class CONCAT: + class CONCAT(SQLExpression): def __init__(self, *expressions): self.expressions = expressions ----------------------------------------------------------------------- Summary of changes: docs/News.txt | 7 +++++++ sqlobject/sqlbuilder.py | 2 +- 2 files changed, 8 insertions(+), 1 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-10 19:34:50
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 2.2 has been updated via c3c82cc58dbb861a228e3f355f69c07c28e36462 (commit) via 4aa1c01c86e66964d9ef768a092dafe55bb06e88 (commit) from c720a21c04024972cee5497a45eb0d5ed201b217 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: README.txt | 2 +- docs/News.txt | 7 +++++++ sqlobject/__version__.py | 4 ++-- sqlobject/sqlbuilder.py | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-08 07:19:31
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The annotated tag, 2.2.0 has been created at 3314bc4d7c09829b09c4e122dd0df705a542de9b (tag) tagging c720a21c04024972cee5497a45eb0d5ed201b217 (commit) replaces 2.2.0b2 tagged by Oleg Broytman on Sun May 8 09:59:52 2016 +0300 - Log ----------------------------------------------------------------- Release 2.2.0 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABCgAGBQJXLuPpAAoJEG4IC3C2KHsD7HkP/3TovIUbPDRox+wK+GTS0NaP Z22c6sMRBNYjlf/6ksBkRkNiTNewDz5L9+nf7alsCZgNXvHWI2Jnsecayr8FeVuu 1Z5vnCRYU3JdWRcGS7AJE3aSxTp7dCmoTVr6QjjLuZXMg2kRLEhyoG2Cv7RxMRYz CUQ+8j7EtLle7qS3fOzEKO6xRSC4x4wSjCNfoZhuRU3vyaEiYjFB48r1kkOotP3b 6RttOWA98lBj9tREJusvn3/fUaci4pvwMWSiQZJJJt0AQxp7I6jAV5chMvTZd+Te 2UQYfslFnTbhhp2JJOjIqQzM7wvsDeAZG7O3d5qO51J+Y5h9jsja/V0sDgP6tTdU Kw4r7ChKJYUwO80zWi+sG3j1HQDuHJyYaKp9JDt+pjKmqG7l3STDZni7qRUzA6Q7 qIfE2f4r9/LR3N7i8D+PfATyHDTDtTHzO9i+A5YVK+N28Ltckzo+ObERMsXV1XuN lHYRx8lStP6aZQXwkaNWzDRwzOAP4SVowQyapKsADnC3zHBxvGgThiVtWPoiVj4q qvo+O8lAZNILWmQqDXgSh+XycRsqhMVv0LlSwVyUVTk5lL+wHwefAmjwwD/7/xxj xINfalP/7SFSD7P7Bsxb0EswhWe9rG5O8jre881kdUzkQREgu8WD6kuUfhMDkIQd RKaaib2KLCzm1dliy5QH =iLJr -----END PGP SIGNATURE----- Oleg Broytman (11): Fix argument for super() Merge branch '1.6' into 1.7 Merge branch '1.7' into 2.2 SourceForge has finally switched to HTTPS Merge branch '1.6' into 1.7 Merge branch '1.7' into 2.2 SourceForge has finally switched to HTTPS Add sqlbuilder.CONCAT to generate concatenation command Minor refactoring in test_CONCAT SQLObject 2.2.0 was released 8 May 2016 Release 2.2.0 ----------------------------------------------------------------------- hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-08 07:18:51
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 696519214777210f631382089d1f60ce10989d75 (commit) via c720a21c04024972cee5497a45eb0d5ed201b217 (commit) via 0ead1105ad9cb19e39856008d3388120a879cb1d (commit) via 612ad587fe04c0fa5530d173b61f53e484f95439 (commit) from 814209b369b60280d008f997b2b1960285b935ac (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/696519214777210f631382089d1f60ce10989d75 commit 696519214777210f631382089d1f60ce10989d75 Merge: 0ead110 c720a21 Author: Oleg Broytman <ph...@ph...> Date: Sun May 8 09:59:05 2016 +0300 Null-merge branch '2.2' http://sourceforge.net/p/sqlobject/sqlobject/ci/0ead1105ad9cb19e39856008d3388120a879cb1d commit 0ead1105ad9cb19e39856008d3388120a879cb1d Merge: 814209b 612ad58 Author: Oleg Broytman <ph...@ph...> Date: Sun May 8 09:49:12 2016 +0300 Merge branch '2.2' ----------------------------------------------------------------------- Summary of changes: docs/News.txt | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-08 07:18:49
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 2.2 has been updated via c720a21c04024972cee5497a45eb0d5ed201b217 (commit) via 612ad587fe04c0fa5530d173b61f53e484f95439 (commit) from 42266faeb01d6cdb772d9b258e09dcf503d4b874 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: README.txt | 4 ++-- docs/News.txt | 2 ++ setup.cfg | 4 ++-- setup.py | 4 ++-- sqlobject/__version__.py | 6 +++--- 5 files changed, 11 insertions(+), 9 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-07 11:09:58
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 814209b369b60280d008f997b2b1960285b935ac (commit) via 28dea0fe7451d10ddc9ba74e0d24f5fd450f3413 (commit) via 42266faeb01d6cdb772d9b258e09dcf503d4b874 (commit) from 573c8075d9a0025a7cf34b03bd146dd4384c35eb (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/814209b369b60280d008f997b2b1960285b935ac commit 814209b369b60280d008f997b2b1960285b935ac Author: Oleg Broytman <ph...@ph...> Date: Sat May 7 13:42:40 2016 +0300 Adapt test_CONCAT to Py3 MySQL returns bytes while Pg and SQLite return strings; decode bytes to a string. diff --git a/sqlobject/tests/test_sqlbuilder.py b/sqlobject/tests/test_sqlbuilder.py index e99f9ef..d494453 100644 --- a/sqlobject/tests/test_sqlbuilder.py +++ b/sqlobject/tests/test_sqlbuilder.py @@ -1,4 +1,5 @@ from sqlobject import * +from sqlobject.compat import PY2 from sqlobject.sqlbuilder import * from sqlobject.tests.dbtest import * @@ -104,4 +105,6 @@ def test_CONCAT(): connection = getConnection() rows = connection.queryAll(connection.sqlrepr(select)) result = rows[0][0] + if not PY2 and not isinstance(result, str): + result = result.decode('ascii') assert result == "test-suffix" http://sourceforge.net/p/sqlobject/sqlobject/ci/28dea0fe7451d10ddc9ba74e0d24f5fd450f3413 commit 28dea0fe7451d10ddc9ba74e0d24f5fd450f3413 Merge: 573c807 42266fa Author: Oleg Broytman <ph...@ph...> Date: Sat May 7 13:38:04 2016 +0300 Merge branch '2.2' diff --cc sqlobject/tests/test_sqlbuilder.py index e1dbc34,5a112ae..e99f9ef --- a/sqlobject/tests/test_sqlbuilder.py +++ b/sqlobject/tests/test_sqlbuilder.py @@@ -87,11 -74,12 +87,13 @@@ def test_str_or_sqlrepr() assert sqlrepr(delete, 'sqlite') == \ "DELETE FROM employees" + def test_CONCAT(): + setupClass(TestSQLBuilder) + TestSQLBuilder(name='test', value=42) + assert sqlrepr(CONCAT('a', 'b'), 'mysql') == "CONCAT('a', 'b')" assert sqlrepr(CONCAT('a', 'b'), 'sqlite') == "'a' || 'b'" - setupClass(TestSQLBuilder) assert sqlrepr(CONCAT('prefix', TestSQLBuilder.q.name), 'mysql') == \ "CONCAT('prefix', test_sql_builder.name)" assert sqlrepr(CONCAT('prefix', TestSQLBuilder.q.name), 'sqlite') == \ ----------------------------------------------------------------------- Summary of changes: sqlobject/tests/test_sqlbuilder.py | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-07 11:09:56
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 2.2 has been updated via 42266faeb01d6cdb772d9b258e09dcf503d4b874 (commit) from dfa8edbc095aa717ea2a5af3f1c0f40224f338a4 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: sqlobject/tests/test_sqlbuilder.py | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-07 03:01:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 573c8075d9a0025a7cf34b03bd146dd4384c35eb (commit) via dfa8edbc095aa717ea2a5af3f1c0f40224f338a4 (commit) from 6cc76f06612f0adfc3858d515767a712a5465f2a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/573c8075d9a0025a7cf34b03bd146dd4384c35eb commit 573c8075d9a0025a7cf34b03bd146dd4384c35eb Merge: 6cc76f0 dfa8edb Author: Oleg Broytman <ph...@ph...> Date: Sat May 7 05:55:52 2016 +0300 Merge branch '2.2' diff --cc sqlobject/sqlbuilder.py index fd28c29,355ae57..3a11325 --- a/sqlobject/sqlbuilder.py +++ b/sqlobject/sqlbuilder.py @@@ -1082,17 -930,24 +1082,28 @@@ def _quote_like_special(s, db) escape = r'\\' else: escape = '\\' - s = s.replace('\\', r'\\').replace('%', escape+'%').replace('_', escape+'_') + s = s.replace('\\', r'\\').\ + replace('%', escape + '%').\ + replace('_', escape + '_') return s + + class CONCAT: + def __init__(self, *expressions): + self.expressions = expressions + + def __sqlrepr__(self, db): + values = [sqlrepr(expr, db) for expr in self.expressions] + if db == "mysql": + return "CONCAT(%s)" % ", ".join(values) + else: + return " || ".join(values) + ######################################## -## SQL JOINs +# SQL JOINs ######################################## + class SQLJoin(SQLExpression): def __init__(self, table1, table2, op=','): if hasattr(table1, 'sqlmeta'): diff --cc sqlobject/tests/test_sqlbuilder.py index fea08ae,e5bf3ef..e1dbc34 --- a/sqlobject/tests/test_sqlbuilder.py +++ b/sqlobject/tests/test_sqlbuilder.py @@@ -86,3 -73,18 +86,19 @@@ def test_str_or_sqlrepr() delete = Delete('employees', where=None) assert sqlrepr(delete, 'sqlite') == \ "DELETE FROM employees" + ++ + def test_CONCAT(): + assert sqlrepr(CONCAT('a', 'b'), 'mysql') == "CONCAT('a', 'b')" + assert sqlrepr(CONCAT('a', 'b'), 'sqlite') == "'a' || 'b'" + setupClass(TestSQLBuilder) + assert sqlrepr(CONCAT('prefix', TestSQLBuilder.q.name), 'mysql') == \ + "CONCAT('prefix', test_sql_builder.name)" + assert sqlrepr(CONCAT('prefix', TestSQLBuilder.q.name), 'sqlite') == \ + "'prefix' || test_sql_builder.name" + TestSQLBuilder(name='test', value=42) + select = Select([CONCAT(TestSQLBuilder.q.name, '-suffix')], + staticTables=['test_sql_builder']) + connection = getConnection() + assert connection.queryAll(connection.sqlrepr(select))[0][0] == \ + "test-suffix" ----------------------------------------------------------------------- Summary of changes: docs/News.txt | 3 +++ sqlobject/sqlbuilder.py | 11 +++++++++++ sqlobject/tests/test_sqlbuilder.py | 16 ++++++++++++++++ 3 files changed, 30 insertions(+), 0 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-05-07 03:01:25
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 2.2 has been updated via dfa8edbc095aa717ea2a5af3f1c0f40224f338a4 (commit) from 158a6ecc3fd37f8751b904db3776f646efe9cfdd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: docs/News.txt | 3 +++ sqlobject/sqlbuilder.py | 11 +++++++++++ sqlobject/tests/test_sqlbuilder.py | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 0 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-02-16 18:17:31
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 6cc76f06612f0adfc3858d515767a712a5465f2a (commit) via 158a6ecc3fd37f8751b904db3776f646efe9cfdd (commit) via 52da711ccfefe9714132086bb3b4bf1a691e9300 (commit) via 8d282f7603f95b8ac8706f3ce216d000f4742f65 (commit) via 7ba9175dd2203ce3e4665b11802c8bd963f5b46d (commit) from 9238f42a2c13ffb41f044b33f4d4c6bfb1c05c5c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/6cc76f06612f0adfc3858d515767a712a5465f2a commit 6cc76f06612f0adfc3858d515767a712a5465f2a Merge: 9238f42 158a6ec Author: Oleg Broytman <ph...@ph...> Date: Tue Feb 16 20:59:54 2016 +0300 Merge branch '2.2' diff --cc setup.py index b532d22,c8a1f47..4099b41 --- a/setup.py +++ b/setup.py @@@ -52,13 -52,13 +52,13 @@@ more abstract, and provides substantia applications. Supports MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (SAPDB). -Python 2.6 or 2.7 is required. +Python 2.6, 2.7 or 3.4+ is required. For development see the projects at - `SourceForge <http://sourceforge.net/projects/sqlobject/>`_ + `SourceForge <https://sourceforge.net/projects/sqlobject/>`_ and `GitHub <https://github.com/sqlobject>`_. -.. image:: https://travis-ci.org/sqlobject/sqlobject.svg?branch=2.2 +.. image:: https://travis-ci.org/sqlobject/sqlobject.svg?branch=master :target: https://travis-ci.org/sqlobject/sqlobject """, classifiers=[ ----------------------------------------------------------------------- Summary of changes: docs/Authors.txt | 4 ++-- docs/DeveloperGuide.txt | 4 ++-- docs/FAQ.txt | 4 ++-- docs/Inheritance.txt | 4 ++-- docs/News.txt | 4 ++-- docs/News1.txt | 4 ++-- docs/News2.txt | 4 ++-- docs/News3.txt | 4 ++-- docs/News4.txt | 4 ++-- docs/SQLBuilder.txt | 4 ++-- docs/SQLObject.txt | 6 +++--- docs/SelectResults.txt | 4 ++-- docs/TODO.txt | 4 ++-- docs/Versioning.txt | 4 ++-- docs/Views.txt | 4 ++-- docs/community.txt | 8 ++++---- docs/download.txt | 6 +++--- docs/index.txt | 4 ++-- docs/links.txt | 6 +++--- docs/sqlobject-admin.txt | 4 ++-- setup.py | 2 +- 21 files changed, 46 insertions(+), 46 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-02-16 18:17:29
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 2.2 has been updated via 158a6ecc3fd37f8751b904db3776f646efe9cfdd (commit) via 52da711ccfefe9714132086bb3b4bf1a691e9300 (commit) via 8d282f7603f95b8ac8706f3ce216d000f4742f65 (commit) via 7ba9175dd2203ce3e4665b11802c8bd963f5b46d (commit) from 2b1ae788855c3719daa69ed655c0392d1b4ecc9a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: docs/Authors.txt | 4 ++-- docs/DeveloperGuide.txt | 4 ++-- docs/FAQ.txt | 4 ++-- docs/Inheritance.txt | 4 ++-- docs/News.txt | 4 ++-- docs/News1.txt | 4 ++-- docs/News2.txt | 4 ++-- docs/News3.txt | 4 ++-- docs/News4.txt | 4 ++-- docs/SQLBuilder.txt | 4 ++-- docs/SQLObject.txt | 6 +++--- docs/SelectResults.txt | 4 ++-- docs/TODO.txt | 4 ++-- docs/Versioning.txt | 4 ++-- docs/Views.txt | 4 ++-- docs/community.txt | 8 ++++---- docs/download.txt | 6 +++--- docs/index.txt | 4 ++-- docs/links.txt | 6 +++--- docs/sqlobject-admin.txt | 4 ++-- setup.py | 2 +- 21 files changed, 46 insertions(+), 46 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-02-16 18:17:27
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 1.7 has been updated via 8d282f7603f95b8ac8706f3ce216d000f4742f65 (commit) via 7ba9175dd2203ce3e4665b11802c8bd963f5b46d (commit) from 2c6291cb3941e561590c633b5822fc1a72da4333 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: docs/Authors.txt | 4 ++-- docs/DeveloperGuide.txt | 4 ++-- docs/FAQ.txt | 4 ++-- docs/Inheritance.txt | 4 ++-- docs/News.txt | 4 ++-- docs/SQLBuilder.txt | 4 ++-- docs/SQLObject.txt | 6 +++--- docs/SelectResults.txt | 4 ++-- docs/TODO.txt | 4 ++-- docs/Versioning.txt | 4 ++-- docs/Views.txt | 4 ++-- docs/community.txt | 8 ++++---- docs/download.txt | 6 +++--- docs/index.txt | 4 ++-- docs/links.txt | 6 +++--- docs/sqlobject-admin.txt | 4 ++-- setup.py | 2 +- 17 files changed, 38 insertions(+), 38 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-02-16 18:17:25
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, 1.6 has been updated via 7ba9175dd2203ce3e4665b11802c8bd963f5b46d (commit) from 06decd29a52483cee0dffd44b8d2457da28d51c9 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- ----------------------------------------------------------------------- Summary of changes: docs/Authors.txt | 4 ++-- docs/DeveloperGuide.txt | 4 ++-- docs/FAQ.txt | 4 ++-- docs/Inheritance.txt | 4 ++-- docs/News.txt | 4 ++-- docs/SQLBuilder.txt | 4 ++-- docs/SQLObject.txt | 6 +++--- docs/SelectResults.txt | 4 ++-- docs/TODO.txt | 4 ++-- docs/Versioning.txt | 4 ++-- docs/Views.txt | 4 ++-- docs/community.txt | 8 ++++---- docs/download.txt | 6 +++--- docs/index.txt | 4 ++-- docs/links.txt | 6 +++--- docs/sqlobject-admin.txt | 4 ++-- setup.py | 2 +- 17 files changed, 38 insertions(+), 38 deletions(-) hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-01-18 17:34:58
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, sphinx-docs has been deleted was 14ca6104a9724ee32a9308a5c38bd6c2fdcee7d5 - Log ----------------------------------------------------------------- 14ca6104a9724ee32a9308a5c38bd6c2fdcee7d5 Generate docs using sphinx ----------------------------------------------------------------------- hooks/post-receive -- SQLObject development repository |
From: Oleg B. <no...@so...> - 2016-01-18 17:34:46
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "SQLObject development repository". The branch, master has been updated via 9238f42a2c13ffb41f044b33f4d4c6bfb1c05c5c (commit) via 2c89eaee7b4d52938fb5a4d62343e538bc587c99 (commit) via 71b7885bc1e3740adf8c07c23b41835e1e69f8a2 (commit) via c9a97f15da4963884d13e654f901b331dae7886a (commit) via 7827ef27ad83edb9f371c2d459020fdef9a155f1 (commit) from 121791d3f21fc16b93b7402f3d393bfc94b9b5e8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://sourceforge.net/p/sqlobject/sqlobject/ci/9238f42a2c13ffb41f044b33f4d4c6bfb1c05c5c commit 9238f42a2c13ffb41f044b33f4d4c6bfb1c05c5c Merge: 121791d 2c89eae Author: Oleg Broytman <ph...@ph...> Date: Mon Jan 18 20:30:09 2016 +0300 Merge pull request #117 from drnlm/bugs/issue-115-hashable-columns Bugs/issue 115 hashable rows http://sourceforge.net/p/sqlobject/sqlobject/ci/2c89eaee7b4d52938fb5a4d62343e538bc587c99 commit 2c89eaee7b4d52938fb5a4d62343e538bc587c99 Author: Neil <drn...@gm...> Date: Mon Jan 18 18:08:24 2016 +0200 Fix __name__ typo diff --git a/sqlobject/main.py b/sqlobject/main.py index 6b8ac9b..38953d5 100644 --- a/sqlobject/main.py +++ b/sqlobject/main.py @@ -1748,7 +1748,7 @@ class SQLObject(with_metaclass(declarative.DeclarativeMeta, object)): def __hash__(self): # We hash on class name and id, since that should be # unique - return hash((self.__class__.name, self.id)) + return hash((self.__class__.__name__, self.id)) # Comparison http://sourceforge.net/p/sqlobject/sqlobject/ci/71b7885bc1e3740adf8c07c23b41835e1e69f8a2 commit 71b7885bc1e3740adf8c07c23b41835e1e69f8a2 Author: Neil <drn...@gm...> Date: Mon Jan 18 17:49:28 2016 +0200 Fix flake8 warning in test case diff --git a/sqlobject/tests/test_class_hash.py b/sqlobject/tests/test_class_hash.py index 875f020..cc3b3aa 100644 --- a/sqlobject/tests/test_class_hash.py +++ b/sqlobject/tests/test_class_hash.py @@ -15,7 +15,6 @@ def test_class_hash(): setupClass(ClassHashTest) ClassHashTest(name='bob') - conn = ClassHashTest._connection b = ClassHashTest.byName('bob') hashed = hash(b) b.expire() http://sourceforge.net/p/sqlobject/sqlobject/ci/c9a97f15da4963884d13e654f901b331dae7886a commit c9a97f15da4963884d13e654f901b331dae7886a Author: Neil <drn...@gm...> Date: Mon Jan 18 17:43:05 2016 +0200 Add simple test case for hash implementation diff --git a/sqlobject/tests/test_class_hash.py b/sqlobject/tests/test_class_hash.py new file mode 100644 index 0000000..875f020 --- /dev/null +++ b/sqlobject/tests/test_class_hash.py @@ -0,0 +1,23 @@ +from sqlobject import * +from sqlobject.tests.dbtest import * + + +######################################## +# Test hashing a column instance +######################################## + + +class ClassHashTest(SQLObject): + name = StringCol(length=50, alternateID=True, dbName='name_col') + + +def test_class_hash(): + setupClass(ClassHashTest) + ClassHashTest(name='bob') + + conn = ClassHashTest._connection + b = ClassHashTest.byName('bob') + hashed = hash(b) + b.expire() + b = ClassHashTest.byName('bob') + assert hash(b) == hashed http://sourceforge.net/p/sqlobject/sqlobject/ci/7827ef27ad83edb9f371c2d459020fdef9a155f1 commit 7827ef27ad83edb9f371c2d459020fdef9a155f1 Author: Neil <drn...@gm...> Date: Mon Jan 18 17:34:21 2016 +0200 Add hash function diff --git a/sqlobject/main.py b/sqlobject/main.py index 0a50668..6b8ac9b 100644 --- a/sqlobject/main.py +++ b/sqlobject/main.py @@ -1743,6 +1743,13 @@ class SQLObject(with_metaclass(declarative.DeclarativeMeta, object)): def tablesUsedImmediate(self): return [self.__class__.q] + # hash implementation + + def __hash__(self): + # We hash on class name and id, since that should be + # unique + return hash((self.__class__.name, self.id)) + # Comparison def __eq__(self, other): ----------------------------------------------------------------------- Summary of changes: sqlobject/main.py | 7 +++++++ sqlobject/tests/test_class_hash.py | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 sqlobject/tests/test_class_hash.py hooks/post-receive -- SQLObject development repository |