1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-12-06 07:53:28 +00:00

Initial commit. Still building up the env and some parsing code.

This commit is contained in:
Samuel Lai
2011-09-11 14:29:39 +10:00
commit af2eafeccd
301 changed files with 82327 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
Metadata-Version: 1.0
Name: SQLObject
Version: 1.1.3
Summary: Object-Relational Manager, aka database wrapper
Home-page: http://sqlobject.org/
Author: Ian Bicking
Author-email: ianb@colorstudy.com
License: LGPL
Download-URL: http://cheeseshop.python.org/pypi/SQLObject/1.1.3
Description: SQLObject is a popular *Object Relational Manager* for providing an
object interface to your database, with tables as classes, rows as
instances, and columns as attributes.
SQLObject includes a Python-object-based query language that makes SQL
more abstract, and provides substantial database independence for
applications.
Supports MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (SAPDB).
For development see the `subversion repository
<http://svn.colorstudy.com/SQLObject/branches/1.1/>`_
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Programming Language :: Python
Classifier: Topic :: Database
Classifier: Topic :: Database :: Front-Ends
Classifier: Topic :: Software Development :: Libraries :: Python Modules

View File

@@ -0,0 +1,189 @@
MANIFEST.in
README.txt
setup.cfg
setup.py
SQLObject.egg-info/PKG-INFO
SQLObject.egg-info/SOURCES.txt
SQLObject.egg-info/dependency_links.txt
SQLObject.egg-info/entry_points.txt
SQLObject.egg-info/requires.txt
SQLObject.egg-info/top_level.txt
debian/changelog
debian/control
debian/copyright
debian/docs
debian/examples
debian/rules
docs/Authors.txt
docs/DeveloperGuide.txt
docs/FAQ.txt
docs/Inheritance.txt
docs/News.txt
docs/SQLBuilder.txt
docs/SQLObject.txt
docs/SelectResults.txt
docs/TODO.txt
docs/Versioning.txt
docs/Views.txt
docs/community.txt
docs/default.css
docs/download.txt
docs/index.txt
docs/interface.py
docs/links.txt
docs/rebuild
docs/sqlobject-admin.txt
docs/test.py
docs/europython/europython_sqlobj.py
docs/europython/main.css
docs/europython/person.py
docs/presentation-2004-11/sqlobject-and-database-programming.html
docs/presentation-2004-11/ui/bodybg.gif
docs/presentation-2004-11/ui/custom.css
docs/presentation-2004-11/ui/framing.css
docs/presentation-2004-11/ui/opera.css
docs/presentation-2004-11/ui/pretty.css
docs/presentation-2004-11/ui/print.css
docs/presentation-2004-11/ui/s5-core.css
docs/presentation-2004-11/ui/slides.css
docs/presentation-2004-11/ui/slides.js
ez_setup/README.txt
ez_setup/__init__.py
scripts/sqlobject-admin
scripts/sqlobject-convertOldURI
sqlobject/__init__.py
sqlobject/__version__.py
sqlobject/boundattributes.py
sqlobject/cache.py
sqlobject/classregistry.py
sqlobject/col.py
sqlobject/conftest.py
sqlobject/constraints.py
sqlobject/converters.py
sqlobject/dbconnection.py
sqlobject/dberrors.py
sqlobject/declarative.py
sqlobject/events.py
sqlobject/index.py
sqlobject/joins.py
sqlobject/main.py
sqlobject/sqlbuilder.py
sqlobject/sresults.py
sqlobject/styles.py
sqlobject/views.py
sqlobject/wsgi_middleware.py
sqlobject/firebird/__init__.py
sqlobject/firebird/firebirdconnection.py
sqlobject/include/__init__.py
sqlobject/include/hashcol.py
sqlobject/include/pydispatch/README.txt
sqlobject/include/pydispatch/__init__.py
sqlobject/include/pydispatch/dispatcher.py
sqlobject/include/pydispatch/errors.py
sqlobject/include/pydispatch/robust.py
sqlobject/include/pydispatch/robustapply.py
sqlobject/include/pydispatch/saferef.py
sqlobject/inheritance/__init__.py
sqlobject/inheritance/iteration.py
sqlobject/inheritance/tests/__init__.py
sqlobject/inheritance/tests/testDestroyCascade.py
sqlobject/inheritance/tests/test_aggregates.py
sqlobject/inheritance/tests/test_asdict.py
sqlobject/inheritance/tests/test_deep_inheritance.py
sqlobject/inheritance/tests/test_foreignKey.py
sqlobject/inheritance/tests/test_indexes.py
sqlobject/inheritance/tests/test_inheritance.py
sqlobject/inheritance/tests/test_inheritance_tree.py
sqlobject/manager/__init__.py
sqlobject/manager/command.py
sqlobject/maxdb/__init__.py
sqlobject/maxdb/maxdbconnection.py
sqlobject/maxdb/readme.txt
sqlobject/mssql/__init__.py
sqlobject/mssql/mssqlconnection.py
sqlobject/mysql/__init__.py
sqlobject/mysql/mysqlconnection.py
sqlobject/postgres/__init__.py
sqlobject/postgres/pgconnection.py
sqlobject/rdbhost/__init__.py
sqlobject/rdbhost/rdbhostconnection.py
sqlobject/sqlite/__init__.py
sqlobject/sqlite/sqliteconnection.py
sqlobject/sybase/__init__.py
sqlobject/sybase/sybaseconnection.py
sqlobject/tests/__init__.py
sqlobject/tests/dbtest.py
sqlobject/tests/test_NoneValuedResultItem.py
sqlobject/tests/test_SQLMultipleJoin.py
sqlobject/tests/test_SQLRelatedJoin.py
sqlobject/tests/test_SingleJoin.py
sqlobject/tests/test_aggregates.py
sqlobject/tests/test_aliases.py
sqlobject/tests/test_asdict.py
sqlobject/tests/test_auto.py
sqlobject/tests/test_basic.py
sqlobject/tests/test_blob.py
sqlobject/tests/test_boundattributes.py
sqlobject/tests/test_cache.py
sqlobject/tests/test_columns_order.py
sqlobject/tests/test_combining_joins.py
sqlobject/tests/test_comparison.py
sqlobject/tests/test_constraints.py
sqlobject/tests/test_converters.py
sqlobject/tests/test_create_drop.py
sqlobject/tests/test_csvexport.py
sqlobject/tests/test_cyclic_reference.py
sqlobject/tests/test_datetime.py
sqlobject/tests/test_decimal.py
sqlobject/tests/test_declarative.py
sqlobject/tests/test_default_style.py
sqlobject/tests/test_delete.py
sqlobject/tests/test_distinct.py
sqlobject/tests/test_empty.py
sqlobject/tests/test_enum.py
sqlobject/tests/test_events.py
sqlobject/tests/test_exceptions.py
sqlobject/tests/test_expire.py
sqlobject/tests/test_foreignKey.py
sqlobject/tests/test_groupBy.py
sqlobject/tests/test_indexes.py
sqlobject/tests/test_inheritance.py
sqlobject/tests/test_joins.py
sqlobject/tests/test_joins_conditional.py
sqlobject/tests/test_lazy.py
sqlobject/tests/test_new_joins.py
sqlobject/tests/test_parse_uri.py
sqlobject/tests/test_paste.py
sqlobject/tests/test_perConnection.py
sqlobject/tests/test_pickle.py
sqlobject/tests/test_picklecol.py
sqlobject/tests/test_psycopg_sslmode.py
sqlobject/tests/test_reparent_sqlmeta.py
sqlobject/tests/test_schema.py
sqlobject/tests/test_select.py
sqlobject/tests/test_select_through.py
sqlobject/tests/test_setters.py
sqlobject/tests/test_slice.py
sqlobject/tests/test_sorting.py
sqlobject/tests/test_sqlbuilder.py
sqlobject/tests/test_sqlbuilder_dbspecific.py
sqlobject/tests/test_sqlbuilder_importproxy.py
sqlobject/tests/test_sqlbuilder_joins_instances.py
sqlobject/tests/test_sqlite.py
sqlobject/tests/test_sqlmeta_idName.py
sqlobject/tests/test_sqlobject_admin.py
sqlobject/tests/test_string_id.py
sqlobject/tests/test_style.py
sqlobject/tests/test_subqueries.py
sqlobject/tests/test_transactions.py
sqlobject/tests/test_unicode.py
sqlobject/tests/test_validation.py
sqlobject/tests/test_views.py
sqlobject/util/__init__.py
sqlobject/util/csvexport.py
sqlobject/util/csvimport.py
sqlobject/util/moduleloader.py
sqlobject/util/threadinglocal.py
sqlobject/versioning/__init__.py
sqlobject/versioning/test/__init__.py
sqlobject/versioning/test/test_version.py

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,4 @@
[paste.filter_app_factory]
main = sqlobject.wsgi_middleware:make_middleware

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,22 @@
FormEncode>=1.1.1
[sqlite]
pysqlite
[sapdb]
sapdb
[postgresql]
psycopg
[firebird]
kinterbasdb
[sybase]
Sybase
[mysql]
MySQLdb
[mssql]
adodbapi

