Skip to content

Commit 7826e76

Browse files
committed
Removed trailing spaces.
git-svn-id: http://svn.colorstudy.com/trunk/SQLObject@942 95a46c32-92d2-0310-94a5-8d71aeb3d4b3
1 parent 95a6d31 commit 7826e76

26 files changed

Lines changed: 52 additions & 64 deletions

docs/FAQ.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For these examples, imagine you have a bunch of customers, with
1515
contacts. Not all customers have a contact, some have several. The
1616
left join would look like::
1717

18-
SELECT customer.id, customer.first_name, customer.last_name,
18+
SELECT customer.id, customer.first_name, customer.last_name,
1919
contact.id, contact.address
2020
FROM customer
2121
LEFT JOIN contact ON contact.customer_id = customer.id
@@ -335,7 +335,7 @@ database::
335335
data = StringCol()
336336
height = IntCol()
337337
width = IntCol()
338-
338+
339339
def _set_data(self, value):
340340
self._SO_set_data(value.encode('base64'))
341341

docs/News.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Interface Changes
8686
rows (like class instantiation used to do).
8787

8888
* We're now using a Subversion repository instead of CVS. It is
89-
located at http://svn.colorstudy.com/trunk/SQLObject
89+
located at http://svn.colorstudy.com/trunk/SQLObject
9090

9191
* If you pass ``forceDBName=True`` to the ``*Col`` constructors, then
9292
your column name doesn't have to be restricted to a-z, 0-9, and _.
@@ -297,25 +297,25 @@ Features
297297
* MySQL uses ``localhost`` as the default host, and the empty string
298298
as the default password.
299299

300-
* Added functions for use with queries: `ISNULL`, `ISNOTNULL`. ``==``
301-
and ``!=`` can be used with None, and is translated into `ISNULL`,
300+
* Added functions for use with queries: `ISNULL`, `ISNOTNULL`. ``==``
301+
and ``!=`` can be used with None, and is translated into `ISNULL`,
302302
`ISNOTNULL`.
303303

304-
* Classes can be part of a specific registry. Since classes are
304+
* Classes can be part of a specific registry. Since classes are
305305
referred to by name in several places, the names have to be unique.
306306
This can be problematic, so you can add a class variable `_registry`,
307-
the value of which should be a string. Classes references are
307+
the value of which should be a string. Classes references are
308308
assumed to be inside that registry, and class names need only be
309309
unique among classes in that registry.
310310

311-
* ``SomeClass.select()`` selects all, instead of using
311+
* ``SomeClass.select()`` selects all, instead of using
312312
``SomeClass.select('all')``. You can also use None instead of
313313
``'all'``.
314314

