Ben Kurtovic
3de23628b7
Switching a bit of code from client-side to server-side.
- All POTD logic is now in Python instead of JS.
- Removed EarwigBackgroundCache cookie (now stored in a new `background` table in the database).
- Added EarwigScreenCache cookie
- Increase cookie life from a year to three.
pirms 12 gadiem
Ben Kurtovic
8dd5687ab1
Testing a potential bugfix.
pirms 12 gadiem
Ben Kurtovic
f3ddd8f700
Some adjustments to reduce HTML output size.
pirms 12 gadiem
Ben Kurtovic
0217eaad8d
Some escapes to close potential security, plus a couple bugfixes.
pirms 12 gadiem
Ben Kurtovic
3b9fa8c143
Needs page and result, not just page.
pirms 12 gadiem
Ben Kurtovic
b5908160bf
Move copyvio error message to top. Order cookies in an interesting way.
pirms 12 gadiem
Ben Kurtovic
68c3bd9d65
Do cookie updates before we generate the header.
pirms 12 gadiem
Ben Kurtovic
10364d1914
Don't stick quotes around 'checked'
pirms 12 gadiem
Ben Kurtovic
ae2713e040
Apparently I can't make a single commit without at least five typos.
pirms 12 gadiem
Ben Kurtovic
37cb1f568c
Fix default behavior.
pirms 12 gadiem
Ben Kurtovic
21d8666589
Syntax!
pirms 12 gadiem
Ben Kurtovic
1523c2401f
Implement 'background' option plus background images.
pirms 12 gadiem
Ben Kurtovic
833bdc6415
Support other backgrounds.
pirms 12 gadiem
Ben Kurtovic
3cf62618b2
More adjustments.
pirms 12 gadiem
Ben Kurtovic
a68e63af4b
Move status box.
pirms 12 gadiem
Ben Kurtovic
94d266e740
Get around Mako bug that doesn't support try/else
pirms 12 gadiem
Ben Kurtovic
13d140d899
Format cookies encoding JSON nicely.
pirms 12 gadiem
Ben Kurtovic
eceead74bb
Updates, mostly in cookies and settings.
pirms 12 gadiem
Ben Kurtovic
bc4c2de763
Fixing cookie bug.
pirms 12 gadiem
Ben Kurtovic
cb323f8ae8
Some cleanup
pirms 12 gadiem
Ben Kurtovic
4ef8900b29
Debug stuff
pirms 12 gadiem
Ben Kurtovic
0fad121316
Support GET and POST in query.
pirms 12 gadiem
Ben Kurtovic
e223412e79
Ignore cookies set by other TS services.
pirms 12 gadiem
Ben Kurtovic
7ec50e1668
Fix.
pirms 12 gadiem
Ben Kurtovic
3e934fbaef
Massively update cookie handling.
pirms 12 gadiem
Ben Kurtovic
066dc9504f
Use cookies to store default site.
pirms 12 gadiem
Ben Kurtovic
5f8c8307fc
Well, this seems a bit silly.
pirms 12 gadiem
Ben Kurtovic
5789316300
cookie.key, not cookie.name; whoops
pirms 12 gadiem
Ben Kurtovic
9677390ea3
More work on the settings page.
pirms 12 gadiem
Ben Kurtovic
309cb30358
Beginning work on a settings page.
pirms 12 gadiem
Ben Kurtovic
f11bf7198c
Oops, these are objects with values.
pirms 12 gadiem
Ben Kurtovic
b2910d5754
Grammar
pirms 12 gadiem
Ben Kurtovic
79a938f3b9
Cookies to store state of collapsable box.
pirms 12 gadiem
Ben Kurtovic
8cce98fc8f
Query object for storing parameters in a structured manner.
pirms 12 gadiem
Ben Kurtovic
c238cfaac5
Fixing the return values of copyvios.main().
pirms 12 gadiem
Ben Kurtovic
b4b5ac4f93
Restructure into an actual package that makes sense.
pirms 12 gadiem
Ben Kurtovic
80e224d768
Move support.copyvios to copyvios
pirms 12 gadiem
Ben Kurtovic
9240124bde
Context cleanup.
pirms 12 gadiem
Ben Kurtovic
0f3414c576
Refactor the last bit of parsing code into support.copyvios.
Will clean up in a bit.
pirms 12 gadiem
Ben Kurtovic
2c89d9c5dd
Underscores in the names of everything "private".
pirms 12 gadiem
Ben Kurtovic
420a1708e0
Refactor get_site() to copyvios.mako directly instead of the checker.
pirms 12 gadiem
Ben Kurtovic
bed02a87f0
Relative imports
pirms 12 gadiem
Ben Kurtovic
f58465718e
Fixing contexts
pirms 12 gadiem
Ben Kurtovic
5bff019edc
Trying a radical restructuring...
pirms 12 gadiem
Ben Kurtovic
969badc4a3
Only display "bypass cache" option if the result was actually cached.
pirms 12 gadiem
Ben Kurtovic
bcb1756510
Check existence in a way that we won't make unnecessary queries.
pirms 12 gadiem
Ben Kurtovic
41165fcdac
Only escape site names if they contain characters outside of the BMP.
Also doing some cleanup.
pirms 12 gadiem
Ben Kurtovic
b0a6da8b36
Ignore fishbowl wikis, because we can't log in to them.
pirms 12 gadiem
Ben Kurtovic
1368a19a19
Support for closed or private wikis where we can't create an account.
pirms 12 gadiem
Ben Kurtovic
4e747f0f10
A couple more fixes.
pirms 12 gadiem