<%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Settings'"/>\ <%namespace module="toolserver.settings" import="main"/>\ <%! from json import dumps, loads %> <% bot, status, langs, projects = main(environ, headers, cookies) %> % if status:

${status}

% endif

Settings

This page contains some configurable options for this Toolserver site. Settings are saved as cookies. You can view and delete all cookies generated by this site at the bottom of this page.

<% background_options = [ ("plain-brown", "Use a plain tiled background (brown version)."), ("plain-blue", "Use a plain tiled background (blue version)."), ("potd", 'Use the current Wikimedia CommonsPicture of the Day, unfiltered. Certain POTDs may be unsuitable as backgrounds due to their aspect ratio or subject matter (generally portraits do not work well).'), ("list", 'Randomly select from a subset of previous Commons Pictures of the Day that work well as widescreen backgrounds, refreshed daily (default).'), ] selected = cookies["EarwigBackground"].value if "EarwigBackground" in cookies else "list" %> % for i, (value, desc) in enumerate(background_options): % if i == 0: % else: % endif % endfor
Default site: http:// . .org
Background:  ${desc}

Cookies

% if cookies: % for cookie in cookies.itervalues(): % try: <% lines = dumps(loads(cookie.value), indent=4).splitlines() %> % except ValueError: % endtry % endfor
${cookie.key | h} % for line in lines:
${line | h}
% endfor
${cookie.value | h}
% else:

No cookies!

% endif <%include file="/support/footer.mako" args="environ=environ, cookies=cookies"/>