+
+class RstTextColumn(sqlalchemy.types.TypeDecorator):
+ """Generic column type for reST text.
+
+ Do NOT use this for move effects! They need to know what move they belong
+ to so they can fill in, e.g., effect chances.
+ """
+ impl = sqlalchemy.types.Unicode
+
+ def process_bind_param(self, value, dialect):
+ return unicode(value)
+
+ def process_result_value(self, value, dialect):
+ return RstString(value)