Re: problems generating code from dia 0.96 to 0.97

At 08.02.2012 11:40, Ottavio Campana wrote:

I wrote a plugin based on that takes an UML diagram and
generates code. The diagram consists only of classes and aggregations.

What I'm trying to do is extracting some informations from the
aggregations that connect couples of classes. The code is

[code snippet deleted]

It works perfectly on dia 0.96 . But when I try to run it in dia 0.97
c.connected is always empty.

I know there were changes in 0.97,
Really? Which changes?

how am I supposed to do scan all the aggregations?

I'm not aware of any changes regarding connections between 0.96 and 0.98 - or even current master. But if you want help debugging your script posting the full version might help.

I also have another question: suppose I want to make my python plugin
work both with dia 0.96 and 0.97. Is there a way to get the version of
dia in the plugin?

Not the version of Dia, but every ObjectType has a read-only version member.

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]