def add_library(self, name):
        """Add a library to the database

        This method is for adding a library by name (eg: "BuiltIn")
        rather than by a file.
        """
        libdoc = LibraryDocumentation(name)
        if len(libdoc.keywords) > 0:
            # FIXME: figure out the path to the library file
            collection_id = self.add_collection(None, libdoc.name, libdoc.type,
                                                libdoc.doc, libdoc.version,
                                                libdoc.scope, libdoc.named_args,
                                                libdoc.doc_format)
            self._load_keywords(collection_id, libdoc=libdoc)
def add_library ( self , name ) : libdoc = LibraryDocumentation ( name ) if len ( libdoc . keywords ) > 0 : collection_id = self . add_collection ( None , libdoc . name , libdoc . type , libdoc . doc , libdoc . version , libdoc . scope , libdoc . named_args , libdoc . doc_format ) self . _load_keywords ( collection_id , libdoc = libdoc )
Add a library to the database

        This method is for adding a library by name (eg: "BuiltIn")
        rather than by a file.