![](https://secure.gravatar.com/avatar/d38f97da234448d868e14c512bad372e.jpg?s=120&d=mm&r=g)
Clark, I just got around to trying out your suggestion of UML diagrams of my Twisted application (PyUmlGraph and graphviz). I have both applications working, but PyUmlGraph requires a running python application. I tried using PyUmlGraph with a .tac file that I had started as a twistd daemon. This .tac file contains code that instantiates a few Portals (and Realms tied to the Portals) for the purpose of running a Perspective Broker Server (listening on a specific port). PyUmlGraph seems limited because it only captures intantiated objects at run time (thus the python code that PyUmlGraph runs must have all of the objects of interest instantiated based on the moment that PyUmlGraph runs the code through the python interpreter). Thus, if you have a Twisted (PB Server) application running and TCP listening to a port (I.e., port 8000), sinces its waiting for asynchronous responses (such as from a PB Client connection and login), I don't know of any way to run PyUmlGraph in order to capture the objects that are instantiated by an asynchronous trigger. Maybe I'm missing something. Do you have any suggestions on how to use PyUmlGraph in this regard? Cheers, Serj
From: "Clark C. Evans" <cce@clarkevans.com> Reply-To: "Discussion of twisted.web, Nevow,and Woven" <twisted-web@twistedmatrix.com> To: twisted-web@twistedmatrix.com Subject: Re: [Twisted-web] Diagraming Twisted apps Date: Sun, 22 Aug 2004 14:06:43 -0400
On Sun, Aug 22, 2004 at 10:51:12AM -0400, Sergio Trejo wrote: | Has anyone tried using Dia?
I use graphviz and a UML graphing tool based on its dot files. http://www.zipcon.net/~adamf/software/PyUmlGraph/ http://www.research.att.com/sw/tools/graphviz/
Clark
_______________________________________________ Twisted-web mailing list Twisted-web@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail