128 Commits

Author SHA1 Message Date
Adi Sieker b5de5d9fc9 Merge branch 'master' into adi
Conflicts:
	AUTHORS
	convore/api.py
	convore/models.py
2011-05-17 23:33:55 +02:00
Kenneth Reitz fcf1917a3c Merge pull request #6 from myusuf3/master
low hanging fix.
2011-05-16 07:25:05 -07:00
Mahdi Yusuf 8143a6c090 this is convore not tablib; thought i would get some low hanging fruit. 2011-05-16 07:07:02 -07:00
Kenneth Reitz 785103218d Requests v0.3.4 2011-05-14 14:34:10 -04: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
Kenneth Reitz 1707d7ea7b that shouldn't be there 2011-04-02 02:51:08 -04:00
Cole Kowalski 77f4b3dfd5 add myself to the authors file 2011-03-29 20:38:17 -04: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
Cole Kowalski 3fde1d12e7 add convore.packages and convore.packages.anyjson to the setup package list 2011-03-25 13:05:53 -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 a482303b15 added myself to the AUTHORS file. 2011-03-11 09:08: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 229edd5fa7 added .pyc to the ignore list. 2011-03-11 09:02:19 +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 54d78ebe46 unittest2 for python <2.7 2011-02-25 09:19:29 -05:00
Kenneth Reitz 179cef4784 tests 2011-02-25 09:16:06 -05:00
Kenneth Reitz 7fab3abaaa new search api 2011-02-25 09:15:59 -05: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 4c9fbe50a1 setup.py test 2011-02-21 15:04:32 -05:00
Kenneth Reitz 2d4c4c6593 that'll fix that 2011-02-21 15:00:22 -05:00
Kenneth Reitz 34e3c4984b much better minitest 2011-02-21 15:00:16 -05:00
Kenneth Reitz a49b0fc2b7 Real tests w/ configuration. 2011-02-21 14:51:54 -05:00
Kenneth Reitz d093b3ab2e no need for that anymore 2011-02-21 14:51:40 -05:00
Kenneth Reitz 3eb21e19e9 Python 2.5 support, simplejson if <2.6 2011-02-21 14:23:58 -05:00
Kenneth Reitz 22658f6386 AnyJSON notice. 2011-02-21 14:22:02 -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