NPCGenerator: Secure XMLRPC Server
 

This server hosts an NPC data and code synchronizer for the GURPS NPC Generator.
        To connect to it, run the Windows client (download available at:
        http://ayinger.no-ip.info/zip/NPCGen.zip), and goto the "NPCData" Menu, or press CNTL-Y.
        To browse NPCs that have been stored, goto: http://ayinger.no-ip.info/NPCGen/NPCGenBrowser

 
Methods
       
getFullNamesCache()
return a full cache of names found on the server
getRepositoryCodeDiffs(clientRepository)
compare clientRepository with CODE repository on server; return map of diffs
getRepositoryDataDiffs(clientRepository, firstUpdate=False)
compare clientRepository with DATA repository on server; return map of diffs
getTemplateDataFromServer()
return pickled python objects that can be loaded directly from server
getZippedFileData(basePath)
send basePath file to client (must call zlib.decompress(binary.data) on the client)
sendZippedFileData(binaryHash, basePath, fileMTime, fileData)
send filedata to server repository; basePath is "dirname/filename" path (a string); fileData is data in binary, zipped format
storeNPC(binNPC, version=1.0)
store an NPC from client to browseable database on server; return id of new database row