Adi Sieker
c50b67265f
Merge branch 'adi' into async
...
Conflicts:
convore/api.py
2011-05-17 23:36:26 +02:00
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
28c144004a
initial commit of async branch.
...
This branch will contain the work to optionally use the library
asynchronously.
All api communication and deserialization is now in a class
Endpoints in the api module. All api.get calls have been replaced
with calls to the new endpoints. Also all the endpoints for the
convore api are already available.
2011-05-17 17:15:11 +02:00
Adi Sieker
3e7bc8782e
moved the Group,Topics and Messages lists core module
...
the api module will only contain low level api stuff i.e.
fetching from convore and deserializing the json.
2011-05-16 20:54:05 +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
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
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
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
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
f0fb680961
Added optional get params.
2011-02-21 15:48:04 -05:00
Kenneth Reitz
19bdb0a0e0
Added new error handling message passing.
2011-02-21 15:39:37 -05:00
Kenneth Reitz
d093b3ab2e
no need for that anymore
2011-02-21 14:51:40 -05:00
Kenneth Reitz
7020cd52a5
using anyjson instead of built-in json module
2011-02-21 14:16:18 -05:00
Kenneth Reitz
804bc230b0
use new api for group pulls
2011-02-21 02:27:04 -05:00
Kenneth Reitz
00b352372c
API refactor
2011-02-20 14:23:20 -05:00
Kenneth Reitz
8e6d69b0e5
Using Synced list.
2011-02-20 13:31:29 -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
Kenneth Reitz
40259d93d6
get/post parameter updates
2011-02-19 20:45:19 -05:00
Kenneth Reitz
0bfb6b13f9
ugh
2011-02-19 20:10:17 -05:00
Kenneth Reitz
1b75b13b21
sigh
2011-02-19 19:10:50 -05:00
Kenneth Reitz
bc88adeef1
utc timestamps
2011-02-19 18:59:05 -05:00
Kenneth Reitz
70f628a64c
extracted _safe_request()
...
new api.post function
2011-02-19 16:36:01 -05:00
Kenneth Reitz
5993dbadfe
API Handling setup
2011-02-19 16:29:15 -05:00
Kenneth Reitz
6bf4351a45
complete api call restructure.
2011-02-19 16:23:41 -05:00
Kenneth Reitz
d550a71e66
whitespace
2011-02-19 16:03:03 -05:00
Kenneth Reitz
fc8a1244b6
Grabbing groups you haven't joined in place.
2011-02-19 14:15:58 -05:00
Kenneth Reitz
59ab4b440d
UserList
2011-02-19 13:23:11 -05:00
Kenneth Reitz
8343761c36
convore.api will make the calls inside of objects.
2011-02-19 11:40:28 -05:00