projects
/
zzz-floof.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added *.egg to .gitignore.
[zzz-floof.git]
/
floof
/
model
/
art.py
diff --git
a/floof/model/art.py
b/floof/model/art.py
index
8cfcd5a
..
517fea0
100644
(file)
--- a/
floof/model/art.py
+++ b/
floof/model/art.py
@@
-1,12
+1,11
@@
-from sqlalchemy import Column, ForeignKey
-from sqlalchemy.orm import relation
-from sqlalchemy.types import Integer, Unicode
+#
+# floof/floof/model/art.py
+#
+# Copyright (c) 2009 Scribblr
+#
-from
floof.model import meta
+from
elixir import Entity, Field, Integer, Unicode
-__all__ = ['Art']
+class Art(Entity):
+ title = Field(Unicode(120))
-class Art(meta.TableBase):
- __tablename__ = 'art'
- id = Column(Integer, primary_key=True)
- title = Column(Unicode(length=120), nullable=False)