changeset 18:ab19211ebe1a

merge
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 02 Jun 2013 11:08:40 +0200
parents f3f981631d2d (current diff) da5ebf36113b (diff)
children 0d32e35d251d
files server/__init__.py server/types.py
diffstat 2 files changed, 9 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/server/api.py	Sun Jun 02 11:08:40 2013 +0200
@@ -0,0 +1,9 @@
+from . import app
+from flask.ext.classy import FlaskView
+
+
+class PartyTraceView(FlaskView):
+    def index(self):
+        return '42'
+
+PartyTraceView.register(app)
--- a/server/types.py	Sun Jun 02 11:06:06 2013 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-import sqlalchemy.types as types
-
-class TsVector(types.UserDefinedType):
-    def __init__(self):
-        pass
-
-    def get_col_spec(self):
-        return "TSVECTOR"
-
-    def bind_processor(self, dialect):
-        def process(value):
-            return value
-        return process
-
-    def result_processor(self, dialect, coltype):
-        def process(value):
-            return value
-        return process