def getItemType(self, itemID):
        """
            :desc: Given an itemID, return the "type" i.e. the collection
                   it belongs to.
            :param int itemID: The item ID, an integer
            :returns: The note type
            :rval: str
        """

        collections = self.getAllItemTypes()

        for coll in collections:
            note = self.noteDB[coll].find_one({"ID": itemID})
            if note is not None:
                return coll
def getItemType ( self , itemID ) : collections = self . getAllItemTypes ( ) for coll in collections : note = self . noteDB [ coll ] . find_one ( { "ID" : itemID } ) if note is not None : return coll
:desc: Given an itemID, return the "type" i.e. the collection
                   it belongs to.
            :param int itemID: The item ID, an integer
            :returns: The note type
            :rval: str