File: iblogengine.py

package info (click to toggle)
nevow 0.9.31-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,804 kB
  • ctags: 4,921
  • sloc: python: 19,639; ansic: 136; sh: 53; xml: 42; makefile: 25; sql: 5
file content (17 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from zope.interface import Interface

class IStore(Interface):
    """ Interface used to remember the store in the site object """
    
class IBlog(Interface):
    """ Represents the Blog Powerup in the Store """
    def addNewPost(post):
        """ Add the user provided post instance to the blog """
    def getPosts(how_many = None):
        """ Get the last X posts, if how_many is not specified, gets all of them """

    def getOne(id):
        """ Get the post with the corresponding id from the store """

    def getNextId():
        """ Get the next free id in the store """