Package Pyblosxom :: Package entries :: Module base
[hide private]
[frames] | no frames]

Module base

source code

This module contains the base class for all the Entry classes. The EntryBase class is essentially the API for entries in PyBlosxom. Reading through the comments for this class will walk you through building your own EntryBase derivatives.

This module also holds a generic generate_entry function which will generate a BaseEntry with data that you provide for it.

Classes [hide private]
  EntryBase
EntryBase is the base class for all the Entry classes.
Functions [hide private]
 
generate_entry(request, properties, data, mtime)
Takes a properties dict and a data string and generates a generic entry using the data you provided.
source code
Variables [hide private]
  __revision__ = '$Revision: 935 $'
  BIGNUM = 2000000000
  CONTENT_KEY = 'body'
  DOESNOTEXIST = 'THISKEYDOESNOTEXIST'
  DOESNOTEXIST2 = 'THISKEYDOESNOTEXIST2'
Function Details [hide private]

generate_entry(request, properties, data, mtime)

source code 
Takes a properties dict and a data string and generates a generic entry using the data you provided.
Parameters:
  • request (Request) - the Request object
  • properties (dict) - the dict of properties for the entry
  • data (string) - the data content for the entry
  • mtime (tuple of ints) - the mtime tuple (as given by time.localtime()). if you pass in None, then we'll use localtime.