<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swap/sw/db.py, branch untested</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/'/>
<entry>
<title>Utilise jinja inheritance to streamline in/outbox</title>
<updated>2021-08-02T14:41:06+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-08-01T14:27:21+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=bafe42275e65b98951dd3335342e38d7bf1b1db5'/>
<id>bafe42275e65b98951dd3335342e38d7bf1b1db5</id>
<content type='text'>
Using jinja's templating extensions, we can recreate the activitypub
inheritance hierarchy without using clunky python OO.

Extending from multiple template files in sequence might cause
unnecesary IO to slow response times; if this ever becomes an issue, it
should be possible to pre-process some of the templating since a lot of
it will be based on constant expressions (such as @context and type).

I think some formatting fixes leaked into this commit; oops! I'm leaving
this note here in the hopes that if I ever want to clean this up, I can
locate this commit easier.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using jinja's templating extensions, we can recreate the activitypub
inheritance hierarchy without using clunky python OO.

Extending from multiple template files in sequence might cause
unnecesary IO to slow response times; if this ever becomes an issue, it
should be possible to pre-process some of the templating since a lot of
it will be based on constant expressions (such as @context and type).

I think some formatting fixes leaked into this commit; oops! I'm leaving
this note here in the hopes that if I ever want to clean this up, I can
locate this commit easier.
</pre>
</div>
</content>
</entry>
<entry>
<title>Display inbox/outbox contents correctly</title>
<updated>2021-07-31T19:30:35+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-31T14:06:45+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=68703447d8fc57c7b77b66a6acc05bf22fb7d71b'/>
<id>68703447d8fc57c7b77b66a6acc05bf22fb7d71b</id>
<content type='text'>
As per previous commit, the contents of inboxes and outboxes were not
being properly displayed, which was difficult to test because of there
being very few items in the test DB.

This commit includes moving functions such as prepared_output into a new
file sw/util.py; including them in sw/users.py made little sense and
caused a circular dependency with sw/auth.py.

A stub function for item info retreival has also been created, in new
file sw/items.py.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As per previous commit, the contents of inboxes and outboxes were not
being properly displayed, which was difficult to test because of there
being very few items in the test DB.

This commit includes moving functions such as prepared_output into a new
file sw/util.py; including them in sw/users.py made little sense and
caused a circular dependency with sw/auth.py.

A stub function for item info retreival has also been created, in new
file sw/items.py.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add more inbox/outbox tests</title>
<updated>2021-07-11T14:23:35+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-10T21:41:09+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=c4e848c21c028ca7c52846ea1abd7f3a38aff7d6'/>
<id>c4e848c21c028ca7c52846ea1abd7f3a38aff7d6</id>
<content type='text'>
Still not even total coverage!

Need to:

- write more tests for outbox manipulation
- look into and implement receiving content from other servers (+ write
  tests)

off the top of my head.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Still not even total coverage!

Need to:

- write more tests for outbox manipulation
- look into and implement receiving content from other servers (+ write
  tests)

off the top of my head.
</pre>
</div>
</content>
</entry>
<entry>
<title>Begin work on adding user interaction</title>
<updated>2021-07-06T18:30:31+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-06T18:30:31+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=0a0007dee01f2bf17371967105a6ab3c43f85550'/>
<id>0a0007dee01f2bf17371967105a6ab3c43f85550</id>
<content type='text'>
This commit adds support for getting information about a user, as well
as accessing their inbox (not actually getting a CollectionPage yet,
though).

Currently the inbox does not require the right user to be logged in to
access their personal inbox; this should be fixed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds support for getting information about a user, as well
as accessing their inbox (not actually getting a CollectionPage yet,
though).

Currently the inbox does not require the right user to be logged in to
access their personal inbox; this should be fixed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Initial commit</title>
<updated>2021-07-03T00:18:13+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-03T00:18:13+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=7c5c6c52250ca57257ab4af2cc9cdf4425595ec0'/>
<id>7c5c6c52250ca57257ab4af2cc9cdf4425595ec0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
