Wykres commitów

47 Commity (334d6902e369e510e68e42600e265c65319ce328)

Autor SHA1 Wiadomość Data
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 85d6f9c03d Release 0.8.0 2016-10-09 14:58:21 +03:00
Jason Robinson c5becee7fe Rename library to federation
Less typing saves lives.
2016-10-04 22:07:24 +03:00
Jason Robinson 4edca37168 Init documentation
Closes #34
2016-10-02 23:07:39 +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 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 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 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 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 476c6114ec Fix hcard selectors in parse_profile_from_hcard
Closes #39
2016-09-13 11:55:42 +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 4b01542fd4 Add changelog for user.private_key change 2016-09-12 21:58:28 +03:00
Jason Robinson 8d62831ae9 Release 0.5.0 2016-09-05 23:38:33 +03:00
Jason Robinson 6cf06e915e Add Diaspora entity utility get_full_xml_representation 2016-09-05 23:33:35 +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 f979b8e91e Add mappings for Post.provider_display_name 2016-09-05 22:22:49 +03:00
Jason Robinson c8f436cd4e Make to_user optional in handle_create_payload
Public content does not require a recipient.
2016-09-05 22:09:08 +03:00
Jason Robinson b2011b3fac Release 0.4.1 2016-09-04 23:15:39 +03:00
Jason Robinson 71ff2e7943 Changelog for #41 2016-09-04 23:06:25 +03:00
Jason Robinson 1b991a4555 Release 0.4.0 2016-07-24 22:06:18 +03:00
Jason Robinson b64031ef29 Add remote profile fetcher
High level method to fetch a remote profile. Currently falls back to Diaspora protocol as no others are supported.

Returns a Profile entity.

Closes #15
2016-07-24 20:25:16 +03:00
Jason Robinson 3e73658d65 Add 'guid' and 'public_key' as required for DiasporaHCard generator
Leaving these out was a mistake in the initial implementation. Diaspora has these in at least 0.6 development branch.
2016-07-24 14:51:29 +03:00
Jason Robinson 7b458b7fc7 Split federation.controllers to inbound and outbound 2016-07-23 13:37:56 +03:00
Jason Robinson f8cc459057 Add changelog entry for #33
[ci skip]
2016-07-23 00:23:38 +03:00
Jason Robinson 3c27abf0a9 Add Profile entity
Closes #24
2016-07-20 00:04:46 +03:00
Jason Robinson bf348e9544 Convert outbound entities to correct protocol types
When sending an entity, first convert it to the correct entity using the protocol entities. If a suitable entity is not found, raise an error.

Closes #27
2016-07-19 21:51:59 +03:00
Jason Robinson 08c1d4fa91 Add Relationship entity
Relationship base entity which represents relationships between two handles. Types can be following, sharing, ignoring and blocking. The Diaspora counterpart, DiasporaRequest, which represents a sharing/following request is outwards a single entity, but incoming a double entity, handled by creating both a sharing and following version of the relationship.

Closes #26
2016-07-18 22:39:17 +03:00
Jason Robinson f69e7bfd8a Refactor Diaspora protocol sender handle fetching
Diaspora private messages don't have a plain text sender handle in the header. One must first
open the message (without verifying it), fetch the sender handle and then verify the content.

Closes #21
2016-07-17 21:02:13 +03:00
Jason Robinson 3c6c7f6145 Unlock more direct dependency version ranges
Unlock most of the direct dependencies to a certain version range. Unlock all of test requirements to any version.
2016-05-22 21:43:23 +03:00
Jason Robinson a6863680ef Release 0.3.2 2016-05-09 22:04:08 +03:00
Jason Robinson f1eadbf8d7 Changelog for changed dependencies 2016-05-09 21:58:15 +03:00
Jason Robinson fde1e988da Don't raise on Post.tags if Post.raw_content is None
Fixes #17
2016-05-09 21:35:42 +03:00
Jason Robinson cddebf87cd Install all test files with package
Test factories can be useful in building project tests.
2016-04-16 22:28:10 +03:00
Jason Robinson de87e7e210 Release 0.3.1 2016-04-13 22:14:42 +03:00
Jason Robinson 3e2a77c490 Add support for generating .well-known/nodeinfo
Was forgotten from previous release.

Refs: #11
2016-04-13 21:59:26 +03:00
Jason Robinson 1411c1aadd Release 0.3.0 2016-04-13 18:47:30 +03:00
Jason Robinson 69e179f506 Add support for NodeInfo document generation
Support for generating NodeInfo documents using the generator `federation.hostmeta.generators.NodeInfo`. Strict validation is skipped by default, but can be enabled by passing in `raise_on_validate` to the `NodeInfo` class. By default a warning will be generated on documents that don't conform with the strict NodeInfo values. This can be disabled by passing in `skip_validate` to the class.
2016-04-12 22:46:43 +03:00
Jason Robinson e8cc4d7bdd Release 0.2.0 2016-04-09 13:56:17 +03:00
Jason Robinson 36dac79121 Add a changelog [ci skip] 2016-04-06 22:53:07 +03:00