Marnanel Thurman
c82429f0c2
"activity" returns the found object, not a dictionary based on it
2019-05-25 00:31:09 +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
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
3e01e3ba75
AllUsersView
2019-05-21 19:24:22 +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
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
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
Marnanel Thurman
a789aa6064
Fixed tests for following/followers collections. They currently fail.
2019-05-19 20:44:33 +01:00
Marnanel Thurman
a217f8795d
Added the Following class back in.
2019-05-18 21:32:39 +01:00
Marnanel Thurman
53be3e3efc
Renaming django_kepi.Activity to django_kepi.Thing, preparatory to
...
merging it with d_k.ActivityModel.
2019-05-18 17:41:55 +01:00
Marnanel Thurman
ad3670549d
Fixed missing param in call to _collection_get()
2019-05-14 23:00:44 +01:00
Marnanel Thurman
deb6075986
Merged CollectionView into KepiView.
...
Split off get() from activity() because get() is usually the
same for all KepiViews.
2019-05-14 22:48:18 +01:00
Marnanel Thurman
84eaba4e02
Regularised the use of local URLs as local identifiers (via our
...
own dispatcher).
Local "find" tests now pass. Remote "find" tests don't pass yet.
2019-05-03 20:24:55 +01:00
Marnanel Thurman
171d9b51d3
Partial checkin. Still busy on this.
2019-04-28 21:17:10 +01:00
Marnanel Thurman
034a803851
Fiddling around trying to get tests/test_views written and passing.
...
Still a lot to do here!
2019-04-16 01:06:06 +01:00
Marnanel Thurman
c7564aabd6
First steps on getting test_inbox to pass.
...
IncomingMessage.waiting_for can be null.
d_k.views creates its own logger.
2019-04-10 20:43:37 +01:00
Marnanel Thurman
bee5d98fad
Fix to Inbox to remove use of Quarantine*, which has gone away.
...
Needs more thorough testing.
2019-04-10 20:11:29 +01:00
Marnanel Thurman
800dcaaf88
abolishing NeedToFetchException because it messes up debugging
2018-10-12 17:45:44 +01:00
Marnanel Thurman
2d03a62dbb
async_result success codeis are 0 or 1, not False or True. (bool("False") is True!)
...
async_result malformed body check isn't performed if success==0.
Using central logger.
2018-10-12 16:26:17 +01:00
Marnanel Thurman
990e5ece9f
intermediate
2018-10-12 00:59:44 +01:00
Marnanel Thurman
cfe269f72c
intermediate
2018-10-05 00:12:03 +01:00
Marnanel Thurman
5d30ed1af9
rm debug print
2018-10-03 20:53:12 +01:00
Marnanel Thurman
ec486e180e
various AsyncResult fixes; another intermediate checkin
2018-10-03 20:28:52 +01:00
Marnanel Thurman
ff44834b34
Intermediate checkin for AsyncResult
2018-10-03 19:36:39 +01:00
Marnanel Thurman
cb193f69d7
Some basic logging.
...
QuarantinedMessages remove themselves when they're accepted as Activities.
2018-09-27 17:35:41 +01:00
Marnanel Thurman
e061aba382
Messages with unresolved references don't cause an error for the sender.
2018-09-23 21:57:50 +01:00
Marnanel Thurman
2b29a8e8e2
Removed all the old Cobject stuff, at last. This confused
...
makemigrations so much that I killed all the existing migrations
and started again.
Activity fields representing key+value pairs all begin with "f_"
because it was getting confusing when only some of them did.
Activity.deserialize() renamed Activity.create().
The tests don't all pass at present, but they will soon.
2018-09-16 21:42:27 +01:00
Marnanel Thurman
75eb3d6764
QuarantinedMessage, and an InboxView to create them
2018-09-13 16:06:33 +01:00
Marnanel Thurman
3da527d639
intermediate
2018-09-05 23:09:11 +01:00
Marnanel Thurman
27c218e42b
Check both following and followed views
2018-09-01 22:54:51 +01:00
Marnanel Thurman
2ff911de96
The return of FollowersView
2018-09-01 18:19:10 +01:00
Marnanel Thurman
81a27fb853
ActivityObjectView delegates to its subclass for content via objectDetails().
...
Actor has a string representation.
FollowersView removed for now, because testing it is too fiddly
(it's not obvious how to construct the URL for the test client
now that we're using URLs as identifiers). It may be back later.
Version number bump.
2018-08-31 17:55:57 +01:00
Marnanel Thurman
dd8daa7f66
Added tests to ensure that other apps can make to our data.
...
Reworked Actor: the only thing we know about an Actor is their URL.
Removed tests for Followers collections because it's hard to test
without subclassing the view. I may put it back in later.
2018-08-30 00:59:38 +01:00
Marnanel Thurman
91d9066f53
make_query_page() and render() become methods of ActivityObjectView;
...
CollectionView becomes a subclass of ActivityObjectView in order to
use them.
2018-08-28 13:16:07 +01:00
Marnanel Thurman
c04a83e442
intermediate
2018-08-27 18:53:52 +01:00
Marnanel Thurman
507a39ee0e
fixed expression deciding when to include 'next' in collection pages
2018-08-26 22:44:27 +01:00
Marnanel Thurman
f310a57672
oops, follower, not following
2018-08-26 21:03:56 +01:00
Marnanel Thurman
da0af79011
_stringify_object
2018-08-26 21:03:00 +01:00
Marnanel Thurman
f31caf1264
intermediate
2018-08-26 20:07:27 +01:00
Marnanel Thurman
9157c2f215
intermediate
2018-08-26 19:27:45 +01:00
Marnanel Thurman
26720a9b69
fix urldefrag call
2018-08-25 00:07:36 +01:00
Marnanel Thurman
dbf8f149c0
intermediate
2018-08-25 00:04:08 +01:00
Marnanel Thurman
d3e90ec4c7
intermediate
2018-08-24 19:29:35 +01:00
Marnanel Thurman
38fbaf3366
intermediate
2018-08-24 18:13:57 +01:00