Show
Ignore:
Timestamp:
08/09/08 10:44:55 (4 years ago)
Author:
mwhitworth
Message:

Add constants and extra functions to console and registry.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/user/sdk/python/registry/main.c

    r843 r845  
    7979         
    8080        if (RegKeySetOpen(&self->registry, name, accessRights, &keySet)) 
    81         { 
    82                 Py_INCREF(Py_None); 
    83                 return Py_None; 
    84         } 
     81                return PyErr_Format(PyExc_KeyError, "Could not find key %s", name); 
    8582                         
    8683        regKeySet=PyObject_GC_New(WRegKeySet, &wRegKeySet_Type); 
     
    197194                                        (PyObject *)&wRegKeySetIter_Type) < 0) 
    198195                return; 
     196                 
     197        PyModule_AddIntConstant(m, "EntryKey", 0); 
     198        PyModule_AddIntConstant(m, "EntryKeySet", 1); 
    199199}