From 559412aca5400bb3b43c8ec3a15b536ce83836b5 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Thu, 2 Dec 2010 23:39:24 +0100 Subject: Scheißdreck, j'avais oublié un fichier. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles.py | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 articles.py (limited to 'articles.py') 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 + +__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 -- cgit