Commit Graph

479 Commits

Author SHA1 Message Date
Martin Zimmermann
1e2efb24b3 remove duplicate test 2014-03-25 18:50:21 +01:00
Martin Zimmermann
5ce48de94a add POST request to get comment counts for multiple URLs
The old way via `GET /count?uri=...` still works, but is now deprecated
and might be removed in future releases.
The new way is much more efficient especially fore multiple listings.

The internal implemention is improvable though.
2014-03-25 18:50:21 +01:00
Martin Zimmermann
0d6d072281 add isso.conf example to source distribution
mv sample configuration to share/
2014-03-25 18:50:18 +01:00
Martin Zimmermann
ce35b9ff0e Merge branch 'doc-improvements' 2014-03-20 17:09:34 +01:00
Martin Zimmermann
da782654b2 remove warning when SMTP is not configured as notifcation backend 2014-03-20 17:07:42 +01:00
Martin Zimmermann
e4ad81cde0 exit if no website(s) are configured and remove default host 2014-03-20 17:07:38 +01:00
Martin Zimmermann
d69bfc2511 fix visual update up/downvote 2014-03-20 16:32:28 +01:00
Martin Zimmermann
0b816a0677 store session-key in database (once generated on db creation), #74
Store a random session key used to sign and verify comment ownership
once the database is initialized, not on every application startup.

Currently fixed session keys in [general] session-key are migrated into
the database on startup. The configuration parser will notice you about
the change and suggest you to remove this option.
2014-03-20 16:32:25 +01:00
Martin Zimmermann
de50c683bc extend installation docs
* add interludium for users new to Python
* include guides for prebuilt packages and building from source
  (obsoletes DEVELOPMENT.md).
2014-03-20 14:18:58 +01:00
Martin Zimmermann
e75fa4b7e1 add target to generate Isso's CSS 2014-03-20 14:18:58 +01:00
Martin Zimmermann
2c2c911ba4 Isso requires SQLite 3.3.8 or later 2014-03-20 14:18:57 +01:00
Martin Zimmermann
ac41731c6a update changelog to reflect latest changes 2014-03-20 14:18:57 +01:00
Martin Zimmermann
5df4b40a1f rewrite Makefile 2014-03-20 14:18:54 +01:00
Martin Zimmermann
b19084b3e2 add manpage stuff 2014-03-19 15:57:54 +01:00
Martin Zimmermann
ad31a67d8f get doc version via installed distribution 2014-03-19 14:00:16 +01:00
Martin Zimmermann
8f293ad435 configurable avatar colors
* data-isso-avatar-bg="#f0f0f0" sets the background color
* data-isso-avatar-fg="#0abf99 #5698c4 etc." sets up to 8 different
  forground colors
2014-03-10 22:02:13 +01:00
Martin Zimmermann
c6e9c7eee4 Revert "run tests without depending on an already installed instance"
Breaks CLI (and probably other modules that use `dist.version`):

    [*]~/d/isso:master> isso -c sample.cfg run
    Traceback (most recent call last):
    File "/home/.../dev/isso/bin/isso", line 9, in <module>
        load_entry_point('isso==0.8.dev0', 'console_scripts', 'isso')()
    File "/home/.../dev/isso/isso/__init__.py", line 198, in main
        parser.add_argument('--version', action='version', version='%(prog)s ' + dist.version)
    AttributeError: 'module' object has no attribute 'version

This reverts commit 4e5e8c44f7.
2014-03-09 15:30:33 +01:00
Martin Zimmermann
a94472d062 add BSD license header to crypto.py 2014-03-09 12:18:15 +01:00
Martin Zimmermann
f6e25d7acb Merge pull request #72 from eroen/master.public
run tests without depending on an already installed instance
2014-03-09 00:43:27 +01:00
eroen
4e5e8c44f7 run tests without depending on an already installed instance 2014-03-08 22:32:21 +01:00
Martin Zimmermann
33fa56d8e9 add suggested flattr button 2014-03-07 20:21:16 +01:00
Martin Zimmermann
83361fbdac improve "time from now" helper, based on moment.js
http://momentjs.com/docs/#/displaying/fromnow/
2014-03-06 12:05:51 +01:00
Martin Zimmermann
ffd5882810 Merge branch 'fix-time-ago', closes #69 2014-03-06 12:05:05 +01:00
Martin Zimmermann
9a678e4691 an attempt to address #69
Add a global-like object that stores the delta from server time and
client time in a list and use the resulting average to "correct"
utils.ago diffs.
2014-03-06 11:44:33 +01:00
Martin Zimmermann
8540d45fae cumtime is only available in Python 2.7.4 or later 2014-03-06 11:32:25 +01:00
Martin Zimmermann
772730dbcd fix make_app logic 2014-03-06 11:05:22 +01:00
Martin Zimmermann
c4b80ff702 make CORS middleware more generic to use 2014-03-04 15:40:21 +01:00
Martin Zimmermann
3b248b293f set SMTP timeout to 10 seconds and make it configurable, ref 9a735e8 2014-03-04 09:47:54 +01:00
Martin Zimmermann
72c38c2312 set day_diff to 0 if negative, related to #69 2014-03-03 23:47:26 +01:00
Martin Zimmermann
9a735e8eac initial SMTP connection now timeouts after 5 seconds, closes #70 2014-03-03 23:42:35 +01:00
Martin Zimmermann
154d591ae9 add CONTRIBUTORS.txt
Similar to urllib3 [1] and based on

    git log --format='%at %aN <%aE> %s' | sort -rn | grep -v posativ

