Wykres commitów

194 Commity (07d448407720ef934417251034b09aed8ba87020)

Autor SHA1 Wiadomość Data
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
Jason Robinson c5ae5b9954 Merge pull request #52 from jaywink/fix-hcard-parse
Fix parsing profile from hCard
2016-09-15 15:45:32 +03:00
Jason Robinson dea861db18 Fix parsing profile from hCard
In the future diaspora hCard is not guaranteed to contain pod url or username. Don't rely on these in the parser, instead pass handle to the hCard parser directly.

Closes #50
2016-09-15 15:39:41 +03:00
Jason Robinson efccbab823 Release 0.6.1 2016-09-14 22:08:44 +03:00
Jason Robinson 07ec0382ef Merge pull request #51 from jaywink/fix-me
Fix new style Diaspora Magic Envelope payload data
2016-09-14 22:07:49 +03:00
Jason Robinson c1a37a7a91 Fix new style Diaspora Magic Envelope payload data
New style Diaspora Magic Envelope didn't require or like payload data to be cut to 60 char lines, as the legacy protocol does. Fixed to not cut lines.
2016-09-14 22:04:02 +03:00
Jason Robinson 054f2b60e0 Release 0.6.0 2016-09-13 12:07:20 +03:00
Jason Robinson 9617a6e56b Merge pull request #49 from jaywink/fix-hcard-selectors
Fix hcard selectors in parse_profile_from_hcard
2016-09-13 12:02:46 +03:00
Jason Robinson 476c6114ec Fix hcard selectors in parse_profile_from_hcard
Closes #39
2016-09-13 11:55:42 +03:00
Jason Robinson 8e29497e91 Merge pull request #48 from jaywink/new-magic-envelope
New style Diaspora Magic Envelope support
2016-09-13 11:35:22 +03:00
Jason Robinson 0b91e828d4 New style Diaspora Magic Envelope support
Not used in actual federation yet. Offers a class to build the envelope separately.

Closes #47
2016-09-13 11:29:13 +03:00
Jason Robinson 1c1bab1277 Always install test reqs with -U flag 2016-09-12 22:02:27 +03:00
Jason Robinson 4b01542fd4 Add changelog for user.private_key change 2016-09-12 21:58:28 +03:00
Jason Robinson ddc14cfab1 Deprecate receiving user 'key' attribute for Diaspora protocol
Instead correct attribute should be 'private_key'. We already use 'private_key' in the message creation code so this is just to unify the user related required attributes.

There is a fallback with 'key' for user objects in the receiving payload part of the Diaspora protocol until 0.8.0.
2016-09-12 21:53:25 +03:00
Jason Robinson 157423efe3 Add pytest-warnings to test reqs 2016-09-12 21:51:00 +03:00
Jason Robinson 8d62831ae9 Release 0.5.0 2016-09-05 23:38:33 +03:00
Jason Robinson c58d717b78 Merge pull request #46 from jaywink/full-xml-repr
Add Diaspora entity utility get_full_xml_representation
2016-09-05 23:38:08 +03:00
Jason Robinson 6cf06e915e Add Diaspora entity utility get_full_xml_representation 2016-09-05 23:33:35 +03:00
Jason Robinson 66965697b1 Merge pull request #45 from jaywink/send-document
Add send_document network utility
2016-09-05 23:04:37 +03:00
Jason Robinson ee5b16415e Add send_document network utility
It's a wrapper around requests.post that adds the correct user agent and silently captures common requests exceptions and returns them instead.
2016-09-05 22:58:08 +03:00
Jason Robinson c46114c6be Merge pull request #44 from jaywink/provider-display-name
Add mappings for Post.provider_display_name
2016-09-05 22:35:56 +03:00
Jason Robinson f979b8e91e Add mappings for Post.provider_display_name 2016-09-05 22:22:49 +03:00
Jason Robinson 0172690137 Merge pull request #43 from jaywink/to-user-optional
Make to_user optional in handle_create_payload
2016-09-05 22:15:36 +03:00