Marnanel Thurman
691f071f36
Skip all trilby_api tests for now.
2019-10-16 20:03:34 +01:00
Marnanel Thurman
1c34c919a3
Trilby admin also shows fields for AcActor.
...
The changes to admin.py write these fields;
the changes to forms.py read them.
2019-10-16 19:59:16 +01:00
Marnanel Thurman
9ba49e2573
remove the User.acct property. It's already done in AcActor
2019-10-16 19:58:48 +01:00
Marnanel Thurman
839ef851d0
actor['preferredUsername'] is the same as actor['username'] (but only for get at the moment)
2019-10-16 19:57:28 +01:00
Marnanel Thurman
eb0f92f334
kepi doesn't put Person in the admin
2019-10-16 19:57:03 +01:00
Marnanel Thurman
e10417d6e2
Valiant attempt to bring the trilby fixture up to date after 18 months
2019-10-16 19:56:21 +01:00
Marnanel Thurman
beb439dac1
More migrations that should have been checked in before
2019-10-14 21:14:31 +01:00
Marnanel Thurman
3b7f9ba329
Creating a TrilbyUser create its AcPerson automatically and links them.
2019-10-14 21:13:57 +01:00
Marnanel Thurman
d517243eb8
Add HomeTimeline to produce /api/v1/timelines/home.
...
Monkey-patch oauth2_provider so it doesn't block redirects by protocol.
(See comments for why.)
Authorization grant type for new apps is authorization-code
instead of password. I'm not sure why, but Tusky cares about this.
I shall find out whether other clients mind.
2019-10-12 21:30:06 +01:00
Marnanel Thurman
6e8e5f5475
Collection.get takes an AcActor and a list name.
...
The old system was becoming unworkable. This saves a lot of hassle.
2019-10-12 21:28:47 +01:00
Marnanel Thurman
9bf2c7d64e
Skipping the header test, and turning off the headers middleware.
...
This is because adding the headers breaks the test client.
Because there's no immediate problem which they solve, I'm
turning them off for now.
2019-10-12 21:27:25 +01:00
Marnanel Thurman
ee533cc015
More Mastodon compatibility properties for AcActor
2019-10-12 20:31:38 +01:00
Marnanel Thurman
810cc1bd89
TrilbyUser gains "acct" property
2019-10-12 20:31:07 +01:00
Marnanel Thurman
a93a8cec9b
WSGI_APPLICATION needs to include the project name
2019-10-12 20:30:06 +01:00
Marnanel Thurman
327eaf3384
AcActor gains some new fields for subscripting, for Mastodon compatibility
2019-10-11 13:01:22 +01:00
Marnanel Thurman
5dedf3c735
slight reorganisation of serialiser field definitions for clarity;
...
no substantitive changes
2019-10-11 12:58:27 +01:00
Marnanel Thurman
bbefb96303
__getattr__() on TrilbyUser passes through to the appropriate AcActor if it doesn't match anything in the TrilbyUser.
2019-10-11 12:57:30 +01:00
Marnanel Thurman
544e98e4a2
Further fixes to the kepi tests so they know they're under chapeau/kepi now
2019-10-11 12:57:03 +01:00
Marnanel Thurman
5733b60a5a
TrilbyUsers are one-to-one matched with kepi.AcPerson.
...
In other words, all the users Django knows about, kepi knows about too.
Note that this has broken the serialisers :/
When you create a TrilbyUser, the kepi.AcPerson is created automatically to match.
2019-10-09 18:47:44 +01:00
Marnanel Thurman
a75d86756d
trilby_api.TrilbyUser overrides AbstractUser but adds a link
...
to an AcPerson in kepi.
Lots of old irrelevant stuff removed from trilby_api
2019-10-09 18:31:11 +01:00
Marnanel Thurman
b011f1fb93
kepi tests moved into the kepi dir, and they all pass
2019-10-09 18:10:52 +01:00
Marnanel Thurman
98339716e3
Moving un_chapeau's login code here to chapeau.
2019-10-09 17:39:16 +01:00
Marnanel Thurman
50731c0446
kepi.validation imports kepi.find correctly
2019-10-09 17:08:31 +01:00
Marnanel Thurman
ed3b184c38
If chapeau.local_config.py isn't found, warn.
2019-10-09 17:02:08 +01:00
Marnanel Thurman
1941a769e8
kepi and trilby_api both live under chapeau
...
(as chapeau.kepi and chapeau.trilby_api).
Vast commit.
It runs, but not all the tests have been converted to the new layout.
Soon.
2019-10-09 16:45:22 +01:00
Marnanel Thurman
ab0bf88b4a
Merge branch 'master' into trilby
2019-10-08 15:36:10 +01:00
Marnanel Thurman
8c7628e670
more s/kepi/chapeau/, for setup.py
2019-10-08 15:35:51 +01:00
Marnanel Thurman
5524616371
trilby_api moves into chapeau/
2019-10-08 15:29:54 +01:00
Marnanel Thurman
797e31f8ea
Test for headers takes account of Atom advertisement
2019-10-08 15:29:30 +01:00
Marnanel Thurman
7f5fa1640e
Migration 0003 for kepi; don't know why this wasn't already in
2019-10-08 15:29:04 +01:00
Marnanel Thurman
cb952266c8
Merge branch 'master' into trilby
2019-10-08 13:50:04 +01:00
Marnanel Thurman
7356dca4e9
Including all the other chapeau modules in this repository.
...
Therefore, changing the name of the Django app to chapeau.
2019-10-08 13:30:33 +01:00
Marnanel Thurman
748e57049c
endpoints -> urlpatterns in trilby_api.urls
2019-10-05 16:07:15 +01:00
Marnanel Thurman
7ce35b14e0
overhaul of atom template XML so it works with kepi
2019-10-05 16:06:54 +01:00
Marnanel Thurman
dd7de191f3
trilby_api into PACKAGES
2019-10-05 16:02:20 +01:00
Marnanel Thurman
241aeceaed
Feed URL, profile page, and subscribe button added to webfinger.
2019-10-05 16:01:24 +01:00
Marnanel Thurman
4d950df6d7
Include trilby_api.urls in kepi.urls
2019-10-05 16:00:41 +01:00
Marnanel Thurman
5f9dcdd98b
Include Atom URL in the Actor view.
2019-10-05 16:00:25 +01:00
Marnanel Thurman
25313d0122
AcObject gains "updated" timestamp.
...
AcActor gains f_name.
AcObject implements "is_local" locally, so as to avoid unreasonably tight coupling with d_k.find.
AcActor loses "url" property, since it duplicated the superclass.
Lots of new AcActor.__getitem__ properties, to support the Atom feed template.
2019-10-05 15:57:40 +01:00
Marnanel Thurman
444600bdd4
item['language'] does something useful; __str__() etc access attributes directly, rather than through __getitem__, to avoid the danger of infinite loops
2019-10-05 15:55:21 +01:00
Marnanel Thurman
24849d3171
collection gains "contents" property to access its members
2019-10-05 15:54:48 +01:00
Marnanel Thurman
f1e5d18f2b
Merging trilby_api in (from un_chapeau).
...
Migrations work, and kepi's own tests run, but trilby's all fail.
2019-10-04 21:59:45 +01:00
Marnanel Thurman
52753c37d5
Added contribution guide and overview to docs
2019-10-04 17:44:51 +01:00
Marnanel Thurman
8da826e1e3
kepivenv -> kepienv
2019-10-03 01:02:01 +01:00
Marnanel Thurman
2127a65212
fix link in README
2019-10-02 23:36:26 +01:00
Marnanel Thurman
361657a18d
actually that was a daft idea; stick to markdown
2019-10-02 23:35:47 +01:00
Marnanel Thurman
5d43527ed6
Add installation guide, and rewrite README
2019-10-02 23:34:59 +01:00
Marnanel Thurman
43361fbe69
README in rst, not md
2019-10-02 23:33:13 +01:00
Marnanel Thurman
849ceb7cf2
add "localhost" to default settings so users can test easily
2019-10-02 23:32:16 +01:00
Marnanel Thurman
d2a4b01aee
add gunicorn to requirements
2019-10-02 23:23:30 +01:00