Unfortunately only based on git's history.

[1] https://github.com/shazow/urllib3/blob/master/CONTRIBUTORS.txt
2014-02-18 18:26:57 +01:00
Martin Zimmermann
9272e7390f Merge branch 'feature/configurable-markdown', closes #62 2014-02-18 17:36:09 +01:00
Martin Zimmermann
1b0a74e188 expand db path, closes #68 2014-02-18 17:34:14 +01:00
Martin Zimmermann
c6214e31d7 document new [markup] section 2014-02-18 17:30:37 +01:00
Martin Zimmermann
8f70a3a7cb add tests for 81ecc8e 2014-02-18 17:01:02 +01:00
Martin Zimmermann
d93d77c8c7 refactor markup and sanitization code
This commit introduces a new configuration section [markup] to refine
Misaka's Markdown extensions (by default strikethrough, superscript and
autolink).

Furthermore, you can set custom HTML elements/attributes that are
allowed, e.g. to enable images, set

  [markup]
  allowed-elements = img
  allowed-attributes = src

The refactorization separates HTML sanitization from Markdown -> HTML
and allows to include new markup languages such as BB Code or
reStructuredText.
2014-02-18 16:59:51 +01:00
Martin Zimmermann
6071a85787 add Config.getlist method 2014-02-18 16:51:04 +01:00
Martin Zimmermann
8f86109cb6 use system's python interpreter 2014-02-16 16:17:38 +01:00
Martin Zimmermann
d1a0b3f6f9 refactor docs a bit, add section for mod_fastcgi and uberspace.de 2014-02-16 15:52:28 +01:00
Martin Zimmermann
56316b8998 remove html5 writer (does not work with Sphinx)
Features like .. note:: and .. warning:: are not supported. Sadly back
to the default `html4css1` stuff :(
2014-02-11 01:20:14 +01:00
Martin Zimmermann
f4cfa6f63c Merge pull request #67 from srijan/master
Docs update: forward url protocol in sample nginx configs
2014-02-11 00:19:09 +01:00
Srijan Choudhary
5525184243 Docs update: forward url protocol in sample nginx configs 2014-02-11 04:38:51 +05:30
Martin Zimmermann
079e5d19da add note about insecure connections, #65 2014-02-04 18:10:03 +01:00
Martin Zimmermann
16d085c9d1 improve tests for comment field validation 2014-02-04 15:34:02 +01:00
Martin Zimmermann
5efa81b57e replace assert foo == bar with appropriate self.assert$Foo calls
except for test_migration because there are improved tests available
in the feature/cli branch
2014-02-04 15:05:32 +01:00
Martin Zimmermann
b100517e4b update developer's guide 2014-02-03 11:19:21 +01:00
Martin Zimmermann
6aa122bc58 fix typo 2014-02-03 11:03:29 +01:00
Martin Zimmermann
3d9665b523 remove now obsolete Makefile 2014-02-03 11:00:11 +01:00
Martin Zimmermann
1c3c826ada replace requirejs-domready with a (self-made) HTML5 idiom, #51
This commit removes yet another dependency. The provided domready
function is compatible with IE9, Firefox and Safari/Chrome.

Inspired by:

* http://stackoverflow.com/a/15580098
* https://github.com/requirejs/domReady/blob/master/domReady.js
2014-02-03 10:54:54 +01:00
Martin Zimmermann
cfbf595605 mention mailing list and fix CSS typo 2014-02-01 20:26:08 +01:00