projects
/
zzz-pokedex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make pokedex work with SQLAlchemy 0.7. Warning: ugly hack!
[zzz-pokedex.git]
/
pokedex
/
db
/
markdown.py
diff --git
a/pokedex/db/markdown.py
b/pokedex/db/markdown.py
index
1ad304c
..
c9fd9a7
100644
(file)
--- a/
pokedex/db/markdown.py
+++ b/
pokedex/db/markdown.py
@@
-12,7
+12,7
@@
spline-pokedex.
from __future__ import absolute_import
import markdown
from __future__ import absolute_import
import markdown
-import sqlalchemy
.types
+import sqlalchemy
class MarkdownString(object):
"""Wraps a Markdown string. Stringifies to the original text, but .as_html
class MarkdownString(object):
"""Wraps a Markdown string. Stringifies to the original text, but .as_html
@@
-103,7
+103,7
@@
class MoveEffectPropertyMap(MoveEffectProperty):
newdict[key] = _markdownify_effect_text(obj, newdict[key])
return newdict
newdict[key] = _markdownify_effect_text(obj, newdict[key])
return newdict
-class MarkdownColumn(sqlalchemy.
types.
TypeDecorator):
+class MarkdownColumn(sqlalchemy.TypeDecorator):
"""Generic SQLAlchemy column type for Markdown text.
Do NOT use this for move effects! They need to know what move they belong
"""Generic SQLAlchemy column type for Markdown text.
Do NOT use this for move effects! They need to know what move they belong