Martin Zimmermann
560e73cc0a
rewrite db backend
11 years ago
Martin Zimmermann
e56d6a087a
fix unittests with mocking
11 years ago
Martin Zimmermann
adb3d40c03
send notification for new comments
...
This commit also introduces a new db which maps path to thread title.
The title is read by parsing the HTML for a related <h1> tag using
`html5lib`.
You can set up SMTP in your configuration (here the defaults):
[SMTP]
host = localhost
port = 465
ssl = on
username =
password =
recipient =
sender =
In short, by default Isso uses a local SMTP server using SSL without
any authentication. An email is send on comment creation to "recipient"
from "Ich schrei sonst <sender>".
This commit also uses a simple ANSI colorization module from my static
blog compiler project.
On server startup, Isso will connect to the SMTP server and fall back to
a null mailer. It also tries to connect to your website, so if that
doesn't work, you probably can't comment on your website either.
11 years ago
Martin Zimmermann
45d4e18aef
new /count?uri=path and count.js
...
A separate (minified) JS to load only the comment count for each
`<a href="...#isso-thread">...</a>` link. If there are no comments,
return a 404, otherwise return the number JSON formatted.
To built `count.ks`, run `r.js -o build.count.js`.
11 years ago
Martin Zimmermann
5744a79e4d
fix test for 88b77ff
11 years ago
Martin Zimmermann
f0c1574c15
remove stale comments from DB, closes #9
11 years ago
Martin Zimmermann
5cad8fb8b5
clean db interface and comment model
11 years ago
Martin Zimmermann
c7ee35423b
implement db backend for votes/likes #5
11 years ago
Martin Zimmermann
11c6e4d720
remove email column
11 years ago
Martin Zimmermann
59706815e7
add comment.hash to recognize user by email or ip fallback
...
also: fixed test_comment json.dumps(json.loads(json.dumps(...)))
madness.
11 years ago
Martin Zimmermann
35926037a6
fix tests
11 years ago
Martin Zimmermann
dd4ba9263a
refactor all the things (use werkzeug instead of NIH to handle WSGI)
...
Also: use ?uri=%2Fpath%2F as path indicator.
11 years ago
posativ
63b990838d
fix tests
12 years ago
posativ
a4514e1f91
rewrite using NIH
12 years ago
posativ
66cc7911f5
limit to 20 by default
12 years ago
posativ
7420e6a130
add path to comment class
12 years ago
posativ
05b77f99fe
add db.recent(mode, limit) method
12 years ago
posativ
39899dda81
/comment/ -> /1.0/
12 years ago
posativ
ac6d88f61e
`isso import FILE` can import Disqus export
12 years ago
posativ
ecd4c6b120
fix an edge case, where mallory can delete comments by bo
12 years ago
posativ
d2bc2537a1
remove limit, introduced unnecessary complexity
12 years ago
posativ
443eb2bbe1
fix tests
12 years ago
posativ
d30c3c059b
sort in chronological order
12 years ago
posativ
f2eff22ff7
circumvent CGI 1.1 specs (PATH_INFO is quoted)
12 years ago
posativ
3cb623e7c2
check if url exists before creating a comment
12 years ago
posativ
2c8c97b2a8
add db.activate function and use UNIX-style permission bits for normal/activated/deleted comments
12 years ago
posativ
05336728f4
use itsdangerous
12 years ago
posativ
759b304cb5
refactor configuration variables
12 years ago
posativ
27801eef26
delete only when not referenced
12 years ago
posativ
af8fcdab19
most database operations now return Comment object
12 years ago
posativ
ca79ee5b67
rm url tests
12 years ago
posativ
e2198ed74a
add update and delete views
12 years ago
posativ
1b2b4da490
fix db update
12 years ago
posativ
27007547bb
return 404 if none found
12 years ago
posativ
5d23bff409
clean json fuckup and add create and get views
12 years ago
posativ
8301f0af78
replace db.initialize with db.__init__
12 years ago
posativ
98c4b6ccb2
move Comment class to isso.models
12 years ago
posativ
36add653a7
change modified timestamp after update
12 years ago
posativ
633b0bee33
add update, get and delete methods to SQLite adapter
12 years ago
posativ
48cff63d4c
add Comment.fromjson and update table definitions
12 years ago
posativ
54548d4bd5
docs and input sanitization
12 years ago
posativ
1199424a2b
add basic SQLite adapter + tests
12 years ago
posativ
0333f7efb0
first tests and general code layout
12 years ago