Wykres commitów

411 Commity (b574ca93c53ae6ec252f8e6a48e86b431dddf636)

Autor SHA1 Wiadomość Data
Marnanel Thurman b574ca93c5 remove TYPES array which was replaced by types.py 2019-07-09 00:06:16 +01:00
Marnanel Thurman 1698ccc357 find() creates Things marked as remote, rather than some weird
half-arsed replacement of its own.

python-mimeparse added to the requirements because fetch() needs it.
2019-07-05 17:26:21 +01:00
Marnanel Thurman 962e85c0f8 "is_local" param of create() replaces vague "sender" param.
Tests for particular fields by Thing type removed, pending
replacement with cleverer system from d_k/things.py.

Class imports for create() done in the importing code
rather than at the top of the file, which leaves a mess.
2019-07-05 17:23:50 +01:00
Marnanel Thurman d80a241b5d Added mention tracking. 2019-07-05 17:21:01 +01:00
Marnanel Thurman 6adddb39c3 Thing getitem/setitem honours Audiences 2019-07-03 21:01:45 +01:00
Marnanel Thurman 1450667b9a rm repetition 2019-07-03 21:01:33 +01:00
Marnanel Thurman 52b3491e66 Export AUDIENCE_FIELD_NAMES 2019-07-03 21:00:36 +01:00
Marnanel Thurman 44aeab91d1 Don't json-encode values twice.
_normalise_type_for_thing moved from create to Thing.
create doesn't worry about what kind of fields it's asking Thing to set.
Thing's setitem adds audiences correctly, though
  this requires it to save() as a side-effect
  if this is the first creation.
2019-07-03 12:59:21 +01:00
Marnanel Thurman 87f015eea5 Switching back to the old "other_fields" system
because it works much better with polymorphic models.
2019-07-03 00:48:58 +01:00
Marnanel Thurman 08d000f67a 'create' has moved 2019-07-02 21:44:13 +01:00
Marnanel Thurman 9ec4b84f8c move text and visibility to Item from Thing 2019-06-29 16:48:12 +01:00
Marnanel Thurman ca7b295a3d Old migrations deleted
(should have been committed earlier; oops)
2019-06-29 16:42:23 +01:00
Marnanel Thurman d79ce3ee94 types for polymorphic create()s 2019-06-29 16:41:51 +01:00
Marnanel Thurman 98520cd0ad create() produces instances of subtypes of Thing as appropriate. 2019-06-29 16:40:47 +01:00
Marnanel Thurman ca332a3396 Move to django-polymorphic. Everything gets simpler. Still cleaning up. 2019-06-27 17:19:02 +01:00
Marnanel Thurman a0d58da706 Remove things_for_testing; it's been irrelevant for a few months now! 2019-06-27 16:31:54 +01:00
Marnanel Thurman 1c98217b31 I have determined what it means, and it isn't relevant 2019-06-27 16:26:08 +01:00
Marnanel Thurman 496aca9a83 test_like is pretty much working (and it fails) 2019-06-27 16:23:41 +01:00
Marnanel Thurman 29db607c2c Added create_local_note(). Added default name for create_local_person(). 2019-06-27 16:16:38 +01:00
Marnanel Thurman fa367b4c36 Extra properties to meet the expectations of Mastodon tests.
Lots of ValueErrors converted to logged errors and None returns.
2019-06-27 16:15:37 +01:00
Marnanel Thurman 93a6f7a974 When an audience is None, store nothing, not the word "None".
Removed extraneous debug log statement.
2019-06-27 16:13:01 +01:00
Marnanel Thurman efc268ac23 __init__.py was missing 2019-06-27 16:12:33 +01:00
Marnanel Thurman 03db481b9a Tests based on Mastodon 2019-06-27 16:12:06 +01:00
Marnanel Thurman a7e7d43e30 if kepicreate creates a Create, it prints the created object too 2019-06-25 00:17:27 +01:00
Marnanel Thurman fb212e725e rm debug prints! 2019-06-25 00:12:50 +01:00
Marnanel Thurman 78fc41e54f __setitem__; side-effect for "create"; type normalisation refactored 2019-06-25 00:11:12 +01:00
Marnanel Thurman 0ee6e2970f Remove "id" field during create 2019-06-17 20:45:47 +01:00
Marnanel Thurman f73e8dfbd1 you can have no F=V pairs with kepicreate 2019-06-17 20:45:30 +01:00
Marnanel Thurman c89fb32dd9 management commands: kepicreate, kepilist 2019-06-17 20:38:18 +01:00
Marnanel Thurman ffbec4bd09 "pretty" property for pretty-printing a Thing.
__getitem__() returns None if its argument is not found.
__getitem__("number") returns the serial number.
2019-06-17 20:37:20 +01:00
Marnanel Thurman f2a5a3eca7 Delivery to collections 2019-06-15 19:13:43 +01:00
Marnanel Thurman febda23a04 match_querystring on test collections, otherwise paging fails 2019-06-15 00:41:05 +01:00
Marnanel Thurman e7b26ccd73 Refactor delivery into local and remote fns 2019-06-15 00:33:32 +01:00
Marnanel Thurman c8193491e2 test_remote_followers(), which fails at present
because delivery doesn't do collections yet
2019-06-14 21:18:22 +01:00
Marnanel Thurman 42a42dbce0 create_remote_collection(). Plus some new constants. 2019-06-14 21:09:43 +01:00
Marnanel Thurman 852a8541c0 "Public" and "as:Public" work as synonyms for the public collection.
Some outdated comments removed.
2019-06-13 19:38:26 +01:00
Marnanel Thurman ec6ffec965 Delivery test system greatly simplified. Basic tests added, which pass. 2019-06-13 18:50:55 +01:00
Marnanel Thurman 8e9193c796 Pass inbox name into local POST handler, as if it came in via HTTP 2019-06-13 18:49:55 +01:00
Marnanel Thurman 7d5b635012 rm confusing debug message 2019-06-08 23:33:21 +01:00
Marnanel Thurman ca144feeae Intermediate checkin; local delivery works a bit better 2019-06-08 23:27:55 +01:00
Marnanel Thurman d633ef4c08 fixed Audience debug messages to be similar to ThingField 2019-06-07 13:57:43 +01:00
Marnanel Thurman 02baeaa1f4 Thing adds Audiences for audience fields. Plus test. 2019-06-07 13:56:20 +01:00
Marnanel Thurman b0a5b78f75 missing comma 2019-06-07 13:53:08 +01:00
Marnanel Thurman 1841276ae3 Thing's debug logging looks more like Audience's 2019-06-05 00:13:57 +01:00
Marnanel Thurman 51b8d7f347 new Audience model, plus tests. Not yet linked in to Thing. 2019-06-05 00:07:05 +01:00
Marnanel Thurman 63a3a82356 Sorted ACTIVITY_TYPE_CHOICES per https://code.djangoproject.com/ticket/30505 2019-06-05 00:06:23 +01:00
Marnanel Thurman 82cd4671a5 rm spurious warn 2019-06-05 00:05:29 +01:00
Marnanel Thurman 954a6fb627 Using httpretty for testing delivery 2019-06-03 23:04:20 +01:00
Marnanel Thurman c15c38c287 calls to create() use the new param format 2019-06-03 23:04:08 +01:00
Marnanel Thurman 3eb0aa5666 mock_remote_object() gains "as_post" param 2019-06-03 23:03:09 +01:00