Marnanel Thurman
|
b6fc2812d5
|
Improved headers handling in message validation
|
2019-05-29 09:15:16 +01:00 |
Marnanel Thurman
|
2f5e77c85a
|
Debug logging
|
2019-05-29 09:15:00 +01:00 |
Marnanel Thurman
|
cb9e99a208
|
Follow events cause automatic Accepts if the flag is set for that.
create() can handle initial values which are lists.
|
2019-05-29 01:09:58 +01:00 |
Marnanel Thurman
|
3d7fd94f51
|
key_name().
The pk of thing is called url, not id.
|
2019-05-29 01:09:15 +01:00 |
Marnanel Thurman
|
ddb65c42b0
|
export Actor
|
2019-05-29 01:08:57 +01:00 |
Marnanel Thurman
|
a96d2a2a85
|
__str__() split into __str__() and __repr__(). RemoteItem param is str()ified before use.
|
2019-05-29 01:08:07 +01:00 |
Marnanel Thurman
|
d4a1b5707c
|
Sole inboxes were using the address of the shared inbox.
Improved debug logging about server response.
|
2019-05-29 01:06:53 +01:00 |
Marnanel Thurman
|
38512de494
|
ActorView is a specialised ThingView
|
2019-05-28 17:50:32 +01:00 |
Marnanel Thurman
|
31cee0ae93
|
More helpful error message if the param is of the wrong type
|
2019-05-28 17:49:51 +01:00 |
Marnanel Thurman
|
982fa47915
|
Add auto_follow flag (not implemented yet)
|
2019-05-27 21:17:29 +01:00 |
Marnanel Thurman
|
1b0b08d8ec
|
Add the Actor model
|
2019-05-27 21:17:13 +01:00 |
Marnanel Thurman
|
5fd8c5f0db
|
Anchored the regex
|
2019-05-25 18:42:09 +01:00 |
Marnanel Thurman
|
ca306414ac
|
fixed field name
|
2019-05-25 18:40:27 +01:00 |
Marnanel Thurman
|
1e32dcefe8
|
Read the publicKey field for an Actor to determine its public key,
since it might be local or remote.
|
2019-05-25 18:32:24 +01:00 |
Marnanel Thurman
|
66355d1acf
|
Call validation properly on inbox messages
|
2019-05-25 18:16:47 +01:00 |
Marnanel Thurman
|
09180cc44e
|
Unsigned messages are logged and dropped.
Keys are properties of the Actor object, not subscripted items.
(Otherwise the view might accidentally send them out!)
|
2019-05-25 18:14:59 +01:00 |
Marnanel Thurman
|
51a9377fda
|
renamed actor_details to actor, since it's an actual object now
|
2019-05-25 18:14:36 +01:00 |
Marnanel Thurman
|
5699007838
|
redo kepi's migrations, since they got tangled
|
2019-05-25 18:13:52 +01:00 |
Marnanel Thurman
|
c82429f0c2
|
"activity" returns the found object, not a dictionary based on it
|
2019-05-25 00:31:09 +01:00 |
Marnanel Thurman
|
824c082011
|
Partial checkin; renaming d_k.tasks to d_k.deliver now we've
split validation away from it.
|
2019-05-24 20:40:02 +01:00 |
Marnanel Thurman
|
4bb225c4e8
|
Actor class, and crypto for it, though we don't use them yet in this branch
|
2019-05-24 20:37:02 +01:00 |
Marnanel Thurman
|
52f3a50444
|
validation goes back in django_kepi.validate
|
2019-05-24 20:31:51 +01:00 |
Marnanel Thurman
|
745ea99255
|
Remove admin for django_kepi (for now, anyway)
|
2019-05-24 20:22:34 +01:00 |
Marnanel Thurman
|
8e7207347e
|
rm activity_id, which is from an old design
|
2019-05-22 18:27:37 +01:00 |
Marnanel Thurman
|
8a77d0f774
|
Task tests working again, except for validation.
We'll need to store the private keys in a separate table.
|
2019-05-22 18:06:20 +01:00 |
Marnanel Thurman
|
c6744b0999
|
RemoteItem made into a subclass of dict, which makes everything simpler.
The local_only param of find() made optional.
|
2019-05-22 17:40:23 +01:00 |
Marnanel Thurman
|
47dfbb5d1d
|
If a KepiView.activity() returns None, KepiView.get() treats it as a 404
|
2019-05-22 02:20:13 +01:00 |
Marnanel Thurman
|
155843f3c1
|
it's the logger
|
2019-05-22 02:17:45 +01:00 |
Marnanel Thurman
|
02965beef6
|
some stray Thing.uuids fixed to Thing.numbers
|
2019-05-22 02:16:38 +01:00 |
Marnanel Thurman
|
465ecbbd89
|
Restarting with d_k migrations because it got itself tied in knots.
|
2019-05-22 02:10:30 +01:00 |
Marnanel Thurman
|
c7ce673b00
|
Primary key for a Thing is an 8-digit hex number, not a UUID.
|
2019-05-22 02:10:07 +01:00 |
Marnanel Thurman
|
978a7d2f15
|
ThingView can have id or name in kwargs
|
2019-05-22 00:33:58 +01:00 |
Marnanel Thurman
|
d9fa99f3b5
|
fiddling around with imports to get things in the right modules
|
2019-05-22 00:23:59 +01:00 |
Marnanel Thurman
|
45e5662e78
|
Removed create(), which was accidentally similar to d_k.models.create().
Removed most of the type registry, since we're doing it a different way now.
|
2019-05-22 00:23:06 +01:00 |
Marnanel Thurman
|
3e01e3ba75
|
AllUsersView
|
2019-05-21 19:24:22 +01:00 |
Marnanel Thurman
|
1014c528d5
|
Include name in activity_form. Don't include fields whose value is the empty string.
|
2019-05-21 19:23:23 +01:00 |
Marnanel Thurman
|
c42d5c8170
|
Remove AsyncResultView because async tasks access the db directly now.
|
2019-05-21 19:10:40 +01:00 |
Marnanel Thurman
|
e28641d222
|
Following and follower views pick the correct fields out of the Following object,
and don't list pending requests.
Simplified debug logging.
|
2019-05-21 19:04:36 +01:00 |
Marnanel Thurman
|
da617e9522
|
Side-effects for Follow, Accept, and Reject implemented.
Debug logging simplified somewhat.
|
2019-05-21 19:04:05 +01:00 |
Marnanel Thurman
|
35ae4ba5a8
|
Added request(), accept(), and reject().
Also, Following.__str__() had the "pending" messages backwards.
|
2019-05-21 19:03:07 +01:00 |
Marnanel Thurman
|
d63e66259a
|
Simplified debug logging
|
2019-05-21 19:02:49 +01:00 |
Marnanel Thurman
|
3ab1531f50
|
URL paths for objects go to ThingView, not KepiView (which is the superclass)
|
2019-05-21 18:10:23 +01:00 |
Marnanel Thurman
|
d7453210b0
|
ThingObjectView renamed to ThingView
|
2019-05-21 18:10:12 +01:00 |
Marnanel Thurman
|
1d55d73be8
|
enhance error message
|
2019-05-21 18:05:37 +01:00 |
Marnanel Thurman
|
ef246d94a8
|
Partial commit of Thing.__getitem__
|
2019-05-19 22:16:47 +01:00 |
Marnanel Thurman
|
0306ee2abf
|
add remote_only flag
|
2019-05-19 22:16:19 +01:00 |
Marnanel Thurman
|
bcc67c2457
|
export is_local
|
2019-05-19 22:02:03 +01:00 |
Marnanel Thurman
|
a615993695
|
clearer debug messages for object creation
|
2019-05-19 21:23:41 +01:00 |
Marnanel Thurman
|
4fdfb4d68d
|
Persons must be "Person"s, obviously
|
2019-05-19 21:23:19 +01:00 |
Marnanel Thurman
|
852dd08678
|
Put the "name" field into Thing, as "f_name".
This means error messages can display an understandable name for a Thing.
It also makes queries a bit easier.
|
2019-05-19 20:56:41 +01:00 |