from orm import orm
from django.utils.encoding import force_unicode
-from django.db.utils import IntegrityError
try:
from cPickle import loads, dumps
post.save()
all.append(int(post.id))
+ create_and_activate_revision(post)
del post
action_date = oc.added_at
)
+ create_and_activate_revision(oc)
+
create_action.save()
oc.save()
tags = [tag for tag in [tagmap.get(name.strip()) for name in post.tagnames.split(u' ') if name] if tag]
post.tagnames = " ".join([t.name for t in tags]).strip()
post.tags = tags
- create_and_activate_revision(post)
def create_and_activate_revision(post):
author_id = 1
)
+ create_and_activate_revision(page)
+
page.save()
registry[sxp['url'][1:]] = page.id