Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/urlfixer/README.md

Issue 8483155: Added typo data collection (/submitData) (Closed)
Patch Set: Created Oct. 9, 2012, 2:27 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sitescripts/urlfixer/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 urlfixer
2 ========
3
4 Backend for the URL Fixer data collection. It provides the following URLs:
5
6 * */submitData* - Receive data from URL Fixer extension
7
8 Required packages
9 -----------------
10
11 * [simplejson](http://pypi.python.org/pypi/simplejson/)
12
13 Database setup
14 --------------
15
16 Just execute the statements in _schema.sql_.
17
18 Configuration
19 -------------
20
21 Add an _urlfixer_ section to _/etc/sitescripts_ or _.sitescripts_ and configure the following keys:
22
23 * _database_
24 * _dbuser_
25 * _dbpassword_
26
27 Data transfer format
28 ----------------------------
29
30 A domain transfered to the server can have one of the following types:
31
32 * 1: the domain was entered without any further action
33 * 2: the domain was recognized as a typo
34 * 3: the domain is a correction that the user accepted
35 * 4: the domain is a correction that the user declined
36
37 The server expects the list to be transfered as a JSON object in no particular o rder. Here is an example:
38
39 ```js
40 {
41 "urlfixer.org": 1,
42 "adblockplus,org": 2,
43 "adblockplus.org": 3,
44 "goggle.com": 1,
45 "google.com": 4
46 }
47 ```
OLDNEW
« no previous file with comments | « no previous file | sitescripts/urlfixer/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld