Re: Sitegroup issue!
"Piotras" <pp-VVDi8QVAvoBWk0Htik3J/[email protected]> Tue, 7 Mar 2006 20:04:17 +0100 (CET)
| Newsgroups | gmane.comp.web.midgard.devel |
|---|---|
| Message-ID | <[email protected]> |
>> Ah, your use case is different from the general update(). Do you mean >> something like this: >> >> $object = new someobject(); >> $object->sitegroup = $sitegroup; >> $object->create(); >> >> The create() case is a lot easier as there is no chance of breaking >> existing objects (nothing can link to an unexisting object). Sitewizard creates SG0 groups members and later changes its sitegroup. Kill me but I do not remember all details right now. > Well, that does not work today so no code uses that method :-) But can work tomorrow :) > Wrt to sitegroup management, I can see a lot of good uses for > setsitegroup() - I think we need functionality like it, at least until > we get proper acls in core. > > If the ->sitegroup attribute is hard to manage, then I suggest we remove > it from 1.8 and instead get a setsitegroup() method that works. As an > added bonus, this is BC as well. We could move sitegroup (gu)id to metadata object. Piotras