<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swap/sw/templates/base.html, 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>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 templates</title>
<updated>2021-07-30T18:35:08+00:00</updated>
<author>
<name>Tom Harley</name>
</author>
<published>2021-07-30T18:35:08+00:00</published>
<link rel='alternate' type='text/html' href='https://www.magnostherobot.co.uk/git.cgi/personal-projects/swap/commit/?id=c77d6a4d4a1d628788be73491aa7fa4e4fdcff05'/>
<id>c77d6a4d4a1d628788be73491aa7fa4e4fdcff05</id>
<content type='text'>
Rather than using jsonify on a dict, the system now uses render_template
on json documents. This gives the ability to extend previous files
(which might be useful for activitypub features), and also enables using
different templates for different filetypes.

Supplied are templates for accessing inboxes and outboxes in JSON-LD and
HTML.

The "items" field in get_user_inbox_page.json and
get_user_outbox_page.json might be currently borked.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than using jsonify on a dict, the system now uses render_template
on json documents. This gives the ability to extend previous files
(which might be useful for activitypub features), and also enables using
different templates for different filetypes.

Supplied are templates for accessing inboxes and outboxes in JSON-LD and
HTML.

The "items" field in get_user_inbox_page.json and
get_user_outbox_page.json might be currently borked.
</pre>
</div>
</content>
</entry>
</feed>
