debian/0000755000000000000000000000000011742277313007175 5ustar debian/changelog0000644000000000000000000001207611742277313011055 0ustar forgetsql (0.5.1-12build1) precise; urgency=low * Rebuild to drop python2.6 dependencies and provides. -- Matthias Klose Sat, 14 Apr 2012 13:42:35 +0000 forgetsql (0.5.1-12) unstable; urgency=low * Added patch from -11 to patches/series. -- Morten Werner Forsbring Thu, 25 Mar 2010 15:14:49 +0100 forgetsql (0.5.1-11) unstable; urgency=low * Add patch from Morten Brekkevold to change string exceptions not supported by Python 2.6. (Closes: #573417) * Updated debian/copyright to new machine-readable format. * Bumped standards-version to 3.8.4 * Removed deprecated XS-Python-Version in debian/control. * Changed my lastname. -- Morten Werner Forsbring Thu, 11 Mar 2010 15:30:22 +0100 forgetsql (0.5.1-10) unstable; urgency=low [ Bernd Zeimetz ] * Added Vcs-Browser field * XS-Vcs-Svn field renamed to Vcs-Svn * Fixed the following lintian errors: - clean-should-be-satisfied-by-build-depends python | python-dev | python-all-dev - missing-build-dependency python-support (>= 0.3) * Fixing debian/watch. Thanks to Raphael Geissert (Closes: #450206). [ Sandro Tosi ] * debian/control - added op=log to Svn-Browser field * debian/control - switch Vcs-Browser field to viewsvn [ Carlos Galisteo ] * debian/control - Added Homepage field. [ Raphaƫl Hertzog ] * Remove myself from Uploaders. * Switch to source format "3.0 (quilt)". * Bump debian/compat to 5. * Add missing ${misc:Depends}. * Revert upstream changes and move them to separate quilt patches with proper DEP-3 headers. -- Debian Python Modules Team Wed, 27 Jan 2010 17:05:53 +0100 forgetsql (0.5.1-9) unstable; urgency=medium [ Piotr Ozarowski ] * Added XS-Vcs-Svn field [ Morten Werner Olsen ] * Forgetter instances that were changed were never marked as unchanged when saved, resulting in unnecessary re-saves on subsequent calls to save() or upon garbage collection. Patched forgetSQL.py to fix this. * Setting urgency to medium as I really want this patch to enter etch. -- Morten Werner Olsen Thu, 1 Feb 2007 20:37:46 +0100 forgetsql (0.5.1-8) unstable; urgency=medium * Only provides ${python:Provides} as we only want to provide packages for supported python versions. (Closes: #399933) * Bumped Standards-Version (no changes needed). * Fixing typo for option handling in forgetsql-generate. (Closes: #324917) * Accepting patch to make forgetsql-generate work with the MySQLdb module. Thanks to Cruz Fernandez for bugreport and patch. (Closes: #324919) * Setting urgency to medium as I want these small silly bugs to be fixed also in etch. -- Morten Werner Olsen Thu, 23 Nov 2006 01:08:10 +0100 forgetsql (0.5.1-7) unstable; urgency=low * Add forgotten build-dependency on python-support. Closes: #375261 -- Raphael Hertzog Sun, 25 Jun 2006 09:50:55 +0200 forgetsql (0.5.1-6) unstable; urgency=low * Update for new Python policy. Closes: #373431 -- Raphael Hertzog Sat, 17 Jun 2006 22:59:55 +0200 forgetsql (0.5.1-5) unstable; urgency=low * Switching to CDBS and starting to team maintain the package within the Debian Python Modules Team (changing Maintainer address and adding myself as uploader). * Moving debhelper to Build-Depends together with cdbs. * Now using python-support. - Making the python-forgetsql package depend on python-support and add Provides/Conflicts/Replaces on python2.3-forgetsql. - Removing the python2.3-forgetsql package. - Moving files from site-packages to python-support in debian/rules - Adding python-support stuff in postinst and prerm. -- Morten Werner Olsen Mon, 1 May 2006 02:38:35 +0200 forgetsql (0.5.1-4) unstable; urgency=low * Removing the "#!/usr/bin/python"-header from lib/forgetSQL.py as this is a library not a script. * Making arch: all (thanks to Martin Michlmayr for pointing this out) and changing Build-Depends to Build-Depends-Indep. (Closes: #355324) * Bumped debhelper dependency version to (>= 4.1.67) according to the Debian Python Policy. * Bumped Standards-Version to 3.6.2 (no changes). * New maintainer address. :) -- Morten Werner Olsen Thu, 23 Mar 2006 00:52:42 +0100 forgetsql (0.5.1-3) unstable; urgency=low * Added Build-Depends on python. Thanks to Andreas Jochens for pointing this out on the forgethtml package. -- Morten Werner Olsen Wed, 18 Aug 2004 11:49:39 +0200 forgetsql (0.5.1-2) unstable; urgency=low * Made python-forgetsql "Arch: all". Thanks to Randall Donald for pointing this out. * Added recommends to python2.3-pgsql. * Added suggests to python2.3-egenix-mxdatetime. -- Morten Werner Olsen Tue, 17 Aug 2004 15:51:05 +0200 forgetsql (0.5.1-1) unstable; urgency=low * Initial Release. (Closes: #262918) -- Morten Werner Olsen Mon, 2 Aug 2004 08:45:49 +0200 debian/rules0000755000000000000000000000041110521657327010252 0ustar #!/usr/bin/make -f DEB_PYTHON_SYSTEM=pysupport include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/python-distutils.mk #include /usr/share/cdbs/1/rules/simple-patchsys.mk clean:: -find . -name \*pyc -exec rm -f {} \; # -rm -rf locales debian/control0000644000000000000000000000201211346204562010567 0ustar Source: forgetsql Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Morten Werner Forsbring Build-Depends: debhelper (>= 5.0.37.1), cdbs (>= 0.4.41), python (>= 2.3.5-10), python-support (>= 0.3) Vcs-Svn: svn://svn.debian.org/python-modules/packages/forgetsql/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/forgetsql/trunk/ Standards-Version: 3.8.4 Homepage: http://forgetsql.sourceforge.net/ Package: python-forgetsql Architecture: all Depends: ${python:Depends}, ${misc:Depends} Suggests: python-egenix-mxdatetime Provides: ${python:Provides} Conflicts: python2.3-forgetsql Replaces: python2.3-forgetsql Description: Python module for easy SQL-database access forgetSQL is a Python module for accessing SQL databases by creating classes that maps SQL tables to objects, normally one class pr. SQL table. The idea is to forget everything about SQL and just worrying about normal classes and objects. debian/copyright0000644000000000000000000000136311346171464011133 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Name: lessfs Maintainer: Mark Ruijter Source: http://www.lessfs.com/ Copyright: 2002-2003, Stian Soiland License: LGPL-2.1 Files: debian/* Copyright: 2010, Morten Werner Forsbring License: LGPL-2.1 License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . The complete text of version 2.1 of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. debian/pycompat0000644000000000000000000000000210521657327010745 0ustar 2 debian/source/0000755000000000000000000000000011354121422010461 5ustar debian/source/format0000644000000000000000000000001411354121564011676 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000007311346167053010225 0ustar version=3 http://sf.net/forgetsql/forgetSQL-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000011354121422010610 5ustar debian/patches/fix-mysqldb-support0000644000000000000000000000257511346167053014530 0ustar Description: Make forgetsql-generate work with the MySQLdb module Origin: other, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=324919#5 Author: Cruz Fernandez Bug-Debian: http://bugs.debian.org/324919 --- forgetsql-0.5.1.orig/bin/forgetsql-generate +++ forgetsql-0.5.1/bin/forgetsql-generate @@ -220,7 +220,10 @@ stdin or as a file using option --tables else: params = {} if options.database: - params['database'] = options.database + if options.dbmodule == "MySQLdb": + params['db'] = options.database + else: + params['database'] = options.database else: print >>sys.stderr, "Missing required option --database or --connect" sys.exit(7) @@ -229,7 +232,11 @@ stdin or as a file using option --tables if options.username: params['user'] = options.username if options.password: - params['password'] = options.password + if options.dbmodule == "MySQLdb": + params['passwd'] = options.password + else: + params['password'] = options.password + connectstring = ", ".join(["%s=%r" % (key, value) for (key,value) in params.items() # filter out password for 'security reasons' debian/patches/fix-string-exception0000644000000000000000000000217411352671405014636 0ustar Description: Change string exceptions not supported by Python 2.6 Origin: other, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573417 Author: Morten Brekkevold Bug-Debian: http://bugs.debian.org/573417 --- forgetsql-0.5.1.orig/lib/forgetSQL.py +++ forgetsql-0.5.1/lib/forgetSQL.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +#-*- coding: iso-8859-1 -*- __version__ = "0.5.1" ## Distributed under LGPL @@ -210,18 +210,18 @@ try: # to implement 'goto' in Python.. UGH if not cls._cache.has_key(args): # unknown - raise "NotFound" + raise NotFound (ref, updated) = cls._cache[args] realObject = ref() if realObject is None: # No more real references to it, dead object - raise "NotFound" + raise NotFound age = time.time() - updated if age > cls._timeout: # Too old! - raise "NotFound" + raise NotFound updated = time.time() - except "NotFound": + except NotFound: # We'll need to create it realObject = object.__new__(cls, *args) ref = weakref.ref(realObject) debian/patches/fix-output-option0000644000000000000000000000121111346167053014173 0ustar Description: Make --output option work Origin: other, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=324917#5 Author: Cruz Fernandez Bug-Debian: http://bugs.debian.org/324917 --- forgetsql-0.5.1.orig/bin/forgetsql-generate +++ forgetsql-0.5.1/bin/forgetsql-generate @@ -193,7 +193,7 @@ stdin or as a file using option --tables if options.output: try: # Override print.. dirty. - sys.stdout = open(output, "w") + sys.stdout = open(options.output, "w") except IOError, e: print >>sys.stderr, "%s: %s" % (e.strerror, e.filename) sys.exit(3) debian/patches/series0000644000000000000000000000012511352667667012053 0ustar fix-output-option fix-mysqldb-support fix-string-exception mark-unchanged-after-save debian/patches/mark-unchanged-after-save0000644000000000000000000000160111354121331015447 0ustar Description: Fix save to mark forgetter instances as unchanged Forgetter instances that were changed were never marked as unchanged when saved, resulting in unnecessary re-saves on subsequent calls to save() or upon garbage collection. Patched forgetSQL.py to fix this. . Also drop useless shebang line as it's a module not a script. Origin: vendor, introduced by maintainer in 0.5.1-9 Author: Morten Werner Forsbring --- forgetsql-0.5.1.orig/lib/forgetSQL.py +++ forgetsql-0.5.1/lib/forgetSQL.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python #-*- coding: iso-8859-1 -*- __version__ = "0.5.1" @@ -667,6 +666,8 @@ # cursor.commit() cursor.close() self._new = False + # Make sure we don't think we're still modified after a save + self._changed = None def getAll(cls, where=None, orderBy=None): """Retrieves all the objects, possibly matching debian/compat0000644000000000000000000000000211346167053010372 0ustar 5