CYBERDEViLNL [Thu, 6 Dec 2018 18:16:11 +0000 (19:16 +0100)]
* __upd__: `diaspy.models.Post.like()`, `diaspy.models.Post.delete_like()`, `diaspy.models.Post.reshare()` will now update data (count and likes/reshares) without doing another request.
* __fix__: `diaspy.models.Post.__init__()` checking on different fetch states was a mess.
* __fix__: `diaspy.streams.Asepcts.filter()` location fix.
* __new__: `diaspy.tagFollowings.TagFollowings()` which represents the tags followed by the user.
* __new__: `diaspy.models.FollowedTag()` which represents a tag followed by the user. It is used by `diaspy.tagFollowings.TagFollowings()`.
* __new__: It is now possible to give `**requestKwargs` to `diaspy.connection.Connection()` which will be used for every `request` unless directly overwritten by given the function you call different key-worded arguments.
* __new__: `diaspy.connection.Connection()` now does check if the `pod` you are connecting to has `Camo` enabled or not. Call `diaspy.connection.Connection.camo()` to receive `True` or `False`.
* __new__: `diaspy.models.Comment.authordata()` which will return all author data instead of `diaspy.models.Comment.author()` which will only return data for a certain key.
* __new__: `diaspy.streams.Public()`
* __new__: `diaspy.models.Post.fetchlikes()`.
* __new__: `diaspy.models.Post.fetchreshares()`
* __rem__: `diaspy.streams.FollowedTags.get()` since it wasn’t doing anything usefull.
* __dep__: `diaspy.streams.FollowedTags.remove()` Use `diaspy.tagFollowings.TagFollowings[“tagName”].delete()` instead.
* __dep__: `diaspy.streams.FollowedTags.add()` Use diaspy.tagFollowings.TagFollowings.follow() instead.
CYBERDEViLNL [Thu, 8 Nov 2018 15:03:54 +0000 (16:03 +0100)]
* versions from `0.6.0.dev` to `0.6.0`.
* changelog update.
CYBERDEViLNL [Thu, 8 Nov 2018 14:46:01 +0000 (15:46 +0100)]
* do `_fetchcookies()` after the scheme check in `diaspy.connection.Connection()`.
* cleanded the scheme check a bit in `diaspy.connection.Connection()`.
* `diaspy.connection.Connection().podswitch()` has now a optional param `login` with as default set to `True`, if `False` it will only set the data and does not call `login()`.
CYBERDEViLNL [Thu, 8 Nov 2018 14:29:38 +0000 (15:29 +0100)]
* manual update
CYBERDEViLNL [Mon, 5 Nov 2018 12:40:00 +0000 (13:40 +0100)]
* `diaspy.people.User().handle()` now returns `diaspora_id` instead of `handle` wich doesn't exist anymore.
* Apparently `/u/username.json` retuns 404 so `diaspy.people.User().fetchhandle()` now fetches data using `diaspy.people.User().fetchprofile()`.
* Some formatting fixes in `settings.py`
* `tests.py` should succeed now.
CYBERDEViLNL [Sat, 3 Nov 2018 22:39:49 +0000 (23:39 +0100)]
Updated `Post()` to get data through `data()` since getitem is removed.
CYBERDEViLNL [Sat, 3 Nov 2018 21:32:07 +0000 (22:32 +0100)]
change version to 0.6.0.dev
CYBERDEViLNL [Sat, 3 Nov 2018 20:53:19 +0000 (21:53 +0100)]
removed `__getitem__` and `__dict__` deprecations from models.py
CYBERDEViLNL [Sat, 3 Nov 2018 20:46:53 +0000 (21:46 +0100)]
Updated `Changelog.markdown`, it's not the final yet.
CYBERDEViLNL [Sat, 3 Nov 2018 20:10:46 +0000 (21:10 +0100)]
* Removed `backtime` parameter from `diaspy.streams.Generic()` it's `more()` method since it isn't used anymore.
* Some commentary updates/cleanups here and there.
CYBERDEViLNL [Sat, 3 Nov 2018 19:50:43 +0000 (20:50 +0100)]
* Cleaned up some commentary in models.py
* `Comments()` object its comments parameter is now a `list` by default instead of `None`.
CYBERDEViLNL [Fri, 2 Nov 2018 18:27:06 +0000 (19:27 +0100)]
BS4 implementation for `settings.py`
CYBERDEViLNL [Fri, 2 Nov 2018 00:14:55 +0000 (01:14 +0100)]
* Dropped pytz support, `dateutil` version 2.2 or higher is now required.
* Removed some `print()`'s here and there to stop some console spamming.
* Removed `Post()`'s `update()` method since it's deprecated for a while now.
* Small manual adjustment.
* Updated `README.md`, `setup.py` and `requirements.txt` to the new requirements.
* Added `optional-requirements.txt` since BS4 is optional.
Reviews are welcome for those who see this :-)
CYBERDEViLNL [Fri, 2 Nov 2018 00:01:58 +0000 (01:01 +0100)]
Changed `tests.py`'s indentation from spaces to tabs.
CYBERDEViLNL [Thu, 1 Nov 2018 22:35:43 +0000 (23:35 +0100)]
* Manual update.
* Limited the column width of the manual files a little.
CYBERDEViLNL [Mon, 29 Oct 2018 23:05:48 +0000 (00:05 +0100)]
* Fetch conversation messages with BS4 and regex as fallback.
-- To fetch messages call `update_messages` on a `models.Conversation` object.
-- You may now do `iter`, `len` and `getitem` with a `models.Conversation` object to get messages or to get the message count.
-- Call `messages` in a `models.Conversation` object to receive a list with messages (dict)
* BS4 for Notification model and kept regex as fallback.
* Did a trick in Notifications who() function to get a unique list without duplicates.
CYBERDEViLNL [Fri, 26 Oct 2018 17:05:03 +0000 (19:05 +0200)]
Change indentation from spaces to tabs as discussed here https://github.com/marekjm/diaspy/issues/38
CYBERDEViLNL [Tue, 8 May 2018 19:34:03 +0000 (21:34 +0200)]
IMPORTANT: these changes will require dateutil or pytz
Please review, I hope the other devs will approve to these changes.
connection.py
- Set self._userdata on getUserData().
errors.py
- Added SearchError and TagError.
models.py
- Added removeAspect() to class Aspect().
- Set self.id and self.guid on Notification() class.
- Created class Comments() instead of the list.
- Post() can now be set with post data from a response without fetching the post again.
- Post() now returns a Comment() object instead of json when commented.
- Update Post()'s self._data['interactions']['likes'] after liked.
- Added some interaction functions for class Post(): vote_poll( poll_answer_id ), hide(), mute(), subscribe(), unsubscribe(). -- report() is still TODO
notifications.py
- I made some mistake again with updating the notification values, so hopefully fixed now.
people.py
- Able to manually set User()'s data.
- Remove aspect id from User() object when removed.
- Made User()'s handle() little more flexible and replaced self['handle'] with self.handle().
- Added getPhotos() and deletePhoto() functions to User() class.
- getHCard() didn't seem so work anymore so tweaked it a little, should be good now.
- Class Contacts() it's now optional to set fetch param.
- Contacts() now has functionality to add and delete Aspects.
- Contacts()'s get() should now return all contacts if param `set` is set.
streams.py
- Fetching more posts seemed to miss some posts, hoped it's fixed now ( But it will require dateutil or pytz ).
- Posts where fetched twice.
- Removed _obtain() from Outer().
- Updated Aspect()'s filter function.
CYBERDEViLNL [Mon, 16 Apr 2018 20:53:45 +0000 (22:53 +0200)]
well that was stupid.. unread notification count didn't got updated correctly wich resulted in KeyError
CYBERDEViLNL [Sun, 15 Apr 2018 18:31:52 +0000 (20:31 +0200)]
addUser in diaspy.models.Aspect needed content-type json.
CYBERDEViLNL [Tue, 10 Apr 2018 21:00:17 +0000 (23:00 +0200)]
return whole guids instead of a part of it in Notification it's who() function.
CYBERDEViLNL [Tue, 10 Apr 2018 20:49:07 +0000 (22:49 +0200)]
extended _who_regexp to accept ' and ", else it doesn't match always.
CYBERDEViLNL [Fri, 6 Apr 2018 13:43:15 +0000 (15:43 +0200)]
make _fetchstream() optional in people.User().fetchguid() so user data can be fetched without fetching the stream, default set to True
CYBERDEViLNL [Tue, 27 Mar 2018 00:16:17 +0000 (02:16 +0200)]
update() and more() functionality for notifications.
Marek Marecki [Mon, 26 Mar 2018 13:18:33 +0000 (15:18 +0200)]
Remove spaces
Marek Marecki [Mon, 26 Mar 2018 13:18:27 +0000 (15:18 +0200)]
Feed the post with data after is has been created
Marek Marecki [Mon, 26 Mar 2018 13:17:57 +0000 (15:17 +0200)]
Deprecations
Marek Marecki [Mon, 19 Mar 2018 19:28:01 +0000 (20:28 +0100)]
Merge pull request #37 from CYBERDEViLNL/patch-1
Fixes more() and update() function and adds id to posts
CYBERDEViLNL [Thu, 8 Mar 2018 14:58:56 +0000 (15:58 +0100)]
streams.py
* Check on guids instead of ids in _expand() and _update() wich are used by the more() and update() functions.
* Sets id when post appended to posts list that is returned by _obtain()
Marek Marecki [Mon, 17 Jul 2017 15:39:05 +0000 (17:39 +0200)]
Merge pull request #34 from lamby/correct-seconds-in-day
Correct number of seconds in a day.
Chris Lamb [Sat, 15 Jul 2017 17:44:30 +0000 (18:44 +0100)]
Correct number of seconds in a day.
(Looks like a typo)
Marek Marecki [Mon, 26 Jun 2017 10:12:05 +0000 (12:12 +0200)]
Merge pull request #33 from kianby/master
Fix #22 (https://github.com/marekjm/diaspy/issues/22)
Yax [Sun, 25 Jun 2017 17:40:46 +0000 (19:40 +0200)]
Fix #22 (https://github.com/marekjm/diaspy/issues/22)
Marek Marecki [Sun, 23 Apr 2017 14:43:17 +0000 (16:43 +0200)]
Fixes #19
Marek Marecki [Sun, 23 Apr 2017 14:38:34 +0000 (16:38 +0200)]
Fetching users from aspect works
Marek Marecki [Sun, 23 Apr 2017 14:27:15 +0000 (16:27 +0200)]
Fetching notifications works again, fixes #31
Marek Marecki [Sun, 23 Apr 2017 14:19:27 +0000 (16:19 +0200)]
For some reason Diaspy cannot add users to aspects
Marek Marecki [Sun, 23 Apr 2017 14:18:56 +0000 (16:18 +0200)]
Add CSRF tokens when missing in POST or PUT
Marek Marecki [Sun, 23 Apr 2017 14:18:30 +0000 (16:18 +0200)]
Access method for getting id of a user
Marek Marecki [Sun, 23 Apr 2017 14:18:15 +0000 (16:18 +0200)]
Fetch token from different locations
Marek Marecki [Sun, 23 Apr 2017 13:46:25 +0000 (15:46 +0200)]
Do not guess
Marek Marecki [Sun, 23 Apr 2017 13:45:07 +0000 (15:45 +0200)]
Fix removing users from aspects, fixes #13
Marek Marecki [Sun, 23 Apr 2017 13:44:31 +0000 (15:44 +0200)]
Fix add X-CSRF-Token when it is missing
Marek Marecki [Sun, 23 Apr 2017 13:44:08 +0000 (15:44 +0200)]
Fix DELETE can be sent without data
Marek Marecki [Sun, 23 Apr 2017 13:43:44 +0000 (15:43 +0200)]
Better (safer) stringification of users
Marek Marecki [Sun, 23 Apr 2017 13:43:18 +0000 (15:43 +0200)]
Access methods for getting aspect memeberships of a user
Marek Marecki [Sun, 23 Apr 2017 13:42:59 +0000 (15:42 +0200)]
Access methods for getting handle and guid of a user
Marek Marecki [Sun, 23 Apr 2017 13:12:44 +0000 (15:12 +0200)]
Fix fetching users
Marek Marecki [Sun, 23 Apr 2017 13:12:34 +0000 (15:12 +0200)]
Fix fetching streams of other users
Marek Marecki [Sun, 23 Apr 2017 12:45:18 +0000 (14:45 +0200)]
Fixes #10
Marek Marecki [Sun, 23 Apr 2017 12:28:22 +0000 (14:28 +0200)]
Merge branch 'devel'
Marek Marecki [Sun, 23 Apr 2017 12:27:38 +0000 (14:27 +0200)]
Merge branch 'cnngimenez-master'
Marek Marecki [Tue, 26 Jan 2016 13:35:53 +0000 (14:35 +0100)]
Update README.md
Nice PyPI badge
Marek Marecki [Fri, 8 Jan 2016 23:26:05 +0000 (00:26 +0100)]
Release 0.5.1
Marek Marecki [Fri, 8 Jan 2016 23:12:38 +0000 (00:12 +0100)]
Update version in setup.py
Marek Marecki [Fri, 8 Jan 2016 23:12:09 +0000 (00:12 +0100)]
Release 0.5.0.2
Marek Marecki [Fri, 8 Jan 2016 22:58:38 +0000 (23:58 +0100)]
New setup.py
Marek Marecki [Sat, 19 Dec 2015 08:20:05 +0000 (09:20 +0100)]
It is possibe to suppress PostErrors when fetching stream
Closes #27.
Possibly closes #23.
Christian Giménez [Mon, 25 May 2015 22:40:13 +0000 (19:40 -0300)]
diaspy.models.Notification.when() use the create_at json field instead looking into the HTML code.
Marek Marecki [Wed, 13 May 2015 20:39:03 +0000 (22:39 +0200)]
Release v0.5.0.1
Marek Marecki [Wed, 13 May 2015 20:37:41 +0000 (22:37 +0200)]
Hotfix: CSRF token extraction works for older versions of Diaspora, fix #18
Marek Marecki [Tue, 5 May 2015 21:04:18 +0000 (23:04 +0200)]
Release 0.5.0
Marek Marecki [Tue, 5 May 2015 21:02:53 +0000 (23:02 +0200)]
Merge branch 'devel'
Marek Marecki [Fri, 3 Apr 2015 15:42:24 +0000 (17:42 +0200)]
This should solve #17 (new regex to extract CSRF tokens)
Marek Marecki [Fri, 3 Apr 2015 15:34:47 +0000 (17:34 +0200)]
Fix a typo
Marek Marecki [Sat, 7 Mar 2015 22:14:44 +0000 (23:14 +0100)]
Merge pull request #16 from Debakel/patch-1
Update streams.markdown
Moritz [Fri, 6 Mar 2015 18:53:12 +0000 (19:53 +0100)]
Update streams.markdown
Faldrian [Sun, 12 Jan 2014 17:45:13 +0000 (18:45 +0100)]
fixed version number in install script
Faldrian [Sun, 12 Jan 2014 17:32:27 +0000 (18:32 +0100)]
merged and fixed some problems
Faldrian [Sun, 12 Jan 2014 17:14:50 +0000 (18:14 +0100)]
Fixed bugs with getting, showing and deleting users. Deleting users still does not work.
Marek Marecki [Sat, 11 Jan 2014 22:57:33 +0000 (23:57 +0100)]
Updated setup.py file
Marek Marecki [Sat, 11 Jan 2014 22:55:20 +0000 (23:55 +0100)]
Merge branch 'master' of https://github.com/Faldrian/diaspy into Faldrian/master
Faldrian [Sat, 11 Jan 2014 16:45:43 +0000 (17:45 +0100)]
Set version in setup.py to current version.
Marek Marecki [Sun, 5 Jan 2014 11:57:35 +0000 (12:57 +0100)]
Fix for issue #10, updated language-list fetching regexp (fixes a bug where some languages were not fetched)
Marek Marecki [Fri, 20 Dec 2013 14:22:05 +0000 (15:22 +0100)]
Updated Makefile and one docstring in diaspy/people.py
Marek Marecki [Thu, 19 Dec 2013 06:11:15 +0000 (07:11 +0100)]
Update to version 0.4.2
Marek Marecki [Wed, 18 Dec 2013 20:33:00 +0000 (21:33 +0100)]
Some fixes to make diaspy more Python 2.x-friendly
Marek Marecki [Wed, 18 Dec 2013 19:56:36 +0000 (20:56 +0100)]
Updated docs
Marek Marecki [Wed, 18 Dec 2013 19:14:33 +0000 (20:14 +0100)]
Git now ignores private.* files
Marek Marecki [Wed, 13 Nov 2013 21:00:08 +0000 (22:00 +0100)]
Code fixes, new features and refactoring in the field of user data and
info
Marek Marecki [Mon, 23 Sep 2013 18:03:52 +0000 (20:03 +0200)]
Changes in diaspy.streams.Generic() and diaspy.models.Post()
Marek Marecki [Mon, 23 Sep 2013 11:29:33 +0000 (13:29 +0200)]
Small changes in diaspy/streams (documentation and initialization
methods)
Marek Marecki [Mon, 23 Sep 2013 04:37:20 +0000 (06:37 +0200)]
Small changes in documentation of streams
Marek Marecki [Sun, 15 Sep 2013 13:47:03 +0000 (15:47 +0200)]
Moved getUserInfo() to diaspy.people.Me.getInfo(), regexps for
extracting it were also moved
Marek Marecki [Sat, 14 Sep 2013 22:27:00 +0000 (00:27 +0200)]
diaspy.connection.Connection.login() returns Connection() object as well
as modifying it in-place
Marek Marecki [Fri, 13 Sep 2013 22:11:03 +0000 (00:11 +0200)]
_fetchstream() method in User() object
Marek Marecki [Thu, 12 Sep 2013 15:02:56 +0000 (17:02 +0200)]
Removed diaspy/client.py
Marek Marecki [Thu, 12 Sep 2013 14:46:37 +0000 (16:46 +0200)]
Tests updated for new lang-fetching
Marek Marecki [Thu, 12 Sep 2013 14:02:20 +0000 (16:02 +0200)]
Changed fetching languages in diaspy/settings.py, setLanguage() now
raises exception instead of returning status code
Marek Marecki [Wed, 11 Sep 2013 18:39:05 +0000 (20:39 +0200)]
Style fixes and small adjustments in regular expressions used in
diaspy/settings.py
Marek Marecki [Sun, 8 Sep 2013 10:32:43 +0000 (12:32 +0200)]
Setters for profile information implemented
Marek Marecki [Sat, 7 Sep 2013 19:49:03 +0000 (21:49 +0200)]
Updated tests and Changelog
Marek Marecki [Sat, 7 Sep 2013 19:33:23 +0000 (21:33 +0200)]
Merge branch 'feature/provider_display_name' of https://github.com/svbergerem/diaspy into svebergem-feature/provider_display_name
Marek Marecki [Sat, 7 Sep 2013 19:17:17 +0000 (21:17 +0200)]
Tags can be fetched from profile
Steffen van Bergerem [Sat, 7 Sep 2013 16:40:22 +0000 (18:40 +0200)]
Add provider_display_name to posts
Marek Marecki [Sat, 7 Sep 2013 09:57:10 +0000 (11:57 +0200)]
Fetching profile information is possible
Marek Marecki [Fri, 6 Sep 2013 19:51:26 +0000 (21:51 +0200)]
Updates to Changelog
Marek Marecki [Fri, 6 Sep 2013 19:44:20 +0000 (21:44 +0200)]
Changes in login code and additions in diaspy/settings.py (don't use yet -
will reset your profile)
Marek Marecki [Fri, 6 Sep 2013 16:06:35 +0000 (18:06 +0200)]
You can fetch tag suggestions using diaspy
Marek Marecki [Fri, 6 Sep 2013 15:09:25 +0000 (17:09 +0200)]
Removed .travis.yml