title: Undefined constants in eclipse
body: <p>I'm using eclipse/aptana for python development.
  I have no issue with my python path config, autocomplete works fine with everything, however I am having the following problem:</p>
  
  <p>When I have a "constant" in one of my classes and I try to access it, eclipse complains about <strong>"undefined variable from import"</strong> on the constant, eg</p>
  
  <pre class="lang-py prettyprint-override"><code>class Universe(object):
      ULTIMATE_ANSWER = 42
  
  # in different module
  # edit from: import Universe
  from bigbang.models import Universe
  print Universe.ULTIMATE_ANSWER
  </code></pre>
  
  <p>where Universe.ULTIMATE_ANSWER triggers the warning.
  Additionally, autocomplete works fine, so when I type Universe.x I do get all the constants proposed.</p>
  
  <p>It's not an urgent issue, however it tends to become annoying, and might make you ignore actual errors.</p>
  
  <p>Any idea on how to make eclipse behave on this one? :)</p>
  
  <p>Edit:
  This only happens when importing the class in a another module.</p>
  
  <p>Edit 2:
  In case it's not clear above, the code works, this is just about the warning that shouldn't be there...
  I have tried and replicated this on projects other than mine, both in eclipse and aptana with pydev.</p>
  
  <p>Edit 3:
  As with the comments bellow, this is probably a bug in pydev. Submitted and waiting...</p>