Adi Sieker
b5de5d9fc9
Merge branch 'master' into adi
...
Conflicts:
AUTHORS
convore/api.py
convore/models.py
2011-05-17 23:33:55 +02:00
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
cf0e969f0b
moved next_cursor where it belongs.
2011-04-13 21:04:13 +02:00
Adi Sieker
b7c11ba773
refactored fetching of live data
...
the fetch of the data is now in a separate method.
Needed when fetching the live stream in a separate thread.
If you use the normal live method there'd more api calls
to actually get the groups and topics.
2011-04-13 21:01:30 +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
fe7c5af03c
added implicit sync on accessing a SyncedList.
2011-04-10 23:54:23 +02:00
Adi Sieker
bd3c06d2a7
use _create_topic_from_api method and delete slug as a key.
...
in topic.create use _create_topic_from_api instead of doing it on our own.
messages don't have a slug attribute. So we can't use it as a key.
2011-04-07 23:19:57 +02:00
Cole Kowalski
06cfdec321
some attributes need to be set prior to calling the base class' __init__() method.
2011-03-25 13:21:32 -04:00
Adi Sieker
a95face850
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-16 02:55:51 -04: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
bb871937d4
implemented live api.
...
simple implementation. we make a blocking call to the url.
if working in a GUI environment where the blocking call would
freeze the GUI. the caller would need to start the live call
in a separate thread and use a Queue to pass back the live data.
2011-03-11 21:41:23 +01:00
Adi Sieker
9ed04d9c27
implemented creae topic api
...
implemented the api /groups/:group_id/topics/create.json
2011-03-11 09:03:12 +01:00
Adi Sieker
9af0259144
implemented create message api.
...
implemented the API /topics/:topic_id/message/create.json
2011-03-09 23:46:10 +01:00
Adi Sieker
9b7cce6509
don't sync on instatiation.
...
if we sync on instantiation login happens automatically.
we don't get a chance to call account_verify or rather it
doesn't make sense.
2011-03-09 11:02:32 +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
e490e98add
Requests v0.3.0
2011-02-25 09:15:49 -05:00
Kenneth Reitz
17f8c92d12
Search is now a method.
2011-02-22 01:02:16 -05:00
Kenneth Reitz
17447de05a
Search endpoint works.
2011-02-21 15:55:24 -05:00
Kenneth Reitz
5377ecfd47
GroupDiscoverSearch started
2011-02-21 15:48:22 -05:00
Kenneth Reitz
f0fb680961
Added optional get params.
2011-02-21 15:48:04 -05:00
Kenneth Reitz
e24fe6af11
Add groups attr to categories.
2011-02-21 15:41:13 -05:00
Kenneth Reitz
ecf15dfbf1
Only store parents if you can.
2011-02-21 15:41:03 -05:00
Kenneth Reitz
b82d422b10
better error syntax
2011-02-21 15:40:28 -05:00
Kenneth Reitz
07844037ae
Find out more about groups.
2011-02-21 15:39:57 -05:00
Kenneth Reitz
19bdb0a0e0
Added new error handling message passing.
2011-02-21 15:39:37 -05:00
Kenneth Reitz
8b82223b6d
Category support
2011-02-21 15:20:52 -05:00
Kenneth Reitz
d093b3ab2e
no need for that anymore
2011-02-21 14:51:40 -05:00
Kenneth Reitz
a420529574
Anyjson, docstrings
2011-02-21 14:21:56 -05:00
Kenneth Reitz
d24543ea8f
whitespace cleanup
2011-02-21 14:21:36 -05:00
Kenneth Reitz
7020cd52a5
using anyjson instead of built-in json module
2011-02-21 14:16:18 -05:00
Kenneth Reitz
545e8f5ad9
Vendorized anyjson
2011-02-21 14:15:56 -05:00
Kenneth Reitz
1dd27988ca
added __docformat__
2011-02-21 14:15:45 -05:00
Kenneth Reitz
109e51954c
new style api get call
2011-02-21 13:12:50 -05:00
Kenneth Reitz
78fc750a02
new-style classes, not self-instantiating
2011-02-21 13:12:29 -05:00
Kenneth Reitz
804bc230b0
use new api for group pulls
2011-02-21 02:27:04 -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
1464ca50ed
whitespace
2011-02-20 14:23:03 -05:00
Kenneth Reitz
f049323386
Add cached groups to parents.
2011-02-20 14:22:56 -05:00
Kenneth Reitz
d7feb0091d
whitespace
2011-02-20 13:32:09 -05:00
Kenneth Reitz
8e6d69b0e5
Using Synced list.
2011-02-20 13:31:29 -05:00
Kenneth Reitz
5695122056
Convore object is all there is to import.
2011-02-20 13:31:14 -05:00
Kenneth Reitz
a18cbec1c6
SyncedList types built, and it's AWESOME.
2011-02-20 13:30:58 -05:00
Kenneth Reitz
c635ad0370
Abstractions
2011-02-20 13:05:59 -05:00
Kenneth Reitz
530642402c
added GroupsDiscover endpoint.
2011-02-19 21:29:50 -05:00
Kenneth Reitz
932fd1e9dc
friend_list should be friends.
2011-02-19 21:24:39 -05:00
Kenneth Reitz
a47e7e2dee
Added friend_list
2011-02-19 21:23:39 -05:00