Commit Graph

683 Commits

Author SHA1 Message Date
Martin Zimmermann
1f051bfabc http://javascript.about.com/od/problemsolving/a/modulobug.htm 2014-07-25 16:02:56 +02:00
Martin Zimmermann
5da9f4a410 fix base64 padding 2014-07-25 15:46:32 +02:00
Martin Zimmermann
ea5aa0e80f use new signer and strip trailing base64 padding 2014-07-25 13:45:26 +02:00
Martin Zimmermann
090c01bf8a disable zlib compression in signer 2014-07-25 11:21:05 +02:00
Nicolas Le Manchet
d41ab31b3d Add French translation for auth 2014-07-24 10:59:43 +02:00
Nicolas Le Manchet
8550859366 Use auth cookie in the client 2014-07-24 10:31:07 +02:00
Martin Zimmermann
f42e70c768 max_age is optional now 2014-07-24 10:15:22 +02:00
Martin Zimmermann
8d71ad6c1c add dummy option for auth 2014-07-23 19:00:52 +02:00
Martin Zimmermann
701ea7058c add itsdangerous' URLSafeTimedSerializer parser
Parse and return serialized datastructure, if not expired yet. Does not
validate the signature.

    lib.itsdangerous("WzIsIjg1MTM2Yzc5Y2JmOWZlMzZiYjlkMDVkMDYzOWM3MGMyNjVjMThkMzciXQ.BrF35w.IoiMIKcqb2Dgy4Gq7uYXSojcVSM"));
2014-07-23 18:58:46 +02:00
Martin Zimmermann
2001ed423b limit variable scope 2014-07-23 17:23:18 +02:00
Nicolas Le Manchet
bf5fc622ba Remove cookie name from configuration 2014-07-23 15:30:19 +02:00
Nicolas Le Manchet
b2a34caa66 Fix authentication for edit 2014-07-23 12:42:05 +02:00
Nicolas Le Manchet
7bf46d9b53 Add auth decorator to delete, edit, like/dislike 2014-07-23 10:20:01 +02:00
Nicolas Le Manchet
33741b9d2d Create the auth decorator 2014-07-22 17:41:23 +02:00
Nicolas Le Manchet
9d63498def Rename sign in config parameter 2014-07-22 16:27:17 +02:00
Nicolas Le Manchet
2347b41647 Check auth to hide the form fields 2014-07-22 16:12:34 +02:00
Nicolas Le Manchet
7174c6a686 Update .gitignore 2014-07-22 13:01:30 +02:00
Nicolas Le Manchet
43d8ae702d Update config sample to work with SQLAlchemy 2014-07-22 09:58:29 +02:00
Martin Zimmermann
9aa1e9544d add SQLAlchemy to requirements 2014-07-21 23:24:34 +02:00
Martin Zimmermann
131951c976 python3 compatibility 2014-07-21 23:24:22 +02:00
Martin Zimmermann
7a3251ddfc refactor and migration to SQLAlchemy
* split db/view into model, controller and views
* use SQLAlchemy for comments, threads and preferences
2014-07-21 22:58:42 +02:00
Martin Zimmermann
7886c20aef Merge branch 'master' into dev
Conflicts:
	MANIFEST.in
	docs/docs/install.rst
	isso/tests/test_html.py
2014-07-14 20:03:50 +02:00
Martin Zimmermann
e02687a066 remove superscript extension from defaults (again) 2014-07-14 19:38:00 +02:00
Martin Zimmermann
392add88e6 disable intra emphasis 2014-07-14 19:34:40 +02:00
Martin Zimmermann
f0d1958cc0 Merge branch 'legacy/0.9'
Conflicts:
	CHANGES.rst
	docs/docs/install.rst
	setup.py
2014-07-13 11:26:23 +02:00
Martin Zimmermann
a89f228477 fix virtualenv path, add yum/apt-get hints and AUR package 2014-07-13 11:22:02 +02:00
Martin Zimmermann
7f82745cd0 Back to development: 0.9.5 2014-07-09 23:23:42 +02:00
Martin Zimmermann
203f9c7c1a Preparing release 0.9.4 2014-07-09 23:23:30 +02:00
Martin Zimmermann
978d22e77e fix wrong status code type 2014-07-09 23:23:12 +02:00
Martin Zimmermann
ce9781df51 Merge branch 'legacy/0.9'
Conflicts:
	CHANGES.rst
	isso/core.py
	isso/dispatch.py
	setup.py
