Skip to content

Commit

Permalink
POST on a post forces regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
rctay committed Apr 27, 2012
1 parent 53e7c97 commit aac3079
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion handlers.py
Expand Up @@ -101,7 +101,7 @@ def post(self, post):
post.updated = post.published = datetime.datetime.now()
else:# Edit post
post.updated = datetime.datetime.now()
post.publish()
post.publish(regenerate=True)
self.render_to_response("published.html", {
'post': post,
'draft': form.clean_data['draft']})
Expand Down
2 changes: 1 addition & 1 deletion lib/aetycoon
Submodule aetycoon updated 2 files
+6 −1 README
+429 −49 __init__.py
3 changes: 1 addition & 2 deletions models.py
Expand Up @@ -89,8 +89,7 @@ def summary_hash(self):
val = (self.title, self.summary, self.tags, self.published)
return hashlib.sha1(str(val)).hexdigest()

def publish(self):
regenerate = False
def publish(self, regenerate=False):
if not self.path:
num = 0
content = None
Expand Down

0 comments on commit aac3079

Please sign in to comment.