Browse Source

[1866] added one special RRclass constant by hand: NONE

JINMEI Tatuya 12 years ago
parent
commit
1ec1ffb481
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/lib/dns/python/pydnspp.cc

+ 4 - 0
src/lib/dns/python/pydnspp.cc

@@ -435,6 +435,10 @@ initModulePart_RRClass(PyObject* mod) {
 
         // Incorporate auto-generated RRClass constants
 #include <dns/python/rrclass_constants_inc.cc>
+
+        // We still need to define some special classes by hand (for now)
+        installClassVariable(rrclass_type, "NONE",
+                             createRRClassObject(RRClass::NONE()));
     } catch (const std::exception& ex) {
         const std::string ex_what =
             "Unexpected failure in RRClass initialization: " +