aboutsummaryrefslogtreecommitdiff
path: root/articles.py
blob: cdbe689a5985f1e276465e2c9d3dc524bca62583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#! /usr/bin/env 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) Cedric Bonhomme"
__license__ = "GPLv3"

from collections import OrderedDict

class Feed(object):
    """
    Represent a stream (RSS, ATOM, etc.).
    """
    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 = OrderedDict()#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
bgstack15