site: the design's colours over the wikis' high-contrast theme; .org inquiries
- site/colorlock.py: both XWikis force black and white with !important (a HIGH CONTRAST DARK THEME block in the skin's cssVariablesInit.css). On our pages only, the design's colours win: each inline colour made !important, and a stylesheet scoped to the page root (.ssos) for the rest. Used by site/com/build.py and site/org/build.py; the .com reinstalled with it. - site/org/inquiries (Captain Bob, 2026-11-07): the .com's inquiries go to an admin-only master/detail on the .org -- Inquiries.WebHome (Live Data table), one page per inquiry under Inquiries.Entries with a sheet and a status, PublicInquiry (public) filing them with its author's rights and echoing nothing a visitor sends; a hidden trap field for robots. The .com form posts there. Installed and tested: a guest's inquiry filed and deleted; one whose name and message were script macros was stored as text, nothing ran. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
This commit is contained in:
+4
-1
@@ -14,6 +14,9 @@ The {{html}} macro needs a page author with script rights. install.sh puts the p
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
|
||||
import colorlock # noqa: E402 the design's colours over the wiki's high-contrast theme
|
||||
|
||||
GITEA = "https://gitea.starshipos-f18.org/rajames/LithosAnanke"
|
||||
COM = "https://starshipos-f18.com/"
|
||||
ISSUES = GITEA + "/issues?state=open"
|
||||
@@ -301,7 +304,7 @@ def body(name, canvas):
|
||||
|
||||
|
||||
def write_wiki(name):
|
||||
html = body(name, False).replace("{accent}", ACCENT)
|
||||
html = colorlock.lock(body(name, False).replace("{accent}", ACCENT), "<div style=\"background: #0A1222")
|
||||
with open("%s.WebHome.xwiki" % name, "w") as f:
|
||||
f.write('{{html clean="false"}}\n%s\n%s\n{{/html}}\n' % (FONTS, html))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user