unique constraint uses equals not matches

This commit is contained in:
evilchili
2025-10-03 16:44:25 -07:00
parent 8ce642ba90
commit 120449386a
5 changed files with 137 additions and 46 deletions
+4 -3
View File
@@ -12,11 +12,12 @@
</head>
<body>
<nav>
<ul>
<li><a href="{{ url_for('index') }}">Home</a></li>
</ul>
{% for uri, stub in breadcrumbs %}
<span>&nbsp; / <a href="{{ app.config.VIEW_URI }}{{ uri }}">{{ stub }}</a></span>
{% endfor %}
</nav>
<nav>
Menu:
<ul>
{% block menu %}{% endblock %}
</ul>
+12 -3
View File
@@ -2,16 +2,25 @@
{% block menu %}
{% for child in page.pages %}
<li><a href="/{{page.stub}}/{{ child.stub }}">{{ child.title }}</a></li>
<li><a href="{{ app.config.VIEW_URI }}{{ child.uri }}">{{ child.title }}</a></li>
{% endfor %}
{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.body }}
<form method='POST'>
<input type="hidden" name="uid" value="{{ page.uid }}">
<h1>{{ page.doc_id }}: <input name='title' type='text' value="{{ page.title }}"></h1>
<h3>{{ app.config.VIEW_URI }}{{ page.parent.uri if page.parent else "/" }} <input name='stub' type='text' value='{{ page.stub }}'></h3>
<textarea name='body'>{{ page.body }}</textarea>
<input type=submit>
</form>
<pre>
{{ page }}
</pre>
<pre>
{{ app.web.config }}
</pre>
{% endblock %}