util:http: special handling for HTTP_USER_ERROR in get_post_url().
[be.git] / libbe / comment.py
index ed38d0b2de434a15ec3e9f8c9ba0286a090bf52b..a669e4e5012e180f229ca324426dbee53d64994b 100644 (file)
@@ -19,7 +19,7 @@
 # You should have received a copy of the GNU General Public License along with
 # Bugs Everywhere.  If not, see <http://www.gnu.org/licenses/>.
 
-"""Define the :class:`Comment` class for representing bug comments.
+"""Define :py:class:`Comment` for representing bug comments.
 """
 
 import base64
@@ -93,7 +93,7 @@ def save_comments(bug):
 
 
 class Comment (Tree, settings_object.SavedSettingsObject):
-    """Comments are a notes that attach to :class:`~libbe.bug.Bug`\s in
+    """Comments are a notes that attach to :py:class:`~libbe.bug.Bug`\s in
     threaded trees.  In mailing-list terms, a comment is analogous to
     a single part of an email.
 
@@ -199,8 +199,8 @@ class Comment (Tree, settings_object.SavedSettingsObject):
         if ``from_storage==False`` (the default).  When
         ``from_storage==True``, they are loaded from the bug database.
         ``content_type`` decides if the body should be run through
-        :func:`util.id.short_to_long_text` before saving.  See
-        :meth:`_set_comment_body` for details.
+        :py:func:`util.id.short_to_long_text` before saving.  See
+        :py:meth:`_set_comment_body` for details.
 
         ``in_reply_to`` should be the uuid string of the parent comment.
         """
@@ -609,7 +609,7 @@ class Comment (Tree, settings_object.SavedSettingsObject):
             return
         if settings_mapfile == None:
             settings_mapfile = self.storage.get(
-                self.id.storage('values'), '\n')
+                self.id.storage('values'), '{}\n')
         try:
             settings = mapfile.parse(settings_mapfile)
         except mapfile.InvalidMapfileContents, e: