PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 1ms RepoModel.GetById 39ms app.codeStats 0ms

/django/contrib/gis/db/backends/spatialite/adapter.py

https://code.google.com/p/mango-py/
Python | 8 lines | 7 code | 1 blank | 0 comment | 1 complexity | b4e5fdd5e24fa85f1807d8d87b0be6f3 MD5 | raw file
1from django.db.backends.sqlite3.base import Database
2from django.contrib.gis.db.backends.adapter import WKTAdapter
3
4class SpatiaLiteAdapter(WKTAdapter):
5    "SQLite adaptor for geometry objects."
6    def __conform__(self, protocol):
7        if protocol is Database.PrepareProtocol:
8            return str(self)