[OGo-Developer] ZideStore Folder Mapping Question
Adam Tauno Williams
developer@opengroupware.org
Fri, 16 Feb 2007 13:53:01 -0500
--=-Ld8QYdSyVhNefnxTi++y
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Root Question: Can a bundle add to ZideStore folder hierarchy? I'm
looking at how to solve
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=3D1752
("Present "Favorites" As A Folder") for the purposes of feeding our
Funambol server.
I'm looking at -
http://sope.opengroupware.org/en/docs/snippets/categoryhowto.html - and
assuming that this applies to ZideStore.
--- Example ---
categories =3D {
OpenGroupware =3D {
slots =3D {
"Documentation" =3D {
protectedBy =3D "<public>";
valueClass =3D OGoHelpDatabase;
value =3D "Documentation/OpenGroupware.org";
};
};
};
};
--- End example from categoryhowto.html ---
Then I look at something like
"ZideStore/SoObjects/ZSContacts/product.plist" and:
--- Example ---
categories =3D {
};
--- End example from ZSContacts/product.plist ---
So then I look at -
http://sope.opengroupware.org/en/docs/snippets/methods.html
- which states "When an Objective-C class is registered as a SoClass,
SOPE scans the class hierarchy for "action" methods, pretty much like in
WODirectAction objects." And sure enough I see that "SxAddress.m"
contains *Action methods like "PUTAction" and "GETAction".
But SxFolder doesn't seem to be a SoObject. And SxFolders "GETAction"
method seems to pretty clearly do nothing. SxAddressFolder which
descends from SxFolder doesn't ever override/reimplement GETAction.
I see vaguely how it goes together; but I'm not getting how a URL finds
its way to a specifc object with given parameters.
Is it falling through to the default method as described: "Note that if
no HTTP method is found, SoMethodDispatcher will look for the "default
method" and invoke that. This is usually preferred over direct HTTP
implementation."; but I'm still not seeing the URL->Object mapping.
I assume I'm overlooking something obvious; I think this would be
easier if I had six nineteen inch displays and could look at all the
code at once. :)
--=-Ld8QYdSyVhNefnxTi++y
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)
iD8DBQBF1f2NLRePpNle04MRAqC9AJ4qoPsSijjA/lv1nw0oBQgPs3a7fgCbB4If
Mafx0wB8Q4K/SpmERRgr1WQ=
=4ZjJ
-----END PGP SIGNATURE-----
--=-Ld8QYdSyVhNefnxTi++y--