Hello;
I was playing around with synopsis to make a quick UML
diagram of an IDL. Very nice! Using the CVS version of
synopsis, I had a couple of problems with Dia output:
1. There was an import problem where Dia.py imports a
Visitor class from Core, which it doesn't use.
2. When you have more than one layer of modules and
interfaces, you get back a python list, which you can't
put in as a hash key, since it's mutable. ie, for
module TopLevel {
interface SpamLevel {
decl.name() is ["TopLevel", "SpamLevel"].
To fix this, I checked for a list type, and just
converted it to a tuple before hashing it.
I hope these help -- I don't know much about synopsis
internals, so my apologies if the patch isn't exactly
what you need.
Brad
diff for Formatter.Dia