From dec57654f8b33e14c92c8f5db504e5a5ec461545 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 13 Oct 2013 10:03:34 +0200 Subject: Removed static, templates and var files. --- source/static/css/log.css | 24 -- source/static/css/style.css | 222 --------------- source/static/img/blogmarks.png | Bin 195 -> 0 bytes source/static/img/check-news.png | Bin 1383 -> 0 bytes source/static/img/cross.png | Bin 655 -> 0 bytes source/static/img/diaspora.png | Bin 1179 -> 0 bytes source/static/img/digg.png | Bin 358 -> 0 bytes source/static/img/email-follow.png | Bin 4056 -> 0 bytes source/static/img/favicon.png | Bin 6879 -> 0 bytes source/static/img/feed-icon-28x28.png | Bin 1737 -> 0 bytes source/static/img/following-article.png | Bin 989 -> 0 bytes source/static/img/hacker-news.png | Bin 265 -> 0 bytes source/static/img/heart-32x32.png | Bin 2084 -> 0 bytes source/static/img/heart.png | Bin 634 -> 0 bytes source/static/img/heart_open.png | Bin 687 -> 0 bytes source/static/img/history.png | Bin 3257 -> 0 bytes source/static/img/identica.png | Bin 459 -> 0 bytes source/static/img/logout.png | Bin 1800 -> 0 bytes source/static/img/management.png | Bin 2916 -> 0 bytes source/static/img/mark-as-read.png | Bin 1762 -> 0 bytes source/static/img/pinboard.png | Bin 597 -> 0 bytes source/static/img/previous-article.png | Bin 997 -> 0 bytes source/static/img/reddit.png | Bin 525 -> 0 bytes source/static/img/scoopeo.png | Bin 295 -> 0 bytes source/static/img/tuxrss.png | Bin 2528 -> 0 bytes source/static/img/unread.png | Bin 1580 -> 0 bytes source/templates/article.html | 67 ----- source/templates/articles.html | 43 --- source/templates/base.html | 28 -- source/templates/confirmation.html | 5 - source/templates/error.html | 5 - source/templates/favorites.html | 30 --- source/templates/feed.html | 148 ---------- source/templates/history.html | 80 ------ source/templates/inactives.html | 15 -- source/templates/index.html | 108 -------- source/templates/languages.html | 25 -- source/templates/management.html | 84 ------ source/templates/notifications.html | 18 -- source/templates/search.html | 57 ---- source/templates/statistics.html | 14 - source/templates/subscriptions.html | 13 - source/templates/unread.html | 76 ------ source/var/english-stop-words.txt | 311 ---------------------- source/var/feed.lst | 35 --- source/var/french-stop-words.txt | 176 ------------ source/var/generate-top-words-list.sh | 8 - source/var/password | 1 - source/var/stop_words/english-stop-words-list.txt | 1 - source/var/stop_words/french-stop-words-list.txt | 1 - 50 files changed, 1595 deletions(-) delete mode 100644 source/static/css/log.css delete mode 100755 source/static/css/style.css delete mode 100755 source/static/img/blogmarks.png delete mode 100644 source/static/img/check-news.png delete mode 100644 source/static/img/cross.png delete mode 100644 source/static/img/diaspora.png delete mode 100755 source/static/img/digg.png delete mode 100644 source/static/img/email-follow.png delete mode 100644 source/static/img/favicon.png delete mode 100755 source/static/img/feed-icon-28x28.png delete mode 100644 source/static/img/following-article.png delete mode 100644 source/static/img/hacker-news.png delete mode 100644 source/static/img/heart-32x32.png delete mode 100644 source/static/img/heart.png delete mode 100644 source/static/img/heart_open.png delete mode 100644 source/static/img/history.png delete mode 100644 source/static/img/identica.png delete mode 100644 source/static/img/logout.png delete mode 100644 source/static/img/management.png delete mode 100644 source/static/img/mark-as-read.png delete mode 100644 source/static/img/pinboard.png delete mode 100644 source/static/img/previous-article.png delete mode 100755 source/static/img/reddit.png delete mode 100755 source/static/img/scoopeo.png delete mode 100644 source/static/img/tuxrss.png delete mode 100644 source/static/img/unread.png delete mode 100644 source/templates/article.html delete mode 100644 source/templates/articles.html delete mode 100644 source/templates/base.html delete mode 100644 source/templates/confirmation.html delete mode 100644 source/templates/error.html delete mode 100644 source/templates/favorites.html delete mode 100644 source/templates/feed.html delete mode 100644 source/templates/history.html delete mode 100644 source/templates/inactives.html delete mode 100644 source/templates/index.html delete mode 100644 source/templates/languages.html delete mode 100644 source/templates/management.html delete mode 100644 source/templates/notifications.html delete mode 100644 source/templates/search.html delete mode 100644 source/templates/statistics.html delete mode 100644 source/templates/subscriptions.html delete mode 100644 source/templates/unread.html delete mode 100644 source/var/english-stop-words.txt delete mode 100755 source/var/feed.lst delete mode 100644 source/var/french-stop-words.txt delete mode 100755 source/var/generate-top-words-list.sh delete mode 100755 source/var/password delete mode 100644 source/var/stop_words/english-stop-words-list.txt delete mode 100644 source/var/stop_words/french-stop-words-list.txt (limited to 'source') diff --git a/source/static/css/log.css b/source/static/css/log.css deleted file mode 100644 index 56eb5220..00000000 --- a/source/static/css/log.css +++ /dev/null @@ -1,24 +0,0 @@ -html { - height: 100%; -} - -body { - font:normal medium 'Gill Sans','Gill Sans MT',Verdana,sans-serif; - line-height:1.75; - height: 100%; - margin: 0; - padding: 0; -} - -#logform { - text-align:center; - clear: both; - position: float; - vertical-align: center; - margin-top: 10%; - -} - -img { - border:0; -} diff --git a/source/static/css/style.css b/source/static/css/style.css deleted file mode 100755 index e99bfb7c..00000000 --- a/source/static/css/style.css +++ /dev/null @@ -1,222 +0,0 @@ -html, body { - margin: 0px 0px 0px 5px; - padding: 0px 0px 0px 0px; - height: 100%; - background-color: white; - color: black; - text-align: justify; - font: normal small 'Gill Sans','Gill Sans MT',Verdana,sans-serif; -} - -img { - border: 0px; -} - -h1 { - font-size: 100%; - margin: 0em 0em; - padding: 0px; -} - -h2 { - margin: 0.0em 0em; - padding: 0px; - font-style: normal; - font-variant: normal; - font-weight: bold; - font-size: 100%; - letter-spacing: 0em; - text-align: right; -} - -h3 { - margin: 0em 0em 0.5em 0em; - font-size: 100%; - font-weight: bold; - text-align: left; -} - -h1 a, h2 a, h3 a { - text-decoration: none; -} - -a:link, a:visited { - color: #003399; - text-decoration:none -} - -a:hover { - color: blue; -} - -hr { - color: white; - border-top: dotted black; - border-width: 1px 0px 0px 0px; - margin: 1em 0em; -} - -/* Menu */ -.menu_container { - position:fixed; - margin:0px; - padding:0px; - z-index:4; -} - -/* Navigation bars */ -.nav_container { - position:fixed; - right:5px; - margin:5px; - padding:5px; - white-space:nowrap; - z-index:3; - clear:both; - border-style:dashed; - border-width:thin; - border-color:#98bf21; -} -.nav_container.horizontal { - position:absolute; - white-space:normal; - z-index:4; - width:*; -} -.nav_container.horizontal div { - float:right; - padding-right:10px; -} - -#nav { - position: absolute; - top: 0px; - right: 0px; - z-index: 2; -} - -#heading, #nav ul, #nav li { - background: #EEEEEE; - color: inherit; - border-bottom: 0px solid black; -} - -#heading h1 { - margin: 0; - padding: 0.4em 0 0.4em 2em; - white-space: nowrap; -} - -#nav ul { - display: block; - margin: 0em 0em 0em 0em; - border-right: 0px solid #000000; -} - -#nav li { - margin: 0em; - padding: 0.1em 0em 0.2em 0.1em; - display: block; - float: left; - border-left: 0px solid #000000; -} - -.right { - clear: right; - float: right; - text-align: right; - margin: 0em 1em 0em 1em; - max-width: 25%; -} - -img.right { - width: auto; -} - -.inner .right { - margin-right: 0em; -} - -.right blockquote { - float: right; - position: relative; - clear: both; - padding-top: 1em; - padding-bottom: 0em; - margin-bottom: 0em; - font-style: italic; - width: 100%; - margin-right: 0em; -} - -blockquote.right { - width: 50%; - margin-left: 50%; - margin-right: 0em; -} - -/* Classes */ - -.clear { - font-size: 1px; - height: 0px; - clear: both; -} - -.invisible { - display: none; -} - -.inner { - margin-top: 0em; - padding: 0em 0em 0em 0em; - clear: both; -} - -.innerlogo { - margin-top: 0em; - padding: 0em 0em 0em 0em; - clear: both; -} - -.left { - float: left; - position: absolute; -} - -.tex { - position: relative; top: 0.2em; - margin-left: -0.2em; - margin-right: -0.1em; -} - -/* CSS ToolTips */ -.tooltip { - color: #FFF; - outline: none; - text-decoration: none; - position: relative; -} - -.tooltip span { - color: #FFF; - margin-left: -999em; - position: absolute; -} - -.tooltip:hover span { - border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); - font-family: Calibri, Tahoma, Geneva, sans-serif; - position: absolute; left: 1em; top: 2em; z-index: 99; - margin-left: 0; width: 250px; -} -.classic { - padding: 0.8em 1em; - background: rgba(0, 0, 0, 0.85); - border: 5px 5px; -} - -* html a:hover { - background: transparent; -} diff --git a/source/static/img/blogmarks.png b/source/static/img/blogmarks.png deleted file mode 100755 index 2464e5bb..00000000 Binary files a/source/static/img/blogmarks.png and /dev/null differ diff --git a/source/static/img/check-news.png b/source/static/img/check-news.png deleted file mode 100644 index cce7df39..00000000 Binary files a/source/static/img/check-news.png and /dev/null differ diff --git a/source/static/img/cross.png b/source/static/img/cross.png deleted file mode 100644 index 1514d51a..00000000 Binary files a/source/static/img/cross.png and /dev/null differ diff --git a/source/static/img/diaspora.png b/source/static/img/diaspora.png deleted file mode 100644 index fdf8bb72..00000000 Binary files a/source/static/img/diaspora.png and /dev/null differ diff --git a/source/static/img/digg.png b/source/static/img/digg.png deleted file mode 100755 index 097c4600..00000000 Binary files a/source/static/img/digg.png and /dev/null differ diff --git a/source/static/img/email-follow.png b/source/static/img/email-follow.png deleted file mode 100644 index 4505c610..00000000 Binary files a/source/static/img/email-follow.png and /dev/null differ diff --git a/source/static/img/favicon.png b/source/static/img/favicon.png deleted file mode 100644 index d4d38473..00000000 Binary files a/source/static/img/favicon.png and /dev/null differ diff --git a/source/static/img/feed-icon-28x28.png b/source/static/img/feed-icon-28x28.png deleted file mode 100755 index d64c669c..00000000 Binary files a/source/static/img/feed-icon-28x28.png and /dev/null differ diff --git a/source/static/img/following-article.png b/source/static/img/following-article.png deleted file mode 100644 index 0e59e459..00000000 Binary files a/source/static/img/following-article.png and /dev/null differ diff --git a/source/static/img/hacker-news.png b/source/static/img/hacker-news.png deleted file mode 100644 index ce92765d..00000000 Binary files a/source/static/img/hacker-news.png and /dev/null differ diff --git a/source/static/img/heart-32x32.png b/source/static/img/heart-32x32.png deleted file mode 100644 index 09b01cb5..00000000 Binary files a/source/static/img/heart-32x32.png and /dev/null differ diff --git a/source/static/img/heart.png b/source/static/img/heart.png deleted file mode 100644 index f36f3cfd..00000000 Binary files a/source/static/img/heart.png and /dev/null differ diff --git a/source/static/img/heart_open.png b/source/static/img/heart_open.png deleted file mode 100644 index e1c6e027..00000000 Binary files a/source/static/img/heart_open.png and /dev/null differ diff --git a/source/static/img/history.png b/source/static/img/history.png deleted file mode 100644 index 2a57cc17..00000000 Binary files a/source/static/img/history.png and /dev/null differ diff --git a/source/static/img/identica.png b/source/static/img/identica.png deleted file mode 100644 index 18b5bd2b..00000000 Binary files a/source/static/img/identica.png and /dev/null differ diff --git a/source/static/img/logout.png b/source/static/img/logout.png deleted file mode 100644 index 55316f8b..00000000 Binary files a/source/static/img/logout.png and /dev/null differ diff --git a/source/static/img/management.png b/source/static/img/management.png deleted file mode 100644 index 7bcbc384..00000000 Binary files a/source/static/img/management.png and /dev/null differ diff --git a/source/static/img/mark-as-read.png b/source/static/img/mark-as-read.png deleted file mode 100644 index ffc90910..00000000 Binary files a/source/static/img/mark-as-read.png and /dev/null differ diff --git a/source/static/img/pinboard.png b/source/static/img/pinboard.png deleted file mode 100644 index 6dddc10b..00000000 Binary files a/source/static/img/pinboard.png and /dev/null differ diff --git a/source/static/img/previous-article.png b/source/static/img/previous-article.png deleted file mode 100644 index fcd9bfd8..00000000 Binary files a/source/static/img/previous-article.png and /dev/null differ diff --git a/source/static/img/reddit.png b/source/static/img/reddit.png deleted file mode 100755 index 2d615f2a..00000000 Binary files a/source/static/img/reddit.png and /dev/null differ diff --git a/source/static/img/scoopeo.png b/source/static/img/scoopeo.png deleted file mode 100755 index 052c7dc8..00000000 Binary files a/source/static/img/scoopeo.png and /dev/null differ diff --git a/source/static/img/tuxrss.png b/source/static/img/tuxrss.png deleted file mode 100644 index 6eef7595..00000000 Binary files a/source/static/img/tuxrss.png and /dev/null differ diff --git a/source/static/img/unread.png b/source/static/img/unread.png deleted file mode 100644 index d3a641c7..00000000 Binary files a/source/static/img/unread.png and /dev/null differ diff --git a/source/templates/article.html b/source/templates/article.html deleted file mode 100644 index c1fe41e5..00000000 --- a/source/templates/article.html +++ /dev/null @@ -1,67 +0,0 @@ -## article.html -<%inherit file="base.html"/> -
-
-

${article["article_title"]} from ${feed["feed_title"]}

-
- %if article["article_like"]: - - %else: - - %endif -    -

- ${description} -
- - - -
-
- - - -
-


- - %if plain_text == "1": - HTML version - %else: - Plain text - %endif - - Export to EPUB -
- - Share this article:

- - - - - - - - - - - - - - - - - - - - - - -

-
- -
-
diff --git a/source/templates/articles.html b/source/templates/articles.html deleted file mode 100644 index d7fcc4d5..00000000 --- a/source/templates/articles.html +++ /dev/null @@ -1,43 +0,0 @@ -## articles.html -<%inherit file="base.html"/> -<% -import utils -%> - - -
-

Articles of the feed ${feed['feed_title']}

- %if articles.count() == 0: -

No articles yet.

- %else: -
- %endif - %for article in articles: - <% - if article["article_readed"] == False: - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - if article["article_like"] == True: - like = """""" - else: - like = "" - - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - %> - ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${not_read_begin}${article["article_title"][:150]}${not_read_end}${description} ${like} -
- %endfor -

All feeds

diff --git a/source/templates/base.html b/source/templates/base.html deleted file mode 100644 index 03c40f90..00000000 --- a/source/templates/base.html +++ /dev/null @@ -1,28 +0,0 @@ -## base.html - - - - - %if header_text is UNDEFINED: - pyAggr3g470r - %elif header_text == 0: - pyAggr3g470r - %else: - ${header_text} - pyAggr3g470r - %endif - - - - - -

