[OGo-Developer] ZideStore Folder Mapping Question
Adam Tauno Williams
developer@opengroupware.org
Fri, 25 May 2007 10:52:16 -0400
--=-MqKKNm+kLn4+gh+pw7Ly
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
> > Root Question: Can a bundle add to ZideStore folder hierarchy?
> Root answer: sometimes :-)
Ah.
> > I'm looking at -
> > http://sope.opengroupware.org/en/docs/snippets/categoryhowto.html - =20
...
> This adds the given key to the object (and exposes that to the web), =20
> yes. But it doesn't necessarily add the object to a WebDAV PROPFIND.
Ok.
> > I see vaguely how it goes together; but I'm not getting how a URL =20
> > finds its way to a specifc object with given parameters.
> Hm, any questions left? :-) Eg:
> /zidestore/dav/helge/Contacts/Abc
> does:
> next =3D [WOApplication lookupKey:@"helge" ...]
> next =3D [next lookupKey:@"Contacts" ...]
> next =3D [next lookupKey:@"Abc" ...]
> etc. And calls an object in the chain if its a callable.
Ok, I think I get it now; however I must be missing a step.
I got a favorites/ folder to appear, I can see it, and enter it, via
both WDFS and cadaver. But listing its contents reports it as empty.
dav:/zidestore/so/awilliam/favorites/> ls
Listing collection `/zidestore/so/awilliam/favorites/': collection is
empty.
I see that the "toManyRelationshipKeys" of my SxFavoritesFolder object
is call. That method looks like
---------------------------------------------------------
- (NSArray *)toManyRelationshipKeys {
static NSArray *keys =3D nil;
[self debugWithFormat:@"toManyRelationshipKeys"];
if (keys =3D=3D nil) {
keys =3D [[NSArray alloc] initWithObjects:
@"Contacts",
@"Enterprises",
nil];
}
return keys;
}
------------------------------------------------------
Which in other objects certainly looks like the method that returns the
folders for an object/collection. My SxFavoritesFolder descends from
SxMailFolder as does the public folder [although the naming conventions
in this part of the code seem pretty wierd: MailFolder?]
davHasSubFolders returns BOOL YES.
--=-MqKKNm+kLn4+gh+pw7Ly
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQBGVvggLRePpNle04MRAk+cAJ4zLYjXfLWrM19CDyf1Gqw7SfIfAACeLTN3
KgrtyFWtA/G+KtFuUVhGvUU=
=IpO/
-----END PGP SIGNATURE-----
--=-MqKKNm+kLn4+gh+pw7Ly--