-/*
+/*
Unix SMB/CIFS implementation.
Samba utility functions
Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2008-2010
-
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
dict = type->tp_dict;
for (i = 0; methods[i].ml_name; i++) {
PyObject *descr;
- if (methods[i].ml_flags & METH_CLASS)
+ if (methods[i].ml_flags & METH_CLASS)
descr = PyCFunction_New(&methods[i], (PyObject *)type);
- else
+ else
descr = PyDescr_NewMethod(type, &methods[i]);
- PyDict_SetItemString(dict, methods[i].ml_name,
+ PyDict_SetItemString(dict, methods[i].ml_name,
descr);
Py_CLEAR(descr);
}
PyObject *Py_UNUSED(ignored))
{
struct security_token *token = pytalloc_get_ptr(self);
-
+
return PyBool_FromLong(security_token_is_anonymous(token));
}
PyObject *Py_UNUSED(ignored))
{
struct security_token *token = pytalloc_get_ptr(self);
-
+
return PyBool_FromLong(security_token_is_system(token));
}
PyObject *Py_UNUSED(ignored))
{
struct security_token *token = pytalloc_get_ptr(self);
-
+
return PyBool_FromLong(security_token_has_builtin_administrators(token));
}
PyObject *Py_UNUSED(ignored))
{
struct security_token *token = pytalloc_get_ptr(self);
-
+
return PyBool_FromLong(security_token_has_nt_authenticated_users(token));
}