pyAggr3g470r

- ${self.body()} -
-

This software is under GPLv3 license. You are welcome to copy, modify or - redistribute the source code according to the GPLv3 license.
- Source code of pyAggr3g470r.

-
- - diff --git a/source/templates/confirmation.html b/source/templates/confirmation.html deleted file mode 100644 index ae206838..00000000 --- a/source/templates/confirmation.html +++ /dev/null @@ -1,5 +0,0 @@ -## confirmation.html -<%inherit file="base.html"/> -
-

Your request processed successfully:

-

${message}

diff --git a/source/templates/error.html b/source/templates/error.html deleted file mode 100644 index 3790d3e9..00000000 --- a/source/templates/error.html +++ /dev/null @@ -1,5 +0,0 @@ -## error.html -<%inherit file="base.html"/> -
-

An error occured:

- ${message} \ No newline at end of file diff --git a/source/templates/favorites.html b/source/templates/favorites.html deleted file mode 100644 index 4dd17b6b..00000000 --- a/source/templates/favorites.html +++ /dev/null @@ -1,30 +0,0 @@ -## favorites.html -<%inherit file="base.html"/> -<% -import utils -%> -
-

Your favorites articles (${sum([elem.count() for elem in articles.values()])})

- %for feed in feeds: - <% - new_feed_section = True - %> - %for article in articles[feed["feed_id"]]: - <% - if new_feed_section: - new_feed_section = False - title = """

%s

\n""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - else: - title = "" - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - %> - ${title} - - ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"][:150]}${description}
- %endfor - %endfor diff --git a/source/templates/feed.html b/source/templates/feed.html deleted file mode 100644 index 2dadb8b4..00000000 --- a/source/templates/feed.html +++ /dev/null @@ -1,148 +0,0 @@ -## feed.html -<%inherit file="base.html"/> -<% -import utils -%> -
- %if articles != []: -

The feed ${feed['feed_title']} contains ${format(nb_articles_feed, ',d')} articles. - Representing ${round((nb_articles_feed / nb_articles_total) * 100, 4)} percent of the total (${format(nb_articles_total, ',d')} articles). -
- Address of the feed: ${feed['feed_link']}. -
- Address of the site: ${feed['site_link']}. -
- Logo:

- -

${(nb_unread_articles_feed == 0 and ["All articles are read"] or [''+str(nb_unread_articles_feed)+'' + ' unread article' + (nb_unread_articles_feed == 1 and [""] or ["s"])[0]])[0]}.

- %else: -

No articles for the feed ${feed['feed_title']}. -
- Address of the feed: ${feed['feed_link']}. -
- Address of the site: ${feed['site_link']}.

- %endif - - %if feed["mail"] == True: -

- You are receiving articles from this feed to the address: ${mail_to}. - Stop receiving articles from this feed. - %if not mail_notification_enabled: -
However e-mail notification is disabled in the configuration file. - %endif -

- %endif - - %if articles != []: -

The last article was posted ${elapsed.days} day(s) ago.
- Daily average: ${average}, between the ${first_post_date.strftime('%Y-%m-%d')} and the ${end_post_date.strftime('%Y-%m-%d')}.

- -
-

Recent articles

- <% - html = "" - %> - %for article in articles: - <% - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - # display a heart for faved articles - if article["article_like"] == True: - like = """ """ - else: - like = "" - - # Descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - # Title of the article - article_title = article["article_title"] - if len(article_title) >= 80: - article_title = article_title[:80] + " ..." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article_title, not_read_end, description) + like + "
\n" - %> - %endfor - ${html} - - All articles    -
- - %if nb_favorites != 0: -

-

Your favorites articles for this feed

- <% - html = "" - %> - %for article in favorites: - <% - #descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s
\n""" % \ - (feed["feed_id"], article["article_id"], article["article_title"][:150], description) - %> - %endfor - ${html} - %endif - %endif - - - -
-

