Hi, I currently working on the new MindMapMacro which turns a wiki list into a Freemind MindMap and displayes it using Flash. For this I convert first the content of the macro (a wiki list) into the Freemind XML format and generate the required Flash HTML code. The flash app needs the content as file, so a unique link (/mindmap/<MD5HASH>.mm) is added which is handled by implementing a IRequestHandler. However, because both macro and request call happen separately a way to cache the mindmap data produced by IWikiMacroProvider is needed so that it can be sent by the IRequestHandler later. My first tests with a simple file-global dictionary works well on my local standalone test Trac installation but caused funny results on my real-life Apache2 Trac server. I figured that the different child processes of Apache do not share the same dictionary and therefore it only works if the user gets the same child for both requests.
Python is not my primary programming language, so I don't now if there is a good way to create such caches which span over multiple child processes. My next idea is to use a temporary table to store the (hash,content) pairs. Such a table would be dropped when trac is restarted which is the indented behavior. I would greatly appreciate any comments and hints about this topic. Martin _______________________________________________ th-users mailing list [email protected] https://lists.trac-hacks.org/mailman/listinfo/th-users
