Post Object

In order to be able to do any customization programming for pyBlog, it is important you understand how a post object is structured. It can have up to four instance variables: data_dict, template, and post.

page_location

Stores the location of where the posting page is. Fetched from the posts.conf file.

data_dict

data_dict is a dictionary containing all the info passed in from post.py. The keys are the field names given from the input.conf file. The values are whatever were entered by the user into post.py. This info is used in conjunction with self.template to generate the post.

template

This instance variable stores the post template. This is essentially just a copy of the templates/post.html file stored locally for faster use and possible referencing.

post

This variable stores the final HTML version of the post.

pyBlog 1.0; 2001-09-10