Edit this feed

-
- - -
- -
- - - -
- -
- - - -
- -
- - -
- -
-

- (deletes corresponding articles)

-
- - %if articles != []: -
-

Tag cloud

-
- Minimum size of a word: - -
-
${tag_cloud}
- %endif diff --git a/source/templates/history.html b/source/templates/history.html deleted file mode 100644 index 16f909dc..00000000 --- a/source/templates/history.html +++ /dev/null @@ -1,80 +0,0 @@ -## history.html -<%inherit file="base.html"/> -<% -import utils -import calendar -from collections import Counter -%> -
- <% - html = "" - # Get the date from the tag cloud - # Format: /history/?query=year:2011-month:06 to get the - # list of articles of June, 2011. - if query == "all": - html += "

Search with tags cloud

\n" - html += "

Choose a year

\n" - if "year" in query: - the_year = query.split('-')[0].split(':')[1] - if "month" not in query: - html += "

Choose a month for the year " + the_year + "

\n" - if "month" in query: - the_month = query.split('-')[1].split(':')[1] - html += "

Articles of "+ calendar.month_name[int(the_month)] + ", "+ the_year +".

\n" - - timeline = Counter() - for feed in feeds: - new_feed_section = True - for article in mongo.get_articles(feed["feed_id"]): - - if query == "all": - timeline[article["article_date"].strftime('%Y')] += 1 - - elif query[:4] == "year": - - if article["article_date"].strftime('%Y') == the_year: - timeline[article["article_date"].strftime('%m')] += 1 - - if "month" in query: - if article["article_date"].strftime('%m') == the_month: - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - if article["article_like"] == True: - like = """ """ - else: - like = "" - # Descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - # Title of the article - article_title = article["article_title"] - if len(article_title) >= 80: - article_title = article_title[:80] + " ..." - - if new_feed_section is True: - new_feed_section = False - html += """

