Changing TABS with 4-spaces
Solving PEP-8 C0301: Line too long in top-news.py
Removing PEP-8 C0103: Invalid variable name in top-news.py
Changed password hash and salt according to https://crackstation.net/hashing-security.htm
That is: users' password are salted and then hashed with sha256. Each user has it's own random salt.

Every time a user update her pass or do a login, the password is upgraded too.

WARNING:
    before updating, execute:
      alter table users modify user_pass char(128) not null;
    in the database






git-svn-id: file:///home/gallir/meneame/svn/src@4044 cbe1a1ec-7179-4919-8e32-4551e8279a00
New tables for notifications
users.user_pass now is char(128).


git-svn-id: file:///home/gallir/meneame/svn/src@4045 cbe1a1ec-7179-4919-8e32-4551e8279a00
Unpacking values, making more explicit the field on queries
New key cookie depends on user pass, too


git-svn-id: file:///home/gallir/meneame/svn/src@4046 cbe1a1ec-7179-4919-8e32-4551e8279a00
PEP-8: change tabs x 4 spaces
PEP-8 on link_common_votes: line length < 80
PEP-8: Removing unused imports & adding docstrings
unpacking cursor.execute() values, and a minor improvement
Changing anidated for with list comprehension (+ itertoos)

Rationale: There's a more pythonic way to perform a cartesian product
of two iterables. In this case I'm using the itertools.product() to
replace two anidated for loops.

The final code seems (to me) a little bit more clear.
Now using enumerate() to perform the counting of records

Rationale: There's no need to use a variable +=1 to do a counter, a
more pythonic way is the use of enumerate(). There's no significance
impact on performance.
managing Corner-case with no published links

Rationale: In new (or test) environment there's a chance to have a
links table with no published links.
Using enumerate() to perform the record counting on get_link_average

Rationale: There's no need to use a variable +=1 to do a counter, a
more pythonic way is the use of enumerate(). There's no significance
impact on performance.
Notify also of @references to users in comments.


git-svn-id: file:///home/gallir/meneame/svn/src@4047 cbe1a1ec-7179-4919-8e32-4551e8279a00
Removed "permalink" from the anchor text


git-svn-id: file:///home/gallir/meneame/svn/src@4048 cbe1a1ec-7179-4919-8e32-4551e8279a00
Added link's permalink to summary's object


git-svn-id: file:///home/gallir/meneame/svn/src@4049 cbe1a1ec-7179-4919-8e32-4551e8279a00
Merge branch 'r-link-common-votes' of https://github.com/esparta/Meneame

git-svn-id: file:///home/gallir/meneame/svn/src@4050 cbe1a1ec-7179-4919-8e32-4551e8279a00
Merge branch 'r-topnews' of https://github.com/esparta/Meneame

git-svn-id: file:///home/gallir/meneame/svn/src@4051 cbe1a1ec-7179-4919-8e32-4551e8279a00