aboutsummaryrefslogtreecommitdiff
path: root/articles.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-12-02 23:39:24 +0100
committercedricbonhomme <devnull@localhost>2010-12-02 23:39:24 +0100
commit559412aca5400bb3b43c8ec3a15b536ce83836b5 (patch)
tree787c8fa7c5f3b2334ac484f9eba39e669a2dd463 /articles.py
parentMajor improvement. New data structure to store articles and feeds in memory (... (diff)
downloadnewspipe-559412aca5400bb3b43c8ec3a15b536ce83836b5.tar.gz
newspipe-559412aca5400bb3b43c8ec3a15b536ce83836b5.tar.bz2
newspipe-559412aca5400bb3b43c8ec3a15b536ce83836b5.zip
Scheißdreck, j'avais oublié un fichier.
Diffstat (limited to 'articles.py')
-rw-r--r--articles.py61
1 files changed, 61 insertions, 0 deletions
diff --git a/articles.py b/articles.py
new file mode 100644
index 00000000..76c8be3d
--- /dev/null
+++ b/articles.py
@@ -0,0 +1,61 @@
+#! /usr/local/bin/python
+#-*- coding: utf-8 -*-
+
+# pyAggr3g470r - A Web based news aggregator.
+# Copyright (C) 2010 Cédric Bonhomme - http://cedricbonhomme.org/
+#
+# For more information : http://bitbucket.org/cedricbonhomme/pyaggr3g470r/
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>
+
+__author__ = "Cedric Bonhomme"
+__version__ = "$Revision: 0.1 $"
+__date__ = "$Date: 2010/12/02 $"
+__copyright__ = "Copyright (c) 2010 Cedric Bonhomme"
+__license__ = "GPLv3"
+
+
+
+class Feed(object):
+ """
+ Represent a stream (RSS, ATOM).
+ """
+ def __init__(self):
+ """
+ """
+ self.feed_id = ""
+ self.feed_image = ""#feed_image
+ self.feed_title = ""#feed_title
+ self.feed_link = ""#feed_link
+ self.feed_site_link = ""#feed_site_link
+ self.mail = ""#mail
+ self.nb_articles = ""#nb_articles
+ self.nb_unread_articles = ""#nb_unread_articles
+ self.articles = []#articles_list
+
+
+class Article(object):
+ """
+ Represent an article.
+ """
+ def __init__(self):
+ """
+ """
+ self.article_id = ""#article_id
+ self.article_date = ""#article_date
+ self.article_title = ""#article_title
+ self.article_link = ""#article_link
+ self.article_description = ""#article_description
+ self.article_readed = ""#article_readed
+ self.like = ""#like \ No newline at end of file
bgstack15