Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(73)  |  Call(11)  |  Derive(3)  |  Import(59)

src/t/h/TheMingBlogger-1.0/TheMingBlogger/LibBlog.py   TheMingBlogger(Download)
 
import os, re
from Article import Article
from stat import S_ISDIR, ST_MODE
from dircache import listdir
	def content(self, dir, author, email):
		"""Gets information from each entry using Article.py"""
		if self.DATA.has_key('article'): # For viewing one specific entry
			article = Article(self, os.path.join(self.DIR, dir), author, email)
			a = article.get_article(self.DATA['article'].value, 1)
			if len(files) > self.N: files = files[-self.N:]
			files.reverse()
			article = Article(self, os.path.join(self.DIR, dir), author, email)
			for file in files:
				a = article.get_article(file)