Joshua Gleitze
ded4927ae4
apidoc for moderate
8 years ago
Joshua Gleitze
c3439e5c79
apidoc for "delete comment"
8 years ago
Joshua Gleitze
9b79a98851
apidoc for "edit comment"
8 years ago
Joshua Gleitze
1f804bcf8e
apidoc for "view comment"
8 years ago
Joshua Gleitze
b2d9c80b5f
apidoc for "new comment"
8 years ago
Joshua Gleitze
5ca5d680fa
apidoc for fetch
8 years ago
Benoît Latinier
f1325ccaca
Fix issue #27 on override thread discovery with custom data-attributes
8 years ago
Martin Zimmermann
0377c8bb20
fix reponse for OPTIONS response on Python 3, #242
8 years ago
Martin Zimmermann
2612fbc0f5
fix missing wrapper attribute
8 years ago
Sergey Lisakov
2a6aa1203b
Fix pluralisation issues and inexact translation
...
Noticed inexact translation for comment-hidden and no-comments.
Pluralisation had bugs, now it works correctly.
8 years ago
Martin Zimmermann
3cd475ec31
follow redirects, fix #193
8 years ago
Martin Zimmermann
a3a1d8cb86
fix getAttribute return value
8 years ago
Martin Zimmermann
3e309e0850
fix input field value access
8 years ago
smileboy
b48ac000b1
config.js error.
8 years ago
Martin Zimmermann
57f902acd4
actually include isso/defaults.ini
8 years ago
Martin Zimmermann
622b59f8a4
move default config expansion to function body (`default` already exists)
8 years ago
Martin Zimmermann
93e783ed60
symlink share/isso.conf to isso/defaults.ini and include it properly
8 years ago
Martin Zimmermann
8579cbd6f8
fix undefined variable usage and enumeration logic
8 years ago
Martin Zimmermann
00ed48a1d3
fix incorrect define header
8 years ago
Martin Zimmermann
1f86fa897e
add vi (vietnamese) translation, #222
8 years ago
Martin Zimmermann
dd9ebdc46b
Merge remote-tracking branch 'origin/pr/222'
8 years ago
Martin Zimmermann
815c7f54b5
add hr (croatian) translation
8 years ago
Martin Zimmermann
dc1d83b74b
add cs (czech) translation
8 years ago
Martin Zimmermann
2e41c4728a
don't extend native objects, #191
8 years ago
Đinh Xuân Sâm
5ce7084f59
Fix typo: s/trướ/trước
9 years ago
Đinh Xuân Sâm
f1a8aed320
Completed Vietnamese translation.
9 years ago
Đinh Xuân Sâm
17747368e1
Created new branch for translation: vietnamese.
...
Added Vietnamese translation.
9 years ago
Martin Zimmermann
33c02b45b4
Merge remote-tracking branch 'origin/pr/202'
9 years ago
Martin Zimmermann
54952e67ad
Merge remote-tracking branch 'origin/pr/199'
9 years ago
Sergey Lisakov
45c4e43ba2
Update ru.js
9 years ago
Sergey Lisakov
11dff33450
Update ru.js
9 years ago
Sergey Lisakov
ed0f680e97
Update Russian translation
...
Pluralization will work just fine now with Russian. Also I corrected several typos and added translation for missed "comment-hidden". I installed Isso via pip and have this part of code in other files.
9 years ago
Nick Hu
b9ce411f85
write unit tests for require-email
9 years ago
Nick Hu
cb21af4cc5
Add config for requiring emails
9 years ago
Mushiyo
2af17b6204
corrected punctuation
9 years ago
Mushiyo
19179b1764
modify to a better translation
9 years ago
Mushiyo
b98133836d
Added zh_TW translation
9 years ago
Martin Zimmermann
8018a7e23d
update russian translation
9 years ago
wendal
6e4d9ba446
add: zh_CN Translation
9 years ago
Julien Enselme
6973128eac
Correct auth without password or username.
...
If no username is set, returns an empty string. So the test `username is
not None` is always True. Idem for password. This can lead to
authentication problems. This commit fixes the test to `if username and
password` as it was in the previous version.
9 years ago
Martin Zimmermann
630e76f66c
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/ext/notifications.py
isso/utils/http.py
setup.py
9 years ago
Martin Zimmermann
f5566c1325
encode username/password in SMTP auth only for Python 2, fix #146
9 years ago
Martin Zimmermann
596acb7f79
request with User-Agent 'Isso/...', #151
9 years ago
Sergey
56c81c2d06
Update ru.js
9 years ago
Martin Zimmermann
45053f9c0c
catch errors in http response
9 years ago
Martin Zimmermann
8e4db5a7a2
typo
9 years ago
Martin Zimmermann
f681002e7e
add support for html5lib below 0.95, #168
9 years ago
Martin Zimmermann
c3c519ad0e
add compatibility middleware for werkzeug 0.8, #170
9 years ago
Martin Zimmermann
e5219157a7
Merge pull request #172 from xuhdev/fix-159-2
...
Save the session-key as a unicode string in the db
9 years ago
Hong Xu
21e91efbf9
Save the session-key as a unicode string in the db
...
The session-key should be saved as a string, not a byte string.
9 years ago
Martin Zimmermann
957fc72eb1
reject request if reject is actually defined, fix #165
9 years ago
Martin Zimmermann
0466977109
replace bullet with HTML entity, fix #169
9 years ago
Martin Zimmermann
aa64b27684
Python 2.7.9 didn't get the context=ssl... backport unfortunately
9 years ago
Martin Zimmermann
e3dedef7ed
Merge pull request #167 from albohlabs/feature/ansible
...
Add ansible for provisioning
9 years ago
Martin Zimmermann
4c9a2aba30
fetch polish translation
9 years ago
Daniel Gräber
894086bda2
Fix catch socket timeout and error exceptions
9 years ago
Roland Szabo
2a3075d0fb
Catch exception in anonymize function
9 years ago
Martin Zimmermann
26b889d381
Merge remote-tracking branch 'origin/pr/157'
...
Conflicts:
isso/js/app/i18n.js
9 years ago
Matias
c5496b103d
Added spanish translation
...
Added spanish translation
9 years ago
Matias
4d7fc956ab
Create es.js
...
Added spanish translation
9 years ago
Martin Zimmermann
e271851b50
fetch greek translation
9 years ago
Jelmer Vernooij
00c4d4149e
Import transifex improvements to Dutch translation.
9 years ago
Jelmer Vernooij
dcb7f6457c
Add Dutch translations.
9 years ago
Richard Fine
6ac5e8c6d0
Reverted change to demo file; changed web server config to mount the uWSGI app at the root, as it turns out it's capable of serving the demo file itself
10 years ago
Richard Fine
3977a8d00d
set up Vagrant support to make it easy to get a dev environment going quickly
10 years ago
Martin Zimmermann
f47df75422
use system's CA certificates for Python 2.7.9 or higher to verify TLS connection
10 years ago
Martin Zimmermann
d70eb160b9
Merge branch 'legacy/0.9'
...
Conflicts:
isso/migrate.py
10 years ago
Martin Zimmermann
d6602b7fe4
Merge branch 'pr/143'
10 years ago
Martin Zimmermann
7f5ff457c1
integrate swedish translation into Isso
10 years ago
Martin Zimmermann
b45f39e662
resolve when comment is in moderation queue, too
10 years ago
Théo Zimmermann
bba91b3f93
don't lose comment if it failed to create
10 years ago
Gustav Näslund
da47dbd374
Added swedish translation file
10 years ago
Martin Zimmermann
4b97684e22
fix editing when avatars are disabled
10 years ago
Martin Zimmermann
89d6ea076b
add --empty-id flag to import weird Disqus exports, fixes #135
10 years ago
Martin Zimmermann
928198f340
update translations
10 years ago
Théo Zimmermann
97015d4034
correct order by in sql request
10 years ago
Martin Zimmermann
4b64615f92
set encoding to UTF-8 for Disqus and WordPress import, also fixes #93
10 years ago
Martin Zimmermann
f0a0f40223
add fallback localStorage implementation if not functional, #134
10 years ago
Martin Zimmermann
d469324392
fix 'undefined name 'buffer'' on Python 3.x
10 years ago
Théo Zimmermann
d0a0ac39b0
bug fixed: was trying to remove an unexisting span.votes
10 years ago
Martin Zimmermann
74363d44ba
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/core.py
setup.py
10 years ago
Martin Zimmermann
88be07d5de
import backports.configparser before configparser, #128
...
backports.configparser got a major rewrite and an upgrade from 3.3 to
3.5 imports the wrong configparser module on Python 2.6/2.7.
Hopefully, this commit makes it work again. Alternatively, you can
remove the old configparser module(s):
rm lib/python2.7/site-packages/configparser*
And re-install configparser from PyPi.
10 years ago
Martin Zimmermann
9c2a48b388
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
setup.py
10 years ago
Martin Zimmermann
6a3a9ea114
SMTP authentication uses bytes, not unicode, fixes #126
...
Encode configuration variables as ascii, ignoring non-ascii characters
(Python's smtplib is not yet able to support the UTF8SMTP).
10 years ago
Martin Zimmermann
721e87a843
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
docs/docs/configuration/client.rst
setup.py
10 years ago
Martin Zimmermann
c712d196d7
add option to hide voting feature, closes #115
10 years ago
Martin Zimmermann
d21aed83f8
save name, email and website in localStorage, closes #119
10 years ago
Martin Zimmermann
d9098b83f0
use different identifiers to avoid mixin events
10 years ago
Martin Zimmermann
c8acd461d3
do not export email field
10 years ago
Martin Zimmermann
f7e51fd03d
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/core.py
setup.py
10 years ago
Martin Zimmermann
881788a049
fix <time> semantics and add title attribute, closes #104
...
The browser shows a human-readable, absolute timestamp when hovering the
"time ago" element
10 years ago
Martin Zimmermann
0f1b95a125
add log to file option, closes #103
10 years ago
Martin Zimmermann
8a58afc8e6
fix order of converting HTML back to text
...
Fixes a regression introduced by ad9384e
, which escapes wanted line
breaks, such as <br /> and <div>.
10 years ago
Martin Zimmermann
4a8cbcd8f0
limit request size, closes #107
10 years ago
Martin Zimmermann
7008e88314
prevent insertion, closes #112
10 years ago
Martin Zimmermann
7701dafa13
remove old Markup.js module
10 years ago
Martin Zimmermann
57d4380106
fix french 'date-now'
10 years ago
Martin Zimmermann
f0d1958cc0
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
docs/docs/install.rst
setup.py
10 years ago
Martin Zimmermann
978d22e77e
fix wrong status code type
10 years ago
Martin Zimmermann
ce9781df51
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/core.py
isso/dispatch.py
setup.py
10 years ago
Martin Zimmermann
35acf1e17e
from __future__ import unicode_literals
10 years ago
Martin Zimmermann
ad9384e8d7
preserve HTML tags while editing comments
10 years ago
Martin Zimmermann
0c8ec38dda
don't scrollIntoView on expanding comments
...
A regression introduced in 94ee6a69
10 years ago
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
.
10 years ago
Martin Zimmermann
b2b6af24d6
fix clode block generation
...
added fenced code blocks to default extension list
10 years ago
Martin Zimmermann
d386590e57
Merge branch 'legacy/0.9'
10 years ago
Martin Zimmermann
fbb55bf38a
add esperanto translation
10 years ago
Martin Zimmermann
221b782157
refactor configuration parsing
...
* use a single default configuration, share/isso.conf
* try to use config.new in some tests which are decoupled
A few tests now depend on `isso.dist` to show that they (or the used
objects) have too much dependencies and need to be rewritten.
10 years ago
Martin Zimmermann
f489ae63d6
Python3.4 now uses system's CA to connect to SMTP via TLS
10 years ago
Martin Zimmermann
396eccfa00
fix error message
10 years ago
Martin Zimmermann
4c697c50fd
reuse environment variable
10 years ago
Federico Ceratto
fb28eb85c5
Enable isso settings directory
...
Useful to start multiple sites in a simpler way e.g. export ISSO_SETTINGS_DIR=/etc/isso.d/enabled
10 years ago
Martin Zimmermann
9260e143f1
decouple hash generation from comment view and allow customization
...
Tests now use a dummy hash function that does nothing (basically) and
run a bit faster now.
10 years ago
Martin Zimmermann
91e63c7e5f
simplify import format detection
10 years ago
Schoewilliam
ad32243708
Fix issue #97 : Alignment problem with the submission forms fields
10 years ago
Martin Zimmermann
d2644c3ba3
increase Copyright year
10 years ago
Martin Zimmermann
a741c62cd6
use python-passlib fallback on Debian
10 years ago
Martin Zimmermann
211f637569
remove Django's PBKDF2 in favour of werkzeug.security.pbkdf2_hex
10 years ago
Martin Zimmermann
64054ec029
remove unused code, fix pyflakes and jshint hints
10 years ago
Martin Zimmermann
94ee6a6981
use el.on("click") to load more comments and prevent default
10 years ago
Martin Zimmermann
d0a50c7905
fix french translation
10 years ago
Martin Zimmermann
2d37637019
add fr and de translation for postbox-website, fix french translation
10 years ago
Martin Zimmermann
96206b110c
fix pagination translations and pluralization
...
If a message does not contain '\n', pluralize is not called. Also
replace {{ hidden_replies }} with {{ n }}.
10 years ago
Martin Zimmermann
8b5462ed2e
remove /check-ip
10 years ago
Martin Zimmermann
5d3f178fca
remove debug statement
10 years ago
Martin Zimmermann
e00ef92a67
remove now unused parent-hightlight rule
10 years ago
Martin Zimmermann
96620e8cd0
rename .postbox to .isso-postbox
10 years ago
Martin Zimmermann
165caa9620
show all top-level comments (for now)
...
There is a bug, when you hide N top-level comments, that shows the wrong
comment count. With a JSON API like data structure, the total comment
count can be sent as a different key, related to #96 .
10 years ago
Martin Zimmermann
8fefe3a616
fix hidden reply to deleted comment (and change a few names)
10 years ago
Martin Zimmermann
6bfd1344ba
Merge branch 'remove-avatar-preview'
10 years ago
Martin Zimmermann
e1b4ddb123
remove sha1.js and pbkdf2.js, part of #51
10 years ago
Martin Zimmermann
14fac577df
fix syntax
10 years ago
Martin Zimmermann
16663d44f8
hide avatar during editing
10 years ago
Martin Zimmermann
0211322915
remove avatar preview in postbox
10 years ago
Martin Zimmermann
7474be12f0
Merge branch 'add-website-field'
10 years ago
Martin Zimmermann
77d40a99eb
border-radius only for first and last input
10 years ago
Martin Zimmermann
065460d78a
add tests for website validation
10 years ago
Martin Zimmermann
5b0ce6471a
add website input
10 years ago
Martin Zimmermann
fd8465eb1c
warn about incorrect notification backends, fix #95
...
SMTP is now also recognized as `smtp`backend. You may use multiple
notification backends (separated by comma). Defaults to `stdout`.
10 years ago
Martin Zimmermann
b60dbd3e42
remove old template 'struct'
10 years ago
Martin Zimmermann
608119e8ce
add r.js build optimization for jade plugin
10 years ago
Martin Zimmermann
ccf59fba2a
initial support for jade
...
Replace Markup.js with Jade [1] for real templating (like expression
evaluation and sane syntax). Jade compiles directly to JavaScript which
makes it possible to only have Jade as build dependency with a tiny
runtime wrapper for the client (around 40% of Markup.js's size).
Templates are rewritten for Jade but do not use all features from Jade
(such as filters, mixins and includes) for now.
A simple requirejs-jade wrapper to compile Jade during runtime is
already included.
i18n
----
I also rewrote the i18n module and moved translation and pluralization
functions back into the module, thus decoupling it from the previous
markup language. The module now exposes:
* i18n.translate(msgid) -> string
* i18n.pluralize(msgid, n) -> string
I18n depends on app/config and thus has access to the user's prefered
language and exposes both function with `i18n.lang` already set. If the
msgid was not found, it returns "???" (like Markup.js).
The pluralization function replaces `{{ n }}` with the function argument
just like with Markup.js (to keep the diffs clean).
[1] http://jade-lang.com/
10 years ago
Martin Zimmermann
7c3bd52821
stub requirejs-text to save ~5kb
10 years ago
Martin Zimmermann
fcc4cd63b4
fix #93
10 years ago
Schoewilliam
dd14bb91db
#49 : Comments thread and submission form now support data-isso-avatar="false"
10 years ago
Martin Zimmermann
4f98bca202
hide avatars with data-isso-avatar="false", part of #49
10 years ago
Schoewilliam
34a50910f2
Tweaking the submission form — making it responsive
10 years ago
Schoewilliam
c2dd9d3bb5
getting rid of SCSS
10 years ago
Martin Zimmermann
fb182ae93f
Merge branch 'pr-83', closes #83
10 years ago
Martin Zimmermann
e6fdfb03eb
do not limit From: field to email address-only, closes #87
...
You may now set a full From header, e.g.:
[smtp]
from = Foo Bar <spam@local>
If not, the old name "Ich schrei sonst!" is used.
10 years ago
Martin Zimmermann
5c91a84951
fix uWSGI spooling for Python3
10 years ago
Martin Zimmermann
d5e5e9c7e2
use numerical values in default configuration to match user-provided values
10 years ago
Martin Zimmermann
ed810cdf39
fetch all nested comments when set to 'inf'
10 years ago
Martin Zimmermann
324326c2ba
translate Hidden to german and french
10 years ago
Martin Zimmermann
f3a7f65687
remove keyworded function arguments and fix JS hints
10 years ago
Martin Zimmermann
59bfde7c03
idiomatic python
...
* make "process_fetched_list" private
* rename fetch_args to args
* a few logic simplifications
10 years ago
Martin Zimmermann
123ea26ca9
handle WP's query-string "pages" and variable WXR namespaces
...
Site links such as /?p=1234 are imported *as is* and maybe do work in
Isso. Do not use a query-based URL structure as permalinks. Ever.
Also, depending on the pages you are going to export, WXR' XML namespace
may change from ../export/1.0/ to ../export/1.2/. Isso tries to import
any WXR 1.x
10 years ago
Srijan Choudhary
26d26ae71b
Add i18n for "Hidden"
10 years ago
Srijan Choudhary
8879db59b8
Show all comments if limit/nested_limit set as inf
10 years ago
Srijan Choudhary
baef73f1e8
Change default values of config params
10 years ago
Srijan Choudhary
ab927e39d0
Add a reveal on click parameter
10 years ago
Srijan Choudhary
2e2fba89a6
Add some tests
10 years ago
Srijan Choudhary
abc0eaaf1d
Handle limit/nested_limit zero
...
This returns zero comments now
10 years ago
Martin Zimmermann
346b60a9b3
disqus import imports anonymized IP address now
10 years ago
Martin Zimmermann
39101c2ac7
Disqus import uses Progressbar class as well
10 years ago
Martin Zimmermann
12f8af8434
add initial support to import WordPress comments
10 years ago
Martin Zimmermann
0154113c80
replace assert with assertEqual
10 years ago
Martin Zimmermann
910da2a6c0
refactor disqus migration code into a class
10 years ago
Srijan Choudhary
54b156844b
Add max-comments limit for nested replies
10 years ago
Srijan Choudhary
f5da45e525
Correct total comments count
10 years ago
Srijan Choudhary
76d5dbc97f
Take max comments to load from config.js
10 years ago
Srijan Choudhary
8dbf4d5337
Client side changes for new API
...
* Handle hierarchal comments data format
* New comments fetching parameters: limit, parent, after
* Link to load more comments
10 years ago
Srijan Choudhary
a5d8a0cfe1
Change in API: hidden_replies field instead of passed_replies
10 years ago
Srijan Choudhary
3c3e83b05c
Bug in API: Reply count should also filter by the after value passed
10 years ago
Srijan Choudhary
8fdceeaafb
Handle edge cases occuring in tests
10 years ago
Srijan Choudhary
71024cea70
API update - new comments format
10 years ago
Martin Zimmermann
a753efe42d
add doctype and charset
10 years ago
Srijan Choudhary
cb0acc5ac0
Add a basic demo page
10 years ago
Martin Zimmermann
b9102b44e2
fix russian translation for "Anonymous"
10 years ago
Martin Zimmermann
344f94e5a0
rm forward (reference) arrow
10 years ago
Martin Zimmermann
1e5878bec3
auto-correct wrong/invalid parent to max nesting level of 1
10 years ago
Martin Zimmermann
ce14726f2f
set parent to null if parent is not top-level comment
10 years ago
Martin Zimmermann
24adafa25b
increase db version after migration
10 years ago
Martin Zimmermann
9ee0a1a2eb
reply to comment now nests to max. level of 1, part of #79
10 years ago
Martin Zimmermann
5d2daa1244
add db migration, part of #79
10 years ago
Martin Zimmermann
f09b6b9bdb
preserve line breaks when editing comments, finally closes #77
10 years ago
Martin Zimmermann
5ab3a7bed4
remove white-space: pre, closes #77
10 years ago
Martin Zimmermann
765a91fefb
return first item of [general] -> host if origin is hidden
...
A minor regression introduced by the latest refactorings. A functional
test is now included. Only affects Firefox users that use non-SSL and
supress their HTTP Referer completely
10 years ago
Martin Zimmermann
c4430c857c
add test for database migration
10 years ago
Martin Zimmermann
0233619d35
mv specs/ to tests/
10 years ago
Martin Zimmermann
fb68f9a820
adjust coverage generation a bit
10 years ago
Martin Zimmermann
5166e69265
remove doctest-ignore-unicode dependency
10 years ago
Martin Zimmermann
4fa0f0d8ea
fix server time offset calculation for IE10
10 years ago
Martin Zimmermann
e393711859
use HTTP_REFERER as fallback if HTTP_ORIGIN is not sent
...
Also refactor those function a bit and move doctests into a separate
module.
10 years ago
Martin Zimmermann
09451ff707
replace textarea with a content-editable div
...
Mainly because of the sluggish auto-resize "feature" which comes for
free when using a content-editable div.
If you use a custom CSS, make sure you replace textarea (element with
.textarea (class) and set `white-space: pre`.
10 years ago
Martin Zimmermann
638ddc6359
pass event through for $.on
10 years ago
Martin Zimmermann
dd0837c0f7
remove superscript extension from Markdown
...
Unexpected behavior for popular smileys like "^^" which does not render
properly and thus, needs to be escaped (like \^\^). If you want to
re-enable superscript, add
[markup]
options = superscript
allowed-elements = sup
to your configuration.
10 years ago
Martin Zimmermann
78b34ecdd2
return only publicely visible comments on /count
...
A regression introduced by 5ce48de
.
10 years ago
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.
10 years ago
Martin Zimmermann
da782654b2
remove warning when SMTP is not configured as notifcation backend
10 years ago
Martin Zimmermann
e4ad81cde0
exit if no website(s) are configured and remove default host
10 years ago
Martin Zimmermann
d69bfc2511
fix visual update up/downvote
10 years ago
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.
10 years ago
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
10 years ago
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
.
10 years ago
Martin Zimmermann
a94472d062
add BSD license header to crypto.py
10 years ago
eroen
4e5e8c44f7
run tests without depending on an already installed instance
10 years ago
Martin Zimmermann
83361fbdac
improve "time from now" helper, based on moment.js
...
http://momentjs.com/docs/#/displaying/fromnow/
10 years ago
Martin Zimmermann
ffd5882810
Merge branch 'fix-time-ago', closes #69
10 years ago
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.
10 years ago
Martin Zimmermann
8540d45fae
cumtime is only available in Python 2.7.4 or later
10 years ago
Martin Zimmermann
772730dbcd
fix make_app logic
10 years ago
Martin Zimmermann
c4b80ff702
make CORS middleware more generic to use
10 years ago
Martin Zimmermann
3b248b293f
set SMTP timeout to 10 seconds and make it configurable, ref 9a735e8
10 years ago
Martin Zimmermann
72c38c2312
set day_diff to 0 if negative, related to #69
10 years ago
Martin Zimmermann
9a735e8eac
initial SMTP connection now timeouts after 5 seconds, closes #70
10 years ago
Martin Zimmermann
9272e7390f
Merge branch 'feature/configurable-markdown', closes #62
10 years ago
Martin Zimmermann
1b0a74e188
expand db path, closes #68
10 years ago
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.
10 years ago
Martin Zimmermann
6071a85787
add `Config.getlist` method
10 years ago
Martin Zimmermann
3d9665b523
remove now obsolete Makefile
10 years ago
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
10 years ago
Martin Zimmermann
f3e5d8dc1c
add support for html5lib==0.95, fixes #60
...
The python-html5lib package in Debian Wheezy does not support
`etree` as tree builder (called `simpletree` back then).
10 years ago
Martin Zimmermann
14a2f82134
s/tls/starttls/
10 years ago
Jocelyn Delande
cbf63f5a4e
default smtp to port=587 and security=starttls
10 years ago
Martin Zimmermann
baff120800
fix french pluralform
10 years ago
Martin Zimmermann
cbd449dcd0
Merge branch 'transifex'
10 years ago
Martin Zimmermann
3a1f92b8bd
use html5lib's sanitizer, supersedes 3713d5e
...
Python's HTMLParser is smart enough to filter malicious tags but fails
to repair invalid, user-inputted HTML. Instead of re-inventing the
wheel, Isso now uses html5lib's HTMLSanitizer with a whitelist of all
tags generated by Sundown.
Disallowed tags are discarded from the output to match the previous
unittests. This feature is only available for html5lib 0.99(9) and
later. Earlier releases just escape disallowed tags.
10 years ago
Martin Zimmermann
3713d5e8ee
allow raw HTML markup for a few (whitelisted) tags
...
To be compatible with comments from Disqus (and users unfamiliar with
Markdown), Misaka no longer disables user-inputted HTML, but the
generated HTML is now post-processed and all "unsafe" tags (not
possible with Markdown) are discarded.
Whitelist: p, a, pre, blockquote, h1-h6, em, sub, sup, del, ins, math,
dl, ol, ul, li
This commit also removes an unnecessary newline generated by
Misaka/Sundown.
10 years ago
Martin Zimmermann
36d702c7bc
proper use of Misaka's HTML render flags (fix malicious HTML injection)
...
This commit now sanitizes *all* HTML tags written by the user (also
prevents auto-link to "unsafe" web protocols and images) as intended.
Fortunately because of Sundown's typography support, it did not affect
JS injection, but custom style tags and iframes.
PS: thanks to the anonymous submitter of a comment including a style tag
for 24pt, red font ;-)
10 years ago
Martin Zimmermann
dcd473967b
Merge branch 'remove-q-lib'
11 years ago
Martin Zimmermann
6006a12778
fix wrong logic when vote counter stays at zero (e.g. self-vote)
11 years ago
Martin Zimmermann
306d2d9f9e
log 5xx errors
...
Also, fix console.log usage.
11 years ago
Martin Zimmermann
a29393ee3f
replace kriskowal/q with 50 LoC homebrew implementation, part of #51
...
As a result, it is no longer possible to chain promises
(then().then().then(etc.)), but that is actually not an issue for Isso.
The deferred/promise implementation is roughly based on
http://stackoverflow.com/a/17722683 and stackp/promisejs.
11 years ago
Martin Zimmermann
bfae158bde
update translations from Transifex (initial pull)
11 years ago
Martin Zimmermann
9dd066c6a6
reflect security = ... in docs and print warning if used
11 years ago
Thomas Sileo
a322cf673a
Bugfix
11 years ago
Thomas Sileo
e50ecc7811
Removed debug info
11 years ago
Thomas Sileo
08313c191c
Added reply notification for commenter
11 years ago
Chimo
658e065f23
Adds STARTTLS support to SMTP notifications
11 years ago
Martin Zimmermann
85e637d017
simplify JSON response
11 years ago
Martin Zimmermann
905bd63eee
CORS middleware must return bytes
11 years ago
Martin Zimmermann
82da63a81b
check if hash is a base-16 string
11 years ago
Martin Zimmermann
e244227f41
convert proxy object to string before passing to urllib
11 years ago
Martin Zimmermann
cbee3f7b2e
clarify copyright headers
11 years ago
Martin Zimmermann
a728d3e32d
add doctest for IPv6 mapped IPv4 addresses
11 years ago
Martin Zimmermann
2a86b46893
add test for disqus import
11 years ago
Martin Zimmermann
f81b955aa5
use SHA1 instead of MD5 to verify comment owner
11 years ago
Martin Zimmermann
29a825b575
remove unused utility functions
11 years ago
Martin Zimmermann
65f260d0ba
show session-key on application startup
...
Maybe useful to see that it really changes if unset. Also reduced key
size to 16 bytes form /dev/urandom (cosmetic reason, still enough).
11 years ago