Hi Wesley,

Thanks for the heads up.  Any reason an empty-String cannot be used
for a Link?  I was coding defensively by making all Link object
default to an empty String (since in order to do anything with them I
need to constantly be calling the "getValue()" function on the Link).
Now, I have to return "null" when using an empty link, so I have to
always be checking if the Link I'm using is null or not (just makes
for messier code).

Is there some good reason the datastore doesn't support empty-String
Link objects, or should  I file an enhancement request for this?

Thanks!

david

On Jan 27, 7:34 am, "Wesley C (Google)" <[email protected]> wrote:
> david,
>
> thanks for writing back. apologies for the delayed reply as ikai had
> been on vacation after you had sent your response in.
>
> as far as your problem goes, you are right on-track: you can have
> blank strings for StringProperty objects but not LinkProperty. in
> order to fix your problem, convert them back to string types, get rid
> of the blank ones, then reconvert back to links.
>
> let me know how this works!
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>    http://corepython.com
>
> wesley.j.chun :: [email protected]
> developer relations :: google app engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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/google-appengine-java?hl=en.

Reply via email to