From 81411e3361712692b1d0ebcb6cc1630a60869f38 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 18 Nov 2008 15:20:23 -0800 Subject: [PATCH] Removing blog tag since it's not used. --- tools/convert_blog_to_forum.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tools/convert_blog_to_forum.py b/tools/convert_blog_to_forum.py index d36f721..37e471e 100755 --- a/tools/convert_blog_to_forum.py +++ b/tools/convert_blog_to_forum.py @@ -71,19 +71,6 @@ class Blog_converter( object ): # load the forum tag forum_tag = self.database.select_one( Tag, Tag.sql_load_by_name( u"forum", user_id = anonymous.object_id ) ) - # load the blog tag, or create one if it doesn't exist - blog_tag = self.database.select_one( Tag, Tag.sql_load_by_name( u"blog", user_id = anonymous.object_id ) ) - if not blog_tag: - tag_id = self.database.next_id( Tag, commit = False ) - blog_tag = Tag.create( - tag_id, - notebook_id = None, # this tag is not in the namespace of a single notebook - user_id = anonymous.object_id, - name = u"blog", - description = u"web log" - ) - self.database.save( blog_tag, commit = False ) - # associate the forum tag with the previously created notebook thread, and set that # association's value to the forum name self.database.execute( @@ -91,12 +78,6 @@ class Blog_converter( object ): commit = False, ) - # associate the blog tag with the previously created notebook thread - self.database.execute( - anonymous.sql_save_notebook_tag( notebook_id, blog_tag.object_id ), - commit = False, - ) - # give the anonymous user access to the new notebook thread self.database.execute( anonymous.sql_save_notebook( notebook_id, read_write = True, owner = False, own_notes_only = True ),