View File

@@ -0,0 +1,35 @@
#!/usr/bin/python2.5
import sys
import os
try:
import pkg_resources
pkg_resources.require('SQLObject>0.6.1')
except (ImportError, pkg_resources.DistributionNotFound):
# Oh well, we tried...
pass
try:
import sqlobject.manager
except ImportError:
try:
here = __file__
except NameError:
here = sys.argv[0]
updir = os.path.join(
os.path.dirname(os.path.dirname(os.path.abspath(here))),
'sqlobject')
if os.path.exists(updir):
sys.path.insert(0, os.path.dirname(updir))
else:
print 'I cannot find the sqlobject module'
print 'If SQLObject is installed, you may need to set $PYTHONPATH'
sys.exit(3)
# Now we have to get rid of possibly stale modules from that import
# up there
for name, value in sys.modules.items():
if name.startswith('sqlobject'):
del sys.modules[name]
from sqlobject.manager import command
command.the_runner.run(sys.argv)

View File

@@ -0,0 +1,18 @@
#!/usr/bin/python2.5
import sys
try:
uri = sys.argv[1]
except IndexError:
sys.exit("Usage: %s old-style-URI" % sys.argv[0])
try:
import pkg_resources
pkg_resources.require('SQLObject>=1.0.0')
except (ImportError, pkg_resources.DistributionNotFound):
pass
from sqlobject import connectionForURI
conn = connectionForURI(uri, oldUri=True)
print conn.uri()

View File

@@ -0,0 +1 @@
sqlobject