[Seaside] [Scriptaculous] SUObject not setting document root?

Boris Popov boris at deepcovelabs.com
Fri May 11 19:23:53 UTC 2007


Looks like this may work for now, but like I said, I haven't dug deep
enough to feel in any way confident quite yet,

SUObject>>render: anObject on: aStream
 | previous document html |
 anObject isString ifTrue: [^aStream nextPutAll: anObject].
 previous := canvas context document.
 document := SUDocument new.
 document root: previous root; stream: aStream; open: nil.
 canvas context document: document.
 html := canvas species
           context: canvas context
           callbacks: canvas callbacks.
 html render: anObject; flush.
 document close: nil.
 canvas context document: previous

SUDocument>>root: anObject
 root := anObject

Cheers!

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-
> bounces at lists.squeakfoundation.org] On Behalf Of Boris Popov
> Sent: Friday, May 11, 2007 12:20 PM
> To: Seaside - general discussion
> Subject: [Seaside] [Scriptaculous] SUObject not setting document root?
> 
> Latest SeasideScriptaculous (2.7b1.188.0 / Scriptaculous-lr.188.mcz)
has
> changed implementation of SUObject>>render:on:, and the change seems
to
> no longer pass the proper root to the newly created document. In my
case
> this results in homeless URLs that no longer have a proper resource
root
> because the default root has no resourceBaseURI :(
> 
> I'll poke around for a fix, but perhaps someone else had figured it
out
> by now?
> 
> Thanks!
> 
> -Boris
> 
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
> 
> boris at deepcovelabs.com
> 
> CONFIDENTIALITY NOTICE
> 
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
> 
> Thank you.
> 
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list