]> git.saurik.com Git - wxWidgets.git/commitdiff
suspend logging while in wx.DataFormat.GetId
authorRobin Dunn <robin@alldunn.com>
Sun, 21 Jan 2007 07:07:07 +0000 (07:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 21 Jan 2007 07:07:07 +0000 (07:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_dataobj.i

index 996469245c0664aa4eb0dad840dfd477205970a7..f7878086821c8de04c16bf83eda0ab78e0a716dc 100644 (file)
@@ -114,10 +114,14 @@ constants.", "");
         "Returns the platform-specific number identifying the format.", "");
     
 
-    DocDeclStr(
-        wxString , GetId() const,
-        "Returns the name of a custom format (this function will fail for a
-standard format).", "");
+    %Rename(_GetId, wxString , GetId() const);
+    %pythoncode {
+        def GetId(self):
+            """Returns the name of a custom format (this function will fail for a
+standard format)."""
+            nolog = wx.LogNull()
+            return self._GetId()
+    }
     
     DocDeclStr(
         void , SetId(const wxString& format),