315315
* Trying to fetch non-existent objects raises `SQLObjectNotFound`,
316316
which is a subclass of the builtin exception `LookupError`.
317317
This may not be raised if `_cacheValues` is False and you use
318-
the ID to fetch an object (but alternateID fetches will raise
318+
the ID to fetch an object (but alternateID fetches will raise
319319
the exception in either case).
320320

321321
* Can order by descending order, with the `reversed` option to
@@ -328,7 +328,7 @@ Col and Join
328328
~~~~~~~~~~~~
329329

330330
* `Join` constructors have an argument `orderBy`, which is the name
331-
of a Python attribute to sort results by. If not given, the
331+
of a Python attribute to sort results by. If not given, the
332332
appropriate class's `_defaultOrder` will be used. None implies
333333
no sorting (and ``orderBy=None`` will override `_defaultOrder`).
334334

@@ -369,15 +369,15 @@ Bugs
369369
* SomeClass.q.colName now does proper translation to database names,
370370
using dbName, etc., instead of being entirely algorithm-driven.
371371

372-
* Raise `TypeError` if you pass an unknown argument to the `new`
372+
* Raise `TypeError` if you pass an unknown argument to the `new`
373373
method.
374374

375375
* You can override the _get_* or _set_* version of a property without
376376
overriding the other.
377377

378378
* Python 2.3 compatible.
379379

380-
* Trying to use ``Col('id')`` or ``id = Col()`` will raise an
380+
* Trying to use ``Col('id')`` or ``id = Col()`` will raise an
381381
exception, instead of just acting funky.
382382

383383
* ``ForeignKey`` columns return None if the associated column is

docs/TODO.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TODO
88
the progress for Oracle, Sybase, and MS-SQL support.
99
* Better transaction support -- right now you can use transactions
1010
for the database, but the object isn't transaction-aware, so
11-
non-database persistence won't be able to be rolled back.
11+
non-database persistence won't be able to be rolled back.
1212
* Optimistic locking and other techniques to handle concurrency.
1313
* Profile of SQLObject performance, so that I can identify bottlenecks.
1414
* Increase hooks with FormEncode (unreleased) validation and form

docs/default.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ h2 {
130130
border: medium solid black;
131131
}
132132

133-
h1 a:link, h2 a:link {
133+
h1 a:link, h2 a:link {
134134
color: #ffffff;
135135
}
136136

@@ -139,7 +139,7 @@ h3, h4, h5, h6 {
139139
color: #000000;
140140
}
141141

142-
h3 a:link, h4 a:link, h5 a:link, h6 a:link {
142+
h3 a:link, h4 a:link, h5 a:link, h6 a:link {
143143
color: #000000;
144144
}
145145

@@ -286,4 +286,4 @@ ul.auto-toc {
286286
.stmlfunction {color: #000077; font-weight: bold}
287287
.stmlattr {color: #000000;}
288288
.stmlstring {color: #006600;}
289-
.stmlexpr {color: #004444;}
289+
.stmlexpr {color: #004444;}

docs/interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def createTable(ifNotExists=False, createJoinTables=True,
6666
Join tables (mapping tables for many-to-many joins) are
6767
created if this class comes alphabetically before the other
6868
join class, and if ``createJoinTables`` is true.
69-
69+
7070
If ``createIndexes`` is true, indexes are also created.
7171
"""
7272

@@ -254,7 +254,7 @@ def addIndex(indexDef):
254254
Adds the index to the class.
255255
"""
256256

257-
257+
258258
class ICol(Interface):
259259

260260
def __init__(name=None, **kw):
@@ -307,7 +307,7 @@ class ISOCol(Interface):
307307
"""
308308

309309
constraints = """
310-
A list of ... @@?
310+
A list of ... @@?
311311
"""
312312

313313
notNone = """

scripts/sqlobject-admin

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ except ImportError:
3333

3434
from sqlobject.manager import command
3535
command.the_runner.run(sys.argv)
36-

sqlobject/boundattributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ def __addtoclass__(self, cls, added_class, attr_name):
8888

8989
def set_object(cls, added_class, attr_name, obj):
9090
setattr(added_class, attr_name, obj)
91-
91+
9292
set_object = classmethod(set_object)
9393

9494
def make_object(cls, added_class, attr_name, *args, **attrs):
9595
raise NotImplementedError
96-
96+
9797
make_object = classmethod(make_object)
9898

9999
class BoundFactory(BoundAttribute):

sqlobject/classregistry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
... pass
2222
>>> registry.addClass(MyClass)
2323
Class finally exists: MyClass
24-
24+
2525
"""
2626

2727
class ClassRegistry(object):
@@ -33,7 +33,7 @@ class C1 may reference C2 (in a join), while C2 references
3333
with classes by name, and after each class is created we
3434
try to fix up any references by replacing the names with
3535
actual classes.
36-
36+
3737
Here we keep a dictionaries of class names to classes -- note
3838
that the classes might be spread among different modules, so
3939
since we pile them together names need to be globally unique,

sqlobject/col.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ def _maxdbType(self):
800800
raise "Enum type is not supported"
801801

802802
class EnumValidator(validators.Validator):
803-
803+
804804
def to_python(self, value, state):
805805
if value in self.enumValues:
806806
return value

sqlobject/index.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def mysqlCreateIndexSQL(self, soClass):
9595

9696
return 'ALTER TABLE %s ADD %s %s (%s)' % \
9797
(soClass.sqlmeta.table, uniqueOrIndex,
98-
self.name,
98+
self.name,
9999
', '.join(spec))
100100

101101

@@ -122,9 +122,9 @@ class DatabaseIndex(object):
122122
The class also take the keyword argument `unique`; if true then
123123
a UNIQUE index is created.
124124
"""
125-
125+
126126
baseClass = SODatabaseIndex
127-
127+
128128
def __init__(self, *columns, **kw):
129129
kw['columns'] = columns
130130
self.kw = kw

0 commit comments

Comments
 (0)