On 03/31/2011 10:57 AM, Thorsten Wilms wrote:

My Article entity has a "body" property for text. The default String
property doesn't handle long text, so it needs to be a Text property.

In https://github.com/thurn/ackbar, I found:
---
(ns <snip>
(:import (com.google.appengine.api.datastore
EntityNotFoundException Text)))

<snip>
(ds/save! (Post. url title (Text. body) ts in-feed? category))
---

Turned out that I misinterpreted the error, it happens on retrieval, not saving, as my Submit handler triggers reloading the submission form ...

So either (Text. body) or (ds/as-text) for saving, given a (:import (com.google.appengine.api.datastore Text) or (:require [appengine-magic.services.datastore :as ds]).

(.getValue body) when reading.


--
Thorsten Wilms

thorwil's design for free software:
http://thorwil.wordpress.com/

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to