pynsource icon indicating copy to clipboard operation
pynsource copied to clipboard

Class attribute associations not created

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

What steps will reproduce the problem?
1. Import gameemap.py (attached)
2. Look at the resulting UML for class _GameMapsManager
3. Look particularly at the attribute 'relations'

What is the expected output? What do you see instead?

Expect association pointer line FROM class _GameMapsManager TO class 
BigRelationshipManager1 but none exists.

Code seems clear enough, though these are CLASS ATTRIBUTES not instance 
attributes, which is what the problem probably is.

class _GameMapsManager(object):   # <<friend>>
    """
    Just call _GameMapsManager() any time you want a reference to
    the _GameMapsManager - you will get the same instance all the time.
    """

    relations = BigRelationshipManager1()
##    relations = relationshipManager()
    gamemaps = []
    quadrantsBucket = {}
    scenario = None

Original issue reported on code.google.com by [email protected] on 15 Jul 2012 at 1:56

Attachments:

  • gamemap.py
  • [class variables should point.gif](https://storage.googleapis.com/google-code-attachments/pynsource/issue-8/comment-0/class variables should point.gif)

GoogleCodeExporter avatar Mar 15 '15 07:03 GoogleCodeExporter