doc: Add missing python function
authorTomas Mlcoch <tmlcoch@redhat.com>
Tue, 10 Sep 2013 14:48:38 +0000 (16:48 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Tue, 10 Sep 2013 14:48:38 +0000 (16:48 +0200)
doc/python/conf.py
doc/python/lib.rst
src/python/__init__.py

index 7602eed9f3747cde1e55f57951d2e0992b82fb23..2ca3a9ffb6bfe49f3c57d1eb316ba1de964a2dc2 100644 (file)
@@ -243,8 +243,8 @@ texinfo_documents = [
 #texinfo_show_urls = 'footnote'
 
 def skip(app, what, name, obj, skip, options):
-    #if what == "module" and type(obj).__name__ == "builtin_function_or_method":
-    #    return False
+    if what == "module" and type(obj).__name__ == "builtin_function_or_method":
+        return False
     if name == "__init__":
         return type(obj).__name__ == "wrapper_descriptor"
     return skip
index 425df5330370063ca08707a3576d0c7d3a4b25fa..9412f163bf123ef7b943b338902769fe9f4b9745 100644 (file)
@@ -11,3 +11,13 @@ Createrepo_c includes several classes.
    :inherited-members:
    :private-members:
    :member-order: bysource
+
+.. autofunction:: xml_dump_primary
+.. autofunction:: xml_dump_filelists
+.. autofunction:: xml_dump_other
+.. autofunction:: xml_dump
+.. autofunction:: checksum_name_str
+.. autofunction:: checksum_type
+.. autofunction:: compress_file_with_stat
+.. autofunction:: compression_suffix
+.. autofunction:: detect_compression
index d74f1c72c8dd5d4dfac5804850ebbc1dc6b37a11..b9b0f749c2c0cc38786ee0b3a7ff9606cd1105ea 100644 (file)
@@ -209,11 +209,6 @@ class OtherXmlFile(XmlFile):
 
 # Functions
 
-xml_dump_primary    = _createrepo_c.xml_dump_primary
-xml_dump_filelists  = _createrepo_c.xml_dump_filelists
-xml_dump_other      = _createrepo_c.xml_dump_other
-xml_dump            = _createrepo_c.xml_dump
-
 def package_from_rpm(filename, checksum_type=SHA256, location_href=None,
                      location_base=None, changelog_limit=10):
     """:class:`.Package` object from the rpm package"""
@@ -226,6 +221,11 @@ def xml_from_rpm(filename, checksum_type=SHA256, location_href=None,
     return _createrepo_c.xml_from_rpm(filename, checksum_type,
                       location_href, location_base, changelog_limit)
 
+xml_dump_primary    = _createrepo_c.xml_dump_primary
+xml_dump_filelists  = _createrepo_c.xml_dump_filelists
+xml_dump_other      = _createrepo_c.xml_dump_other
+xml_dump            = _createrepo_c.xml_dump
+
 def xml_parse_primary(path, newpkgcb=None, pkgcb=None,
                       warningcb=None, do_files=1):
     """Parse primary.xml"""