For pkit
entries.get_list(pub_date__year=2005, pub_date__month=11)
TextSnippets > python >
Post code snippets. Sort by tags, people, people and tags, etc..
| « Earlier | 4 items total | Later » |
entries.get_list(pub_date__year=2005, pub_date__month=11)
"^(/[^media]/.*)$" => "/main.fcgi$1"
"^(/[^media].*)$" => "/main.fcgi$1"
def allow_comments(self):
return datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date
{% if entry.allow_comments %}
... display the comment form here ...
{% endif %}
import os, re
output_file = open('/path/to/output/file', 'a')
email_pat = re.compile('^\d+\.$')
[output_file.write(open(email).read().split('From: ')[1]) for email in os.listdir(os.getcwd()) if email_pat.match(email)]
| « Earlier | 4 items total | Later » |