Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#36 Attribute error in UmlClassDiagramsFrame - a fix is included

v1.3a1
closed-fixed
Interface (13)
5
2003-12-27
2003-10-12
Ben Trussell
No

When attempting to create a new sequence diagram
instance object, I get this error:

-----------------------------snip-begin-----------------------
The following error occured : UmlClassDiagramsFrame
instance has no attribute 'createNewSDInstance'

---------------------------
Error : exceptions.AttributeError
Msg : UmlClassDiagramsFrame instance has no attribute
'createNewSDInstance'
Trace :
('mediator.py', 480, 'doAction', 'instance =
umlFrame.createNewSDInstance(x, y)

An error occured while trying to do this action
-----------------------------snip-end-----------------------

I was able to make pyut create a new sequence diagram
instance object by adding the following at line 19 to
UmlClassDiagramsFrame.py:

-----------
class UmlClassDiagramsFrame(UmlDiagramsFrame):

originally was:

class UmlClassDiagramsFrame(UmlDiagramsFrame,
UmlSequenceDiagramsFrame):
-------------

Adding class UmlSequenceDiagramsFrame inheritance to
class UmlClassDiagramsFrame allows the line on 480 of
mediator.py to work, and allows the application to
create the sequence diagram instance object.

mediator.py seems to need for the call to UmlFrame in
this case/context to be as UmlSequenceDiagramsFrame
instead of UmlClassDiagramsFrame, since
UmlClassDiagramsFrame is reporting the problem even
though when I tried to open a sequence diagram instance
object. The above fix seems to work in a pinch, and
makes the apps function.

Discussion

  • Ben Trussell
    Ben Trussell
    2003-10-12

    • labels: --> Interface
    • status: open --> open-works-for-me
     
  • Ben Trussell
    Ben Trussell
    2003-10-12

    • priority: 5 --> 6
     
  • Ben Trussell
    Ben Trussell
    2003-10-12

    Logged In: YES
    user_id=885297

    PS: pyut version 1.3b1

     
  • Ben Trussell
    Ben Trussell
    2003-10-12

    • summary: Attribute error in UmlClassDiagramsFrame --> Attribute error in UmlClassDiagramsFrame - a fix is included
     
  • Ben Trussell
    Ben Trussell
    2003-10-12

    Logged In: YES
    user_id=885297

    Update. Of course it might have something to do with trying
    to add a sequence diagram instance object to a **Class
    Diagram** . Perhaps this needs instead to cause a pop-up
    error inidicating that the user tried to do something that
    doesn't make sense to do, or maybe users like me should be
    allowed to add it, then figure it all out when the errors
    come generating code for the Class later :) I haven't tried
    to yet, but should be interesting to see what the
    UmlClassDiagramsFrame Class does for code export with its
    new SequenseDiagramsFrame inheritance properties :)

     
  • Ben Trussell
    Ben Trussell
    2003-10-12

    • status: open-works-for-me --> open
     
  • Cédric Dutoit
    Cédric Dutoit
    2003-12-26

    Logged In: YES
    user_id=64541

    You're right, this work.
    But I don't think that melting classes and sequences objets
    are good.
    This is why you have two types of diagrams : classes and
    sequences.
    This last is actually the only way to make sequences diagrams.

    C.Dutoit

     
  • Cédric Dutoit
    Cédric Dutoit
    2003-12-26

    • assigned_to: nobody --> dutoitc
    • status: open --> closed-wont-fix
     
  • Cédric Dutoit
    Cédric Dutoit
    2003-12-27

    Logged In: YES
    user_id=64541

    Thanks for your feedback.
    I've added an alert message.

     
  • Cédric Dutoit
    Cédric Dutoit
    2003-12-27

    • priority: 6 --> 5
    • milestone: --> v1.3a1
    • status: closed-wont-fix --> closed-fixed