21 Commits

Author SHA1 Message Date
Adi Sieker a76240eedf fixed adding messages from live api 2011-04-20 20:56:03 +02:00
Adi Sieker 567b3b065f make sure all the unread counters don't default to None. 2011-04-16 22:27:53 +02:00
Adi Sieker 57f6c7c190 split live api, LiveTopic model, sync fixes
* The live api is now split into two methods. One that fetches the data
and deserializes the json the second that creates the model instances.
These two methods are wrapped by the live method. The split is useful
when working with multiple threads. One worker thread that fetches
the data and the main thread that creates the instances.
* added LiveTopic model since the topic data in the live api doesn't
contain all the data that a Topic contains.
* makes sure that the _synced attribute is set when calling sync directly.
2011-04-16 22:03:34 +02:00
Adi Sieker 91a126ab81 added unread count functionality 2011-04-12 23:53:02 +02:00
Adi Sieker 3cc3b9e0ff unread attribute for messages and live api topic.
- added an unread attribute to the message class and populate it
  during sync.
- fixed new topics in the live api.
2011-04-12 20:59:38 +02:00
Adi Sieker ef36a7a07c reworked live api and removed some duplicate code.
The live api call now returns a list of dicts.The
dicts contain the kind and a corresponding object.
2011-03-11 23:56:05 +01:00
Adi Sieker 77e7901e1f implemented topics and messages.
groups now know their topics and topics know their messages.
the relevant convore apis are:
- /groups/:group_id/topics.json
- /topics/:topic_id/messages.json
2011-03-09 11:00:03 +01:00
Kenneth Reitz e24fe6af11 Add groups attr to categories. 2011-02-21 15:41:13 -05:00
Kenneth Reitz 8b82223b6d Category support 2011-02-21 15:20:52 -05:00
Kenneth Reitz a420529574 Anyjson, docstrings 2011-02-21 14:21:56 -05:00
Kenneth Reitz 78fc750a02 new-style classes, not self-instantiating 2011-02-21 13:12:29 -05:00
Kenneth Reitz c86ec88c4c Added skeleton Category 2011-02-20 14:49:37 -05:00
Kenneth Reitz 00b352372c API refactor 2011-02-20 14:23:20 -05:00
Kenneth Reitz 1ead21dde1 no need for models or request now. 2011-02-19 16:23:29 -05:00
Kenneth Reitz 63321528e5 proper datetime objects 2011-02-19 16:03:42 -05:00
Kenneth Reitz 3e964fb4d4 docstringz 2011-02-19 14:21:39 -05:00
Kenneth Reitz a829829e01 dict get defaults 2011-02-19 14:17:03 -05:00
Kenneth Reitz 1dd33eb918 dict.get() defualts 2011-02-19 14:16:06 -05:00
Kenneth Reitz 8790a7279a don't use built in names 2011-02-19 13:23:24 -05:00
Kenneth Reitz df784f74e3 models will hold the data 2011-02-19 11:40:34 -05:00
Kenneth Reitz e79bc23e50 added basic models 2011-02-19 06:55:40 -05:00