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.
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