Re: zogi - isPrivate of Contact
[email protected] Mon, 16 Jun 2008 20:01:21 +0100
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
> > I've just verified that it works (at least on my test box). > > The code is so straight forward - > > [result addObject:[NSMutableDictionary dictionaryWithObjectsAndKeys: > > ... > > [self ZERO:[eoContact valueForKey:@"isPrivate"]], @"isPrivate", > > ... > > nil]]; > > - it is hard to see room for a bug. > > I just toogled a contact via the WebUI and zOGI reports isPrivate > correctly in both states. I am embarrassed to say that it is working for me now too. I don't know what I was doing yesterday, but I am sure I was repeatedly getting a '0' returned for a contact marked isPrivate. I had even re-started zidestore at one point in case the values were being cached but it made no difference. I was doing a search that returned multiple results, some of which should have been '1' not '0', but they were all zeros. I think I've worked out what was happening. As root, I had checked the 'private/readonly' box on an isSystem user. I think that explains why I was seeing READONLY in the Flags, but isPrivate was 0. My tests today on non-system users who are marked private works as expected. Because the webUI says 'private/readonly' I took that to mean that the isPrivate flag would be set. However, thinking about it now, that doesn't really make any sense - why would one want private system users? My apologies for wasting your time. Bernard -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc