sql/fake.py: Some fake objects/methods to calm the code
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Thu, 29 Dec 2011 10:07:58 +0000 (11:07 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 18 Jan 2012 22:35:55 +0000 (23:35 +0100)
commit6fc8af3278173a0d1113dc0cf5525c2249f1d0bc
tree4c53c0bd3905d5100e60c46780645a5f9f2e88c0
parentc03d13cd791ac41db1be72e8a5d4d2eaa6cc6087
sql/fake.py: Some fake objects/methods to calm the code

sql/fake.py contains some fake classes and functions to
calm the rest of the code base. Or provide super minimal
implementations.

Currently:
- ObjectId "class": It's a function mostly doing
  int(first_arg) to convert string primary keys into
  integer primary keys.
- InvalidId exception
- DESCENING "constant"
mediagoblin/db/sql/fake.py [new file with mode: 0644]