[Grok-dev] Adding AJAX with KSS to Grok
Godefroid Chapelle
gotcha at bubblenet.be
Thu Apr 3 04:29:44 EDT 2008
Asbjørn E. Andersen wrote:
> Solved.
>
> Seems this was lacking in the KSSActions __call__ def:
> self.__name__ = view_name
>
> I have no permissions to add this to the megrok.kss trunk,
> so it would be nice if someone with permissions would add this ;)
>
> Regards,
> Asbjørn Andersen
I'd be pleased to add the line suggested.
However, I'd like it to be tested.
Because I am not sure I understand the problem mentioned below, I cannot
add a test.
Can you give me more details ?
Thanks
>
>
> ----- Original Message -----
> From: "Asbjørn E. Andersen" <asbjorn at hanafjedle.net>
> To: "Douglas Cerna" <douglascerna at yahoo.com>
> Cc: "grok-dev" <grok-dev at zope.org>
> Sent: Wednesday, April 2, 2008 6:04:58 PM (GMT+0100) Europe/Berlin
> Subject: Re: [Grok-dev] Adding AJAX with KSS to Grok
>
> Hi,
>
> tried that, but didn't seem to help :/
>
> I've managed to debug the issue a little more though, and under
> absoluteurl.py/def AbsoluteURL(BrowserView): a function self._getContextName(context)
> is called wich returns getattr(context, '__name__', None). This is where None
> is returned and the exception is raised. So it seems the AppKSS object has no
> __name__ attribute? I've tried setting it to some dummy value real quick, but then nothing at all happened
> ( no change in website and no error message ).
> I'll debug this some more later tonight hopefully ;)
>
> Regards,
> Asbjørn
>
> ----- Original Message -----
> From: "Douglas Cerna" <douglascerna at yahoo.com>
> To: "Asbjørn E. Andersen" <asbjorn at hanafjedle.net>
> Cc: grok-dev at zope.org
> Sent: Wednesday, April 2, 2008 7:43:58 AM (GMT+0100) Europe/Berlin
> Subject: Re: [Grok-dev] Adding AJAX with KSS to Grok
>
>> exceptions.TypeError: There isn't enough context to
>> get URL information. This is probably due to a bug
>> in setting up location information.
>>
>
> I don't know if it helps you, but I got this error
> recently (since I'm learning KSS) because of a bad
> selector.
>
> I was trying:
>
> core.replaceHTML('#click-me', '<p>some text</p>')
>
> And got the absolute_url error. But when I changed it
> to:
>
> core.replaceHTML('div#click-me', '<p>some text</p>')
> ^^^
>
> Then it worked. I'm still wondering why was that :)
>
>
> Douglas
>
> "... allí es cuando te das cuenta que las cosas malas pueden resultar bastante buenas..." - Lionel Messi
>
> Por favor, evite enviarme adjuntos de Word, Excel o PowerPoint.
> Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
>
>
> ____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
>
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Grok-dev
mailing list