Jason Robinson
f6a5438a54
Add support for new Diaspora timestamp format
...
Diaspora protocol changed to ISO 8601 timestamp format in protocol version 0.1.6.
Closes #67
2017-01-28 13:34:48 +02:00
Jason Robinson
2a10cb9ffd
Add Python 3.6 to setup.py classifiers
2017-01-12 22:05:19 +02:00
Jason Robinson
0a0fd80366
Merge pull request #66 from jaywink/python3.6
...
Build also Python 3.6 on Travis
2017-01-12 22:02:47 +02:00
Jason Robinson
3f0a412331
Merge pull request #65 from jaywink/exceptions
...
Don't crash diaspora retrieve_diaspora_webfinger on XRD parse error
2017-01-12 22:02:24 +02:00
Jason Robinson
ee0beb884d
Add .pep8speaks.yml
2017-01-12 21:58:37 +02:00
Jason Robinson
e9a8664ebb
Build also Python 3.6 on Travis
2017-01-12 21:56:26 +02:00
Jason Robinson
ef46515ee7
Don't crash diaspora retrieve_diaspora_webfinger on XRD parse error
2017-01-12 21:54:48 +02:00
Jason Robinson
1bf4d8f41a
Release 0.9.1
2016-12-10 16:33:30 +02:00
Jason Robinson
e4e2cb47fb
Merge pull request #64 from jaywink/profile-optional-raw-content
...
Made Profile.raw_content optional
2016-12-10 16:32:43 +02:00
Jason Robinson
b4559c256d
Made Profile.raw_content optional
...
This fixes validating profiles parsed from Diaspora hCard's.
2016-12-10 16:28:53 +02:00
Jason Robinson
dae45fc609
Release 0.9.0
2016-12-10 12:48:08 +02:00
Jason Robinson
46fc41e5cf
Merge pull request #63 from jaywink/images-support-for-status-messages
...
Fix Diaspora photo support and allow entities to have children
2016-12-10 12:38:22 +02:00
Jason Robinson
e7eb4b75bb
Fix Diaspora photo support and allow entities to have children
...
Diaspora photo elements are now processed correctly. Inbound parsing has been changed to also correctly add them to created entities as children, if they happen to be embedded in status messages, for example. Entity children can be iterated using the `_children` list.
Also rename the `Image.text` attribute to `Image.raw_content` to be more consistent.
Closes #62
2016-12-10 12:28:52 +02:00
Jason Robinson
334d6902e3
Release 0.8.2
2016-10-23 16:04:06 +03:00
Jason Robinson
1d0de928fc
Remove legacy splitting of payload to 60 chars when creating Diaspora payloads
...
It looks like new 0.6 diaspora doesn't understand these payloads any more.
2016-10-23 16:03:00 +03:00
Jason Robinson
d01e656daf
Release 0.8.1
2016-10-18 22:34:45 +03:00
Jason Robinson
5b917838a8
Ensure send_document accepts headers in a case insensitive fashion
2016-10-18 22:33:35 +03:00
Jason Robinson
17ba97ab1f
Fix crash in send_document when passing in custom headers
...
`federation.utils.network.send_document` incorrectly passed in `kwargs` to `requests.post`, causing an error when sending custom headers.
2016-10-18 22:11:27 +03:00
Jason Robinson
7cac9e9227
Fix setup.py classifiers oops for 0.8.0 release
2016-10-09 15:36:28 +03:00
Jason Robinson
85d6f9c03d
Release 0.8.0
2016-10-09 14:58:21 +03:00
Jason Robinson
b5c92b1cac
Adjust badges
...
Remove PyPi downloads which doesn't seem to track pip installs, so useless. Replace Requires.io with Gemnasium.
2016-10-09 14:53:45 +03:00
Jason Robinson
11739c8fd2
Fix docs chatroom and support links
2016-10-05 21:52:00 +03:00
Jason Robinson
3291ce1b3b
Add a few setup.py classifiers
2016-10-04 22:48:52 +03:00
Jason Robinson
a80699df3c
Bump development status to beta
2016-10-04 22:45:52 +03:00
Jason Robinson
0c33565370
Add docs introduction to manifest
...
Otherwise setup can't fetch the long description.
2016-10-04 22:42:11 +03:00
Jason Robinson
c5becee7fe
Rename library to federation
...
Less typing saves lives.
2016-10-04 22:07:24 +03:00
Jason Robinson
5558f1099d
Improve docs and unify with readme
2016-10-04 21:31:58 +03:00
Jason Robinson
667f079942
Improve docs and unify with readme
2016-10-04 21:31:51 +03:00
Jason Robinson
fe99f65ebf
Add docs link to readme
...
(and some mooor badges <3)
2016-10-03 23:10:17 +03:00
Jason Robinson
a224e658ff
Revert "Fix docs version string"
...
This reverts commit 464f654fd6
.
2016-10-03 20:42:59 +03:00
Jason Robinson
464f654fd6
Fix docs version string
2016-10-03 19:56:13 +03:00
Jason Robinson
11c019f432
Merge pull request #57 from jaywink/docs
...
Init documentation
2016-10-02 23:13:21 +03:00
Jason Robinson
4edca37168
Init documentation
...
Closes #34
2016-10-02 23:07:39 +03:00
Jason Robinson
3f27bbf7c3
Fix missing DiasporaRetraction in get_outbound_entity checks
...
Forgot to add in #55
2016-10-01 23:48:26 +03:00
Jason Robinson
5b652d4ac6
Merge pull request #56 from jaywink/profile-validate
...
Validate fetched remote profile
2016-10-01 23:44:53 +03:00
Jason Robinson
64839a9d81
Remove unnecessary 'protocol' parameter from retrieve_remote_profile
...
We're miles away from including other protocols and ideally the caller shouldn't have to pass in the protocol anyway.
2016-10-01 23:36:09 +03:00
Jason Robinson
ae717aefa8
Validate fetched remote profile
...
federation.utils.diaspora.retrieve_and_parse_profile will now return None if the Profile retrieved doesn't validate. This will affect also the output of federation.fetchers.retrieve_remote_profile which is the high level function to retrieve profiles.
Closes #54
2016-10-01 23:33:34 +03:00
Jason Robinson
6d67fe05eb
Merge pull request #55 from jaywink/retractions
...
Add Retraction entity
2016-10-01 22:53:48 +03:00
Jason Robinson
c7b741913e
Add Retraction entity
...
With DiasporaRetraction counterpart.
Closes #8
2016-10-01 22:48:48 +03:00
Jason Robinson
42fce2493f
Release 0.7.0
2016-09-15 23:54:42 +03:00
Jason Robinson
4f0771819b
Merge pull request #53 from jaywink/better-validation
...
Various improvements to entity validation
2016-09-15 23:08:26 +03:00
Jason Robinson
0f2c97adf8
Validate entities that are created through message_to_objects
...
To safeguard invalid entities being passed on to library users, validate entities that are created in the message_to_objects calls. Any failures are logged as errors.
This means for Diaspora Profile messages we must fetch the remote GUID from the hcard. Diaspora Profile XML message does not contain the guid but our data structure enforces GUID as a required attribute. This ensures library users will get a full profile back always. Implement in the Diaspora entities a hook fill_extra_attributes that is called in message_to_objects.
2016-09-15 23:02:55 +03:00
Jason Robinson
b135d9b8a4
Improve test coverage of entities
2016-09-15 21:55:08 +03:00
Jason Robinson
432b42d0d5
Remove useless __all__ declaration in base entities
...
We're not importing all in __init__ for example.
2016-09-15 21:42:18 +03:00
Jason Robinson
53e5572f6c
Make guid mandatory for Profile
...
Not sure why it wasn't mandatory..
2016-09-15 19:48:40 +03:00
Jason Robinson
feb1f30cfa
Ensure CreatedAtMixin.created_at gets set in __init__ not in class
2016-09-15 19:48:08 +03:00
Jason Robinson
c2331a3e38
Add bool validation for PublicMixin
2016-09-15 19:47:28 +03:00
Jason Robinson
110751b810
Clarify GuidMixin.validate_guid if
2016-09-15 19:46:45 +03:00
Jason Robinson
52d667a17f
Also validate None or empty string values for required entity attributes
...
Also refactor validation to be a little clearer.
2016-09-15 19:46:07 +03:00
Jason Robinson
8a1d2203a0
Raise warning if passing unknown parameters to entities
2016-09-15 19:44:27 +03:00