%s

\n""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - - html += article["article_date"].strftime("%a %d (%H:%M:%S) ") + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article_title, not_read_end, description) + like + "
\n" - if query == "all": - query_string = "year" - elif "year" in query: - query_string = "year:" + the_year + "-month" - if "month" not in query: - html += '
' + \ - utils.tag_cloud([(elem, timeline[elem]) for elem in timeline.keys()], query_string) + '
' - %> - ${html} diff --git a/source/templates/inactives.html b/source/templates/inactives.html deleted file mode 100644 index 57482b61..00000000 --- a/source/templates/inactives.html +++ /dev/null @@ -1,15 +0,0 @@ -## inactives.html -<%inherit file="base.html"/> -
- %if inactives != []: -
-

Feeds with no recent articles since days:

-
- - %else: -

No inactive feeds.

- %endif diff --git a/source/templates/index.html b/source/templates/index.html deleted file mode 100644 index 88ca7a87..00000000 --- a/source/templates/index.html +++ /dev/null @@ -1,108 +0,0 @@ -## index.html -<%inherit file="base.html"/> -<% -import utils -%> -

-
- -
- -
- -
-
- <% - html = "" - %> - <% - for feed in feeds: - html += """\n

%s - - - -

\n
""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], \ - feed["feed_link"], feed["feed_image"]) - - # The main page display only 10 articles by feeds. - for article in mongo.get_articles(feed["feed_id"], limit=10): - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - # display a heart for faved articles - if article["article_like"] == True: - like = """ """ - else: - like = "" - - # Descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content.split(' ')[:55]) - else: - description = "No description." - # Title of the article - article_title = article["article_title"] - if len(article_title) >= 80: - article_title = article_title[:80] + " ..." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article_title, not_read_end, description) + like + "
\n" - html += "
\n" - - # some options for the current feed - html += """All articles   """ % (feed["feed_id"],) - html += """Feed summary   """ % (feed["feed_id"],) - html += """

\n""" % (feed["feed_id"],) - if mongo.nb_unread_articles(feed["feed_id"]) != 0: - html += """  Mark all as read""" - html += """     %s unread article(s)""" % (feed["feed_id"], mongo.nb_unread_articles(feed["feed_id"])) - if feed["mail"] == False: - html += """
\nEnable email notifications""" % (feed["feed_id"],) - else: - html += """
\nDisable email notifications""" % (feed["feed_id"],) - html += """

Top

\n""" - %> - ${html} diff --git a/source/templates/languages.html b/source/templates/languages.html deleted file mode 100644 index d186677d..00000000 --- a/source/templates/languages.html +++ /dev/null @@ -1,25 +0,0 @@ -## languages.html -<%inherit file="base.html"/> -
-

Summary

-
    - %for language in articles_sorted_by_languages.keys(): -
  • ${language}: ${sum(map(len, articles_sorted_by_languages[language].values()))} articles
  • - %endfor -
- %for language in articles_sorted_by_languages.keys(): -
-

${language}

- %for feed_id in articles_sorted_by_languages[language]: - <% - feed = mongo.get_feed(feed_id) - %> -

${feed["feed_title"]}

- %for article in articles_sorted_by_languages[language][feed_id][:10]: - ${article["article_date"].strftime('%Y-%m-%d %H:%M')} - ${article["article_title"]} -
- %endfor -
- %endfor -
- %endfor \ No newline at end of file diff --git a/source/templates/management.html b/source/templates/management.html deleted file mode 100644 index f6c68ace..00000000 --- a/source/templates/management.html +++ /dev/null @@ -1,84 +0,0 @@ -## management.html -<%inherit file="base.html"/> -
-

Subscriptions

-

Add a new subscription (current subscriptions):

-
- - -
- - %if feeds: -

Unsubscribe from a source (deletes corresponding articles):

-
- - -
- %endif - - %if not mail_notification_enabled: -

E-mail notification is disabled in the configuration file.

- %endif - - %if feeds: -
-

Facts

- - %endif - -
- -

Account

-

-

- -
-
-
- -
-

- -
- - -

Database

-

${nb_articles} article(s) are stored in the database with ${nb_unread_articles} unread article(s). - -

- -
-
- -
- -
-
- (${nb_indexed_documents} indexed documents) -
- - -
- -

Export articles

-

-

- - -
-

diff --git a/source/templates/notifications.html b/source/templates/notifications.html deleted file mode 100644 index 88558b05..00000000 --- a/source/templates/notifications.html +++ /dev/null @@ -1,18 +0,0 @@ -## article.html -<%inherit file="base.html"/> -
- %if feeds != []: -

You are receiving e-mails for the following feeds:

- - %else: -

No active notifications.

- %endif -

Notifications are sent to: ${mail_to}. - %if not mail_notification_enabled: - However e-mail notification is disabled in the configuration file. - %endif -

diff --git a/source/templates/search.html b/source/templates/search.html deleted file mode 100644 index 435ef443..00000000 --- a/source/templates/search.html +++ /dev/null @@ -1,57 +0,0 @@ -## search.html -<%inherit file="base.html"/> -<% -import utils -%> -
-%if len(search_result) != 0: -

Articles containing the string ${query} (${sum([len(articles) for articles in search_result.values()])} results)

-%else: -

String ${query} not found.

-%endif -
-
- -
- -<% - html = "" - feed_id = None -%> - -%for feed_id in search_result.keys(): - <% - new_feed_section = True - feed = mongo.get_feed(feed_id) - for article in search_result[feed["feed_id"]]: - if new_feed_section is True: - new_feed_section = False - html += """

