title: Pydev Nodebox: "AttributeError: 'NoneType' object has no attribute 'WIDTH'"
body: <p>I am trying to create a graph of the connections between the users in my database using nodebox(ubuntu 12.04, python 2.7, django 1.3), but when I enter the following instructions, I get the error message underneath it:</p>
  
  <pre><code>"""    
  g.draw(weighted=False, directed=False, highlight=[], traffic=None)  
  Traceback (most recent call last):  
    File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2721, in run_code  
      exec code_obj in self.user_global_ns, self.user_ns  
    File "&lt;ipython-input-1-0a219395b690&gt;", line 1, in &lt;module&gt;  
      g.draw(weighted=False, directed=False, highlight=[], traffic=None)  
    File "/home/raymond/Documents/exchange/cet/cet/graph/__init__.py", line 453, in draw
      self.update()  
    File "/path/to/myproject//graph/__init__.py", line 416, in update  
      self.x = _ctx.WIDTH - max.x*self.d - min_.x*self.d  
  AttributeError: 'NoneType' object has no attribute 'WIDTH'  
  
  """
  </code></pre>
  
  <p>How can I get nodebox to draw my graph? should I add a try/catch or if statement to graph/<strong>init</strong>.py in order to prevent object of type none from being written to? I know displaying more code would help solve the problem faster; I am running into formatting problem, but I will add code to the question as soon as I can.</p>