On Thu, Oct 17, 2013 at 1:53 PM, Sarvi Shanmugham <sarvil...@gmail.com>wrote:

> I added a return to the begining of the addWindowListener function and it
> skipped that error
> and hit another similar to the last one
>
> I made a couple of more fixes. I got the error below
> init <pyjs.runners.giwebkit.RunnerContext object at 0x10a0699d0> True
> Traceback (most recent call last):
>   File "KitchenSink.py", line 117, in <module>
>     pyjd.setup("public/KitchenSink.html")
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/__init__.py", line 68, in
> setup
>     listener()
>   File "/Users/sarvi/Workspace/pyjs/pyjswidgets/pyjamas/History.py", line
> 109, in init
>     hash = wnd().location.hash
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 408,
> in __call__
>     return self.getattr(inst, key)
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 413,
> in getattr
>     attr = impl(inst, key)
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 423,
> in getattr_gi
>     if inst.get_data(key) is None:
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gi/overrides/GObject.py",
> line 590, in _unsupported_data_method
>     raise RuntimeError('Data access methods are unsupported. '
> RuntimeError: Data access methods are unsupported. Use normal Python
> attributes instead
>
> And made a change to hasattr() along the same lines as your suggestion
> above.
>
> Then I got the following
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 438,
> in getattr_w3
>     attr = self._custom[key].bind(key)
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 360,
> in bind
>     return types.MethodType(cls(key), None, owner)
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 328,
> in __init__
>     Soup.URI.new()
> TypeError: new() takes exactly 1 argument (0 given)
>
> I just changed that to take Scoup.URI.new('http://www.google.com')
>
> and then I hit this
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 438,
> in getattr_w3
>     attr = self._custom[key].bind(key)
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 360,
> in bind
>     return types.MethodType(cls(key), None, owner)
>   File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 332,
> in __init__
>     doc = app._doc
> NameError: global name 'app' is not defined
>
> When I was looking through, I am not sure I understand how this code has
> been working so far, coz "app" is not
> defined gloablly.
>
> What am I missing.
> I could wait for you to finish up the addEventListener, but I suspect
> thats not gonna address any of this.
> So let me know if it is helpful for me to pursue this.
>

so i was looking into this... and i have absolutely no idea what changed,
webkit or gobject-introspection, but AFAICT... add_event_listener is NOW
SUPPORTED OUT OF THE BOX.

i'm going to spend a few minutes on this so i'll ping when done... go ahead
and stand by until then, i'll let you know once it runs on my machine.

-- 

C Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyjs-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to