I think "dry-run" in some contexts (maybe manual file sends or curl or
something) does just return the xml which would have gone up.
And if you use setDraft(false) /* hm, what's the default*/ the items
show up as "published and searchable soon" or some such. The drag is
the fact that there is no sandbox to play in 'til you have everything
all buttoned down...
have fun
On Sep 25, 3:52 pm, beeky <[EMAIL PROTECTED]> wrote:
> icebackhaz,
> Thanks for the reply. My mistake was assuming that a dry-run did
> everything but the actual db insert. I did not expect that setting
> draft to true would result in the items showing up on gbase. Now I
> realize that 'draft' is an attribute of an item that basically allows
> one to test item manipulation without publication.
>
> thanks again,
> -=beeky
>
> On Sep 25, 1:52 pm, icebackhaz <[EMAIL PROTECTED]> wrote:
>
> > The service.batch() method returns a feed. You'll want to iterate
> > through the entries therein:
>
> > rfeed = sevice.batch();
> > for ( Entry e : rfeed.getEntries() )
> > if (BatchUtil.isSuccess(e))
> > ;//oh goody
> > else {
> > BatchStatus status = BatchUtils.getBatchStatus(entry);
> > handleFailure(e, status); // your code here
> > }
>
> > On Sep 25, 9:22 am, beeky <[EMAIL PROTECTED]> wrote:
>
> > > I am getting close to having a client to do a batch insert. I
> > > setDraft(true) on all of my GoogleEntries and ran the client. As
> > > expected I saw a lot of data errors but the last line of output from
> > > the result stream was:
> > > Entryhttp://www.google.com/base/feeds/items/16716273748239134929was
> > > successfully inserted
>
> > > Is this the return I would have gotten if setDraft(false), i.e. one
> > > item would have been inserted successfully or was setDraft(true) not
> > > in effect?
>
> > > Thanks,
> > > -=beeky
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Base Data API" 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---