Permalink
Browse files

make the old twitter example internally consistent again (see twitty2…

… for the beginning of the future)
  • Loading branch information...
1 parent a188bd5 commit e979ffb77c7c439f91acc1a3908c5c97d3870e59 @enki committed Jun 26, 2010
Showing with 0 additions and 4 deletions.
  1. +0 −4 examples/twitty.py
View
@@ -3,8 +3,6 @@
dev_cluster = Cluster('Dev Cluster')
twitty_keyspace = Keyspace('Twitty', dev_cluster)
-ALLTWEETS_KEY = '!ALLTWEETS!' # virtual user that receives all tweets
-
class User(Model):
"""A Model is stored and retrieved by its RowKey.
Every Model has exactly one RowKey and one or more other Fields"""
@@ -18,8 +16,6 @@ class Tweet(Model):
uuid = RowKey(autogenerate=True) # generate a UUID for us.
message = UnicodeField()
author = ForeignKey(foreign_class=User, mandatory=True)
-
- alltweets = AllIndex()
class TweetsSent(Index):
by_username = RowKey()

0 comments on commit e979ffb

Please sign in to comment.