%s

\n""" % \ - (feed["feed_id"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - - if article["article_readed"] == False: - # not readed articles are in bold - not_read_begin, not_read_end = "", "" - else: - not_read_begin, not_read_end = "", "" - - # display a heart for faved articles - if article["article_like"] == True: - like = """ """ - else: - like = "" - - # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - description = " ".join(article_content[:500].split(' ')[:-1]) - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s%s%s""" % \ - (feed["feed_id"], article["article_id"], not_read_begin, \ - article["article_title"][:150], not_read_end, description) + like + "
\n" - %> -%endfor - -${html} \ No newline at end of file diff --git a/source/templates/statistics.html b/source/templates/statistics.html deleted file mode 100644 index 5dfcbfa8..00000000 --- a/source/templates/statistics.html +++ /dev/null @@ -1,14 +0,0 @@ -## statistics.html -<%inherit file="base.html"/> -
- %if articles: -

Statistics

-

Tag cloud

-
- Minimum size of a word: - -
-
- ${tag_cloud} -
- %endif \ No newline at end of file diff --git a/source/templates/subscriptions.html b/source/templates/subscriptions.html deleted file mode 100644 index 8cee08ab..00000000 --- a/source/templates/subscriptions.html +++ /dev/null @@ -1,13 +0,0 @@ -## subscriptions.html -<%inherit file="base.html"/> -
-

Subscriptions

- %if feeds: - - %else: -

No subscriptions.

- %endif \ No newline at end of file diff --git a/source/templates/unread.html b/source/templates/unread.html deleted file mode 100644 index 93df53e7..00000000 --- a/source/templates/unread.html +++ /dev/null @@ -1,76 +0,0 @@ -## unread.html -<%inherit file="base.html"/> -<% -import utils -%> -
- <% - html = "" - if mongo.nb_unread_articles() != 0: - - # List unread articles of all the database - if feed_id == "": - html += "

Unread article(s)

" - html += """\n
\nMark all articles as read\n
\n""" - for feed in feeds: - new_feed_section = True - nb_unread = 0 - - # For all unread article of the current feed. - for article in mongo.get_articles(feed["feed_id"], condition=("article_readed", False)): - nb_unread += 1 - if new_feed_section is True: - new_feed_section = False - html += """

%s

\n""" % \ - (feed["feed_id"], feed["site_link"], feed["feed_title"], feed["feed_link"], feed["feed_image"]) - - # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s
\n""" % \ - (feed["feed_id"], article["article_id"], article["article_title"][:150], description) - - if nb_unread == mongo.nb_unread_articles(feed["feed_id"]): - html += """
\nMark all as read\n""" % \ - (feed["feed_id"],) - html += """
\nMark articles as read\n""" - - - # List unread articles of a feed - else: - try: - feed = mongo.get_feed(feed_id) - except: - return "

This feed do not exists.

" - html += """

Unread article(s) of the feed %s

-
""" % (feed_id, feed["feed_title"]) - - # For all unread article of the feed. - for article in mongo.get_articles(feed_id, condition=("article_readed", False)): - # descrition for the CSS ToolTips - article_content = utils.clear_string(article["article_content"]) - if article_content: - description = " ".join(article_content[:500].split(' ')[:-1]) - else: - description = "No description." - - # a description line per article (date, title of the article and - # CSS description tooltips on mouse over) - html += article["article_date"].strftime('%Y-%m-%d %H:%M') + " - " + \ - """%s%s
\n""" % \ - (feed_id, article["article_id"], article["article_title"][:150], description) - - html += """
\nMark all as read""" % (feed_id,) - # No unread article - else: - html += '

No unread article(s)

\n
\nWhy not check for news?' - html += """\n

All feeds