2014-07-09 12:37:53 +02:00
Martin Zimmermann
b59f650c99 Back to development: 0.9.4 2014-07-09 09:40:48 +02:00
Martin Zimmermann
d2769d73b4 Preparing release 0.9.3 2014-07-09 09:40:35 +02:00
Martin Zimmermann
261d0e4985 update changelog 2014-07-09 09:40:21 +02:00
Martin Zimmermann
35acf1e17e from __future__ import unicode_literals 2014-07-09 09:19:48 +02:00
Martin Zimmermann
ee8a84c0b2 add CSS for blockquote and pre 2014-07-06 19:39:19 +02:00
Martin Zimmermann
ad9384e8d7 preserve HTML tags while editing comments 2014-07-06 19:29:42 +02:00
Martin Zimmermann
0c8ec38dda don't scrollIntoView on expanding comments
A regression introduced in 94ee6a69
2014-07-06 19:13:58 +02:00
Martin Zimmermann
9674afbeed remove isso.css from pypi distribution 2014-07-06 19:01:02 +02:00
Martin Zimmermann
9fa7edb74b add version fallback, closes #102 2014-07-06 18:52:20 +02:00
Martin Zimmermann
3975227ada Revert "border-radius only for first and last input"
If input fields are not close enough to each other, it looks weird. Also
it didn't work in mobile view.

This reverts commit 77d40a99eb.
2014-07-06 18:39:59 +02:00
Martin Zimmermann
b2b6af24d6 fix clode block generation
added fenced code blocks to default extension list
2014-07-06 18:34:06 +02:00
Martin Zimmermann
d472262fee add SQLite3-based queue 2014-07-02 18:08:12 +02:00
Martin Zimmermann
80cbf2676f drop Python 2.6
* no timedelta.total_seconds
* no functools.total_ordering

EOL.
2014-06-28 18:21:44 +02:00
Martin Zimmermann
4f152d03ac remove uWSGI/Process/Threading mixin
* atexit is ignored by uWSGI and the worker thread can not exit
* queue API and naming is not final

Gunicorn ignores an error on shutdown:

    Exception SystemExit: 0 in <module 'threading' from
    '/usr/lib64/python2.7/threading.pyc'> ignored
2014-06-28 18:06:20 +02:00
Martin Zimmermann
10960ecf1e add in-memory queue, worker and task skeleton 2014-06-28 12:39:29 +02:00
Martin Zimmermann
1e542e612a move total_seconds to utilities 2014-06-28 12:21:58 +02:00
Martin Zimmermann
a551271743 cache processed HTML
The sanitizer is written in Python and rather slow for many comments
2014-06-27 15:45:12 +02:00
Martin Zimmermann
88689c789a connection pooling and new cache implementations
* add a wrapper around `sqlite3` to enable connection pooling across
  multiple threads.

  Most tests now use a in-memory database which speeds things (slightly)
  up. The database wrapper is now uncoupled from the actual database
  connection.

* split cache framework from core.Mixin into a separate package
  `isso.cache`. The dependency on `werkzeug.contrib` has been removed to
  ease a possible transition to a different web framework later.

  The default cache uses SQLite3 now (unless Isso is run from uWSGI).
  While it may sound like a Bad Idea (tm), it's much more efficient than
  per-process python datastructures. The SQLite3 cache is SMP-capable
  and fast for read-heavy sites.

  SQLite3 may fail due to a corrupt database for concurrent read access
  from multiple processes. The database is actually not corrupted, but
  the connection is stale. As a workaround, limit process number to your
  CPU count or wait until a "real" backend such as PostgreSQL is
  available.
2014-06-27 15:37:44 +02:00
Martin Zimmermann
bbd9e1b523 add type checking utils 2014-06-26 15:33:28 +02:00
Martin Zimmermann
b2bc582f92 remove tests with too many votes 2014-06-25 19:07:19 +02:00