Thanks,

I guess I was assuming that objects passed into kid templates will maintain
their integrity. I will have to tackle my problem in another way!



On 2/28/07, Jorge Vargas <[EMAIL PROTECTED]> wrote:
>
>
> On 2/28/07, hamilton ganesan <[EMAIL PROTECTED]> wrote:
> > I have my own object which I pass into my kid template (via a dict). I
> can
> > in the kid template treat that object as normal and access any of its
> > attributes.
> >
> is that a class you created?
>
> > I then want to pass that very same object ( e.g YYY) (via a form) from
> the
> > kid template back into a turbogears function but when you do
> "YYY.__class__"
> > in the turbogears function it gives me a unicode type.???
> >
> I still don't understand, ones you hit kid everything is Strings (str
> or unicode depending on your settings), so if your doing a post that
> plain old html your "python" object is long gone, and replace by it's
> String value which then is process in the post and being returned as a
> unicode object.
>
> This is perfectly good behavior because there is no such thing as
> objects in HTML could you explain what your trying to accomplish, it
> may be possible your simple just missing the correct approach.
>
> >
> > On 2/28/07, Jorge Vargas <[EMAIL PROTECTED]> wrote:
> > >
> > > On 2/28/07, hamilton ganesan <[EMAIL PROTECTED]> wrote:
> > > > Hi All,
> > > >
> > > > I notice that its easy to pass objects into a kid template but..
> when
> > you
> > > > try to pass that same object from the
> > > > same kid back into turbogears , the object loses its integrity :-(
> > > >
> > > > Is there some way of passing objects from kid templates into
> turbogears
> > > > functions without the object undergoing any changes?
> > > >
> > > you lost me there, TG works one way the dispatcher in CP (aka the
> > > exposed function) returns a dict that goes into kid, there is no
> > > turning back..... or your talking about kid's namespace call tg like
> > > tg.url()
> > >
> > > could you provide an example of what you want to accomplish maybe it's
> > > an issue with the type of the object your trying and not all objects.
> > >
> > > > Regards,
> > > >
> > > > --
> > > > Hamilton Ganesan
> > > > ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
> > > > Bioinformatics & Computational Biology Unit
> > > > Department Biochemistry
> > > > FABI Square/Bioinformatics building
> > > > Faculty of Natural Sciences
> > > > University of Pretoria
> > > > Lynwood Rd
> > > > Pretoria
> > > > South Africa
> > > > 0001
> > > >
> > > > Tel  :   +27 12 420 5802
> > > > Fax :   +27 12 420 5800
> > > > ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
> > > > E-MAIL: [EMAIL PROTECTED]
> > > > URL     : http://www.bi.up.ac.za/~hamilton
> > > > ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
> > > > "God is not mocked, for whatever a man sows, that will he reap"
> (Gal.
> > 6:7)
> > > >  >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Hamilton Ganesan
> > ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
> > Bioinformatics & Computational Biology Unit
> > Department Biochemistry
> > FABI Square/Bioinformatics building
> > Faculty of Natural Sciences
> > University of Pretoria
> > Lynwood Rd
> > Pretoria
> > South Africa
> > 0001
> >
> > Tel  :   +27 12 420 5802
> > Fax :   +27 12 420 5800
> > ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
> > E-MAIL: [EMAIL PROTECTED]
> > URL     : http://www.bi.up.ac.za/~hamilton
> > ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
> > "God is not mocked, for whatever a man sows, that will he reap" (Gal.
> 6:7)
> >  >
> >
>
> >
>


-- 
Hamilton Ganesan
ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
Bioinformatics & Computational Biology Unit
Department Biochemistry
FABI Square/Bioinformatics building
Faculty of Natural Sciences
University of Pretoria
Lynwood Rd
Pretoria
South Africa
0001

Tel  :   +27 12 420 5802
Fax :   +27 12 420 5800
ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
E-MAIL: [EMAIL PROTECTED]
URL     : http://www.bi.up.ac.za/~hamilton
ø ¤ º ° ` ° º ¤ ø ¤ º ° ` ° º ¤ ø , ¸ ¸ , ø
"God is not mocked, for whatever a man sows, that will he reap" (Gal. 6:7)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to