24 Commits

Author SHA1 Message Date
Adi Sieker dd0c6f906d fixed the last remanants of the old api.get calls.
in the initial commit I missed 2 places of the old api calls.
I was also passing in the wrong dict to Groups.import_from_api
2011-05-19 23:18:44 +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 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 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 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
Kenneth Reitz d24543ea8f whitespace cleanup 2011-02-21 14:21:36 -05:00
Kenneth Reitz 1dd27988ca added __docformat__ 2011-02-21 14:15:45 -05:00
Kenneth Reitz 1464ca50ed whitespace 2011-02-20 14:23:03 -05:00
Kenneth Reitz 5695122056 Convore object is all there is to import. 2011-02-20 13:31:14 -05:00
Kenneth Reitz c4aa0f485b Problem solved. 2011-02-19 20:23:16 -05:00
Kenneth Reitz 5e77e4db1f utilize new api requests wrapper 2011-02-19 16:29:34 -05:00
Kenneth Reitz e4729b6ca3 Back to Convore object system. 2011-02-19 16:03:19 -05:00
Kenneth Reitz 8343761c36 convore.api will make the calls inside of objects. 2011-02-19 11:40:28 -05:00
Kenneth Reitz e0d2cf22fc Hrmm 2011-02-19 06:55:47 -05:00
Kenneth Reitz 0d86f2ff01 Account API setup 2011-02-14 03:29:11 -05:00
Kenneth Reitz 11e558c0d0 idk if this is the way to go or not.. 2011-02-14 03:08:40 -05:00
Kenneth Reitz 0d0fdbb12b Core w/ requests is MUCH simpler 2011-02-14 02:59:34 -05:00
Kenneth Reitz ce9f0c4688 That's one way to do it.. 2011-02-13 13:05:36 -05:00
Kenneth Reitz a1ca44711e coming together 2011-02-13 11:00:09 -05:00
Kenneth Reitz d69b8c7982 convore core 2011-02-13 10:56:16 -05:00