This is something I had in mind, but no time to implement. Anyway now
that you are asking for it I have to give it a higher priority. But
there some issues that need to be addressed before implementing this
(any comments are welcome):
1. The Shortcut content class will act as a proxy to the real object
(with the "__getattr__", "__setattr__" special methods).
2. But the parentid of the Shortcut should contain the folder id that
the Shortcut is contained.
3. Deleting the shortcut should delete the shortcut itself and not the
referenced object.
4. Updating the shortcut only updates the referenced object.
5. The contentclass attribute of the shortcut should point to the
original object's contentclass. This "hides" the Shortcut content
class implementation from the developer, unless the developer uses
"isinstace" (are there any cases where the developer would want to
have access to the Shortcut itself? I don't think so but maybe yes)
6. The security descriptor of the shortcut is the security descriptor
of the referenced object (having always the rolesInherited attribute
set to false)
7. I don't think that we'll have any OQL side effects
Tassos Koutsovassils
Porcupine Core Development
http://www.innoscript.org