""" - %> - ${html} diff --git a/source/var/english-stop-words.txt b/source/var/english-stop-words.txt deleted file mode 100644 index 497a1f96..00000000 --- a/source/var/english-stop-words.txt +++ /dev/null @@ -1,311 +0,0 @@ - - | An English stop word list. Comments begin with vertical bar. Each stop - | word is at the start of a line. - - | Many of the forms below are quite rare (e.g. "yourselves") but included for - | completeness. - - | PRONOUNS FORMS - | 1st person sing - -i | subject, always in upper case of course - -me | object -my | possessive adjective - | the possessive pronoun `mine' is best suppressed, because of the - | sense of coal-mine etc. -myself | reflexive - | 1st person plural -we | subject - -| us | object - | care is required here because US = United States. It is usually - | safe to remove it if it is in lower case. -our | possessive adjective -ours | possessive pronoun -ourselves | reflexive - | second person (archaic `thou' forms not included) -you | subject and object -your | possessive adjective -yours | possessive pronoun -yourself | reflexive (singular) -yourselves | reflexive (plural) - | third person singular -he | subject -him | object -his | possessive adjective and pronoun -himself | reflexive - -she | subject -her | object and possessive adjective -hers | possessive pronoun -herself | reflexive - -it | subject and object -its | possessive adjective -itself | reflexive - | third person plural -they | subject -them | object -their | possessive adjective -theirs | possessive pronoun -themselves | reflexive - | other forms (demonstratives, interrogatives) -what -which -who -whom -this -that -these -those - - | VERB FORMS (using F.R. Palmer's nomenclature) - | BE -am | 1st person, present -is | -s form (3rd person, present) -are | present -was | 1st person, past -were | past -be | infinitive -been | past participle -being | -ing form - | HAVE -have | simple -has | -s form -had | past -having | -ing form - | DO -do | simple -does | -s form -did | past -doing | -ing form - - | The forms below are, I believe, best omitted, because of the significant - | homonym forms: - - | He made a WILL - | old tin CAN - | merry month of MAY - | a smell of MUST - | fight the good fight with all thy MIGHT - - | would, could, should, ought might however be included - - | | AUXILIARIES - | | WILL - |will - -would - - | | SHALL - |shall - -should - - | | CAN - |can - -could - - | | MAY - |may - |might - | | MUST - |must - | | OUGHT - -ought - - | COMPOUND FORMS, increasingly encountered nowadays in 'formal' writing - | pronoun + verb - -i'm -you're -he's -she's -it's -we're -they're -i've -you've -we've -they've -i'd -you'd -he'd -she'd -we'd -they'd -i'll -you'll -he'll -she'll -we'll -they'll - - | verb + negation - -isn't -aren't -wasn't -weren't -hasn't -haven't -hadn't -doesn't -don't -didn't - - | auxiliary + negation - -won't -wouldn't -shan't -shouldn't -can't -cannot -couldn't -mustn't - - | miscellaneous forms - -let's -that's -who's -what's -here's -there's -when's -where's -why's -how's - - | rarer forms - - | daren't needn't - - | doubtful forms - - | oughtn't mightn't - - | ARTICLES -a -an -the - - | THE REST (Overlap among prepositions, conjunctions, adverbs etc is so - | high, that classification is pointless.) -and -but -if -or -because -as -until -while - -of -at -by -for -with -about -against -between -into -through -during -before -after -above -below -to -from -up -down -in -out -on -off -over -under - -again -further -then -once - -here -there -when -where -why -how - -all -any -both -each -few -more -most -other -some -such - -no -nor -not -only -own -same -so -than -too -very - - | Just for the record, the following words are among the commonest in English - - | one - | every - | least - | less - | many - | now - | ever - | never - | say - | says - | said - | also - | get - | go - | goes - | just - | made - | make - | put - | see - | seen - | whether - | like - | well - | back - | even - | still - | way - | take - | since - | another - | however - | two - | three - | four - | five - | first - | second - | new - | old - | high - | long \ No newline at end of file diff --git a/source/var/feed.lst b/source/var/feed.lst deleted file mode 100755 index d9e6c924..00000000 --- a/source/var/feed.lst +++ /dev/null @@ -1,35 +0,0 @@ -http://www.foo.be/cgi-bin/wiki.pl?action=journal&tile=AdulauMessyDesk -http://blog.cedricbonhomme.org/feed/ -http://standblog.org/blog/feed/atom -http://www.haypocalc.com/blog/rss.php -http://linuxfr.org/news.atom -http://rss.slashdot.org/Slashdot/slashdot -http://theinvisiblethings.blogspot.com/feeds/posts/default -http://torvalds-family.blogspot.com/feeds/posts/default -http://www.python.org/channews.rdf -http://www.kde.org/dotkdeorg.rdf -http://feeds.feedburner.com/internetactu/bcmJ -http://www.april.org/fr/rss.xml -http://www.framablog.org/index.php/feed/atom -http://tarekziade.wordpress.com/feed/ -http://lwn.net/headlines/newrss -http://kernelnewbies.org/RecentChanges?action=rss_rc&ddiffs=1&unique=1 -http://www.kroah.com/log/index.rss -http://www.jeffersonswheel.org/?feed=rss2 -http://www.laquadrature.net/en/rss.xml -http://static.fsf.org/fsforg/rss/blogs.xml -http://esr.ibiblio.org/?feed=rss2 -http://www.schneier.com/blog/index.rdf -http://python-history.blogspot.com/feeds/posts/default -http://www.haypocalc.com/wordpress/feed -http://www.crypto.com/blog/rss10.xml -http://spaf.wordpress.com/feed/ -http://neopythonic.blogspot.com/feeds/posts/default -http://www.quuxlabs.com/feed/ -http://etbe.coker.com.au/feed/ -http://0pointer.de/blog/index.rss2 -http://www.bortzmeyer.org/feed-full.atom -http://blog.cr0.org/feeds/posts/default -http://sysc.tl/feed/ -http://planetKDE.org/rss20.xml -http://www.brankovukelic.com/feeds/posts/default \ No newline at end of file diff --git a/source/var/french-stop-words.txt b/source/var/french-stop-words.txt deleted file mode 100644 index 08a2f5d7..00000000 --- a/source/var/french-stop-words.txt +++ /dev/null @@ -1,176 +0,0 @@ - - | A French stop word list. Comments begin with vertical bar. Each stop - | word is at the start of a line. - -au | a + le -aux | a + les -avec | with -ce | this -ces | these -dans | with -de | of -des | de + les -du | de + le -elle | she -en | `of them' etc -et | and -eux | them -il | he -je | I -la | the -le | the -leur | their -lui | him -ma | my (fem) -mais | but -me | me -même | same; as in moi-même (myself) etc -mes | me (pl) -moi | me -mon | my (masc) -ne | not -nos | our (pl) -notre | our -nous | we -on | one -ou | where -par | by -pas | not -pour | for -qu | que before vowel -que | that -qui | who -sa | his, her (fem) -se | oneself -ses | his (pl) -son | his, her (masc) -sur | on -ta | thy (fem) -te | thee -tes | thy (pl) -toi | thee -ton | thy (masc) -tu | thou -un | a -une | a -vos | your (pl) -votre | your -vous | you - - | single letter forms - -c | c' -d | d' -j | j' -l | l' -à | to, at -m | m' -n | n' -s | s' -t | t' -y | there - - | forms of être (not including the infinitive): -été -étée -étées -étés -étant -suis -es -est -sommes -êtes -sont -serai -seras -sera -serons -serez -seront -serais -serait -serions -seriez -seraient -étais -était -étions -étiez -étaient -fus -fut -fûmes -fûtes -furent -sois -soit -soyons -soyez -soient -fusse -fusses -fût -fussions -fussiez -fussent - - | forms of avoir (not including the infinitive): -ayant -eu -eue -eues -eus -ai -as -avons -avez -ont -aurai -auras -aura -aurons -aurez -auront -aurais -aurait -aurions -auriez -auraient -avais -avait -avions -aviez -avaient -eut -eûmes -eûtes -eurent -aie -aies -ait -ayons -ayez -aient -eusse -eusses -eût -eussions -eussiez -eussent - - | Later additions (from Jean-Christophe Deschamps) -ceci | this -celà | that -cet | this -cette | this -ici | here -ils | they -les | the (pl) -leurs | their (pl) -quel | which -quels | which -quelle | which -quelles | which -sans | without -soi | oneself \ No newline at end of file diff --git a/source/var/generate-top-words-list.sh b/source/var/generate-top-words-list.sh deleted file mode 100755 index 2a87e147..00000000 --- a/source/var/generate-top-words-list.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -if test $# != 2 ; then - echo No input files given 1>&2 - exit 1 -fi - -awk 'BEGIN{FS = " "} { if ($1 ~ /^[A-Za-z]/) {print $1}}' $1 | sort | tr '\n' ';' > $2 \ No newline at end of file diff --git a/source/var/password b/source/var/password deleted file mode 100755 index be51ecd2..00000000 --- a/source/var/password +++ /dev/null @@ -1 +0,0 @@ -admin;d033e22ae348aeb5660fc2140aec35850c4da997 diff --git a/source/var/stop_words/english-stop-words-list.txt b/source/var/stop_words/english-stop-words-list.txt deleted file mode 100644 index caa26aaf..00000000 --- a/source/var/stop_words/english-stop-words-list.txt +++ /dev/null @@ -1 +0,0 @@ -a;about;above;after;again;against;all;am;an;and;any;are;aren't;as;at;be;because;been;before;being;below;between;both;but;by;cannot;can't;could;couldn't;did;didn't;do;does;doesn't;doing;don't;down;during;each;few;for;from;further;had;hadn't;has;hasn't;have;haven't;having;he;he'd;he'll;her;here;here's;hers;herself;he's;him;himself;his;how;how's;i;i'd;if;i'll;i'm;in;into;is;isn't;it;its;it's;itself;i've;let's;me;more;most;mustn't;my;myself;no;nor;not;of;off;on;once;only;or;other;ought;our;ours;ourselves;out;over;own;same;shan't;she;she'd;she'll;she's;should;shouldn't;slashdot;so;some;such;than;that;that's;the;their;theirs;them;themselves;then;there;there's;these;they;they'd;they'll;they're;they've;this;those;through;to;too;under;until;up;very;was;wasn't;we;we'd;we'll;were;we're;weren't;we've;what;what's;when;when's;where;where's;which;while;who;whom;who's;why;why's;with;won't;would;wouldn't;writes;you;you'd;you'll;your;you're;yours;yourself;yourselves;you've; diff --git a/source/var/stop_words/french-stop-words-list.txt b/source/var/stop_words/french-stop-words-list.txt deleted file mode 100644 index a6a36c79..00000000 --- a/source/var/stop_words/french-stop-words-list.txt +++ /dev/null @@ -1 +0,0 @@ -à;ai;aie;aient;aies;ait;as;au;aura;aurai;auraient;aurais;aurait;auras;aurez;auriez;aurions;aurons;auront;aux;avaient;avais;avait;avec;avez;aviez;avions;avons;ayant;ayez;ayons;c;ce;ceci;celà;ces;cet;cette;d;dans;de;des;du;elle;en;es;est;et;étaient;étais;était;étant;été;étée;étées;êtes;étés;étiez;étions;eu;eue;eues;eûmes;eurent;eus;eusse;eussent;eusses;eussiez;eussions;eut;eût;eûtes;eux;fûmes;furent;fus;fusse;fussent;fusses;fussiez;fussions;fut;fût;fûtes;ici;il;ils;j;je;l;la;le;les;leur;leurs;lui;m;ma;mais;me;même;mes;moi;mon;n;ne;nos;notre;nous;on;ont;ou;par;pas;pour;qu;que;quel;quelle;quelles;quels;qui;s;sa;sans;se;sera;serai;seraient;serais;serait;seras;serez;seriez;serions;serons;seront;ses;soi;soient;sois;soit;sommes;son;sont;soyez;soyons;suis;sur;t;ta;te;tes;toi;ton;tu;toujours;un;une;vos;votre;vous;y; -- cgit