What is the error? It is pretty hard to debug what the problem is without
it.

On Mon, Apr 6, 2009 at 8:19 AM, saintthor <saintt...@gmail.com> wrote:

>
> #using datastore, create the entity
>
> class Dj_User( db.Model ):
>    UsName = db.StringProperty( multiline = True )
>
>    def PutUser( self, uD ):
>        self.UsName = uD['UserName']
>        self.put()
>
> #then read it and write to response, all ok
>
> for user in Dj_User.all()
>    self.response.out.write( user.UsName )
>
> #but when using the user.UsName as strings, an error occurs
>
> for user in Dj_User.all()
>    self.response.out.write( user.UsName + '<br/>' )
>
> #can not use str() on user.UsName either
>
> for user in Dj_User.all()
>    self.response.out.write( str( user.UsName ) + '<br/>')
>
> How can i use the user.UsName as strings?
>
> >
>


-- 

Alkis

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to