diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-04-01 19:55:13 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-04-01 19:55:13 +0200 |
| commit | 17b0dc6856855f2cd46d234357f0de584db2019e (patch) | |
| tree | b17863d7e0c27290c98dc3f19846d44aab27666b /python/metaindex.cc | |
| parent | c3d6edddcdcd40ff7477430a20a3e3be7e188963 (diff) | |
| download | python-apt-17b0dc6856855f2cd46d234357f0de584db2019e.tar.gz | |
python: Document every class, function, property.
Finally, a complete reference to apt_pkg available
via pydoc and __doc__ attributes.
Diffstat (limited to 'python/metaindex.cc')
| -rw-r--r-- | python/metaindex.cc | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/python/metaindex.cc b/python/metaindex.cc index cb066980..66aa76fb 100644 --- a/python/metaindex.cc +++ b/python/metaindex.cc @@ -48,10 +48,13 @@ static PyObject *MetaIndexGetIndexFiles(PyObject *Self,void*) { } static PyGetSetDef MetaIndexGetSet[] = { - {"dist",MetaIndexGetDist}, - {"index_files",MetaIndexGetIndexFiles}, - {"is_trusted",MetaIndexGetIsTrusted}, - {"uri",MetaIndexGetURI}, + {"dist",MetaIndexGetDist,0,"The distribution, as a string."}, + {"index_files",MetaIndexGetIndexFiles,0, + "A list of all IndexFile objects associated with this meta index."}, + {"is_trusted",MetaIndexGetIsTrusted,0, + "A boolean value determining whether the file can be trusted."}, + {"uri",MetaIndexGetURI,0, + "The uri the meta index is located at."}, {} }; @@ -66,6 +69,12 @@ static PyObject *MetaIndexRepr(PyObject *Self) } #undef S + +static const char *metaindex_doc = + "Represent a meta index, i.e. a Release file. This class provides\n" + "some information about those release files, e.g. whether they\n" + "are signed or not."; + PyTypeObject PyMetaIndex_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) @@ -89,7 +98,7 @@ PyTypeObject PyMetaIndex_Type = 0, // tp_setattro 0, // tp_as_buffer Py_TPFLAGS_DEFAULT, // tp_flags - "apt_pkg.MetaIndex Object", // tp_doc + metaindex_doc, // tp_doc 0, // tp_traverse 0, // tp_clear 0, // tp_richcompare |
