Michael Ralston wrote:
On Wednesday 17 May 2006 17:17, Andreas Hartmann wrote:
Michael Ralston wrote:
In short... I don't think it makes sense to be able to create publication
objects for things that aren't publications.
Yes, I agree. But when I tried to change it I had the feeling that the
impact on the codebase is quite high, and the improvement is not worth
taking the risk.
I was forced to make the changes as this is how I had already coded my EJB
objects to function. I found there was 11 different locations which had a
Publication returned, and I checked these for the PublicationException.
We could apply these changes to the trunk - would you be interested
in filing an enhancement bug and attaching a patch? (if it is not
too complicated to isolate these changes)
BTW, the draft for the new repository API doesn't allow creating
objects for non-existing publication.
Where is the draft repository API, I would be interested in reading it and
maybe contributing to it. As I am probably one of the only people that has
reimplemented a large number of lenya interfaces (with a different backend
focus), I may have a different perspective on things.
The API draft is located in the "repository" module, a JCR-based
implementation is located in the "jcr" module.
You can't really use it yet, but you can run the tests:
build.sh modules.test
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]