Commits

Cédric Bonhomme  committed 457eb81

Added comments in models.py.

  • Participants
  • Parent commits 012c00a

Comments (0)

Files changed (1)

File pyaggr3g470r/models.py

 # along with this program.  If not, see <http://www.gnu.org/licenses/>
 
 __author__ = "Cedric Bonhomme"
-__version__ = "$Revision: 0.2 $"
+__version__ = "$Revision: 0.3 $"
 __date__ = "$Date: 2013/11/05 $"
-__revision__ = "$Date: 2013/13/05 $"
+__revision__ = "$Date: 2013/11/16 $"
 __copyright__ = "Copyright (c) Cedric Bonhomme"
 __license__ = "GPLv3"
 
 import bson.objectid
 
 class User(Document, UserMixin):
+    """
+    Defines the model for a user.
+    """
     firstname  = StringField(required=True)
     lastname = StringField(required = True)
     email = EmailField(required=True, unique=True)
         return self.email
 
 class Feed(EmbeddedDocument):
+    """
+    Defines the model for a feed.
+    """
     oid = ObjectIdField(default=bson.objectid.ObjectId , primary_key=True)
     title = StringField(required=True)
     link = StringField(required=True, unique=True)
         return 'Feed: %s' % self.title
 
 class Article(Document):
+    """
+    Defines the model for an article.
+    """
     date = DateTimeField(required=True)
     link = StringField(required=True)
     title = StringField(required=True)