[Seaside] GOODS question

Jason Dufair jase at purdue.edu
Tue May 11 18:59:14 CEST 2004


Thanks for the quick reply, Ben!

While I'm at it, does anyone have a suggestion of how to run GOODS
"headless"?  goodsrv seems to want to have a console attached.  I
couldn't discern a way to do this from the (somewhat quirky) GOODS docs.

"Ben Schroeder" <bschroeder at procro.com> writes:

> Hi Jason,
>
>> Specifically, evaluating the following from workspace connecting to a
>> brand new GOODS database:
>> 
>> | txn |
>> txn := KKDatabase onHost: 'dufair.homelinux.com' port: 6100.
>> txn root at: 'foo' put: #(1 2 3).
>> txn commit.
>> 
>> fails because "txn root" evaluates to nil.
>
> A new GOODS database comes with a nil root.  If you assign it and then commit, your code should work fine:
>
> 	| txn txn2 |
> 	txn := KKDatabase onHost: 'dufair.homelinux.com' port: 6100.
> 	txn root: Dictionary new.
> 	txn commit.
>
> 	txn2 := KKDatabase onHost: 'dufair.homelinux.com' port: 6100.
> 	txn2 root at: 'foo' put: #(1 2 3).
> 	txn2 commit.
>
> My experience has mostly been with using Dictionaries as the root, but you can use anything you can store in a GOODS database.
>
> Hope this helps,
> Ben Schroeder
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside

-- 
Jason Dufair
Office of the VP for Information Technology
Purdue University
jase at purdue.edu
765-496-1185 - fax: 765-496-7409



More information about the Seaside mailing list