Re: object setsitegroup

Piotras <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Wed, 8 Mar 2006 11:47:29 +0100
Newsgroups gmane.comp.web.midgard.devel
Message-ID <[email protected]>
"Jukka Zitting" <[email protected]> wrote:

> > 1. Make sitegroup settable with property value set, with condition that
> > it is only safe when object was just created and has not attachments
> > and parameters?
> 
> This should be quite simple, I'm surprised that it isn't so already.

It's in HEAD , and in stable branch since this morning.

> There should be no need to have similar functionality in $object->update().
> 
> > 2. Implement setsitegroup method which sets all related objects' sitegroup
> > including object itself?
> 
> -1 Way too complex in my mind.

Please , see how sitewizard works. We can forget about setsitegroup method
as soon as we can create sitegroup admin group without sitegroup admin.
And without sitegroup admin group which by default is created in SG0.

We can start testing create method with settable sitegroup right now. And if it's 
proven to be working good we can forget about setsitegroup.

However , many times I am logged in as SG0 admin ( using basic auth) 
and I create objects and set their sitegroup later. 
Just because I can not open and close my browser every one minute.
( which of course proves that one admin host per sg is a good thing ) 

Piotras