Comments
Dear Evert,
great piece of work. Sabre looks very nice. My tests (in combination with Openoffice) showed me that it is even performant - the bottle neck always was Openoffice not server side.
I would like to make a plugin for cakephp out of it. Maybe you heart about cake. The idea is having a plugin as a wrapper for Sabre and your library itself as a vendor file.
Since cakephp is a MVC framework the biggest task while writing a plugin would be to bring the pieces to where they belong:
Like the file system should go to model, as well as locking. The "hand over" of the files or errror messages should be delivered by the view. And finally the rest goes to controller.
Do you think it is possible to write a wrapper plugin like that?
I've just recently gotten very familiar with cake, and implemented it in a project.
It definitely sounds like an interesting idea, but I wonder how well you can make it 'plug and play' with existing models, views and controllers.
In any case, I'm always interested to see more implementations. let me know if there's something I can do.
Great stuff. I created a simple DavController for Lithium that loads SabreDav with the file server code. All you have to do is change the path in the Libraries::add() and the classes are autoloaded nicely.
http://pastium.org/view/0950919986eaf1db9205d7ef724da148
That's cool gwoo! any chance something like that would end up in the main tree?
That's cool gwoo! any chance something like that would end up in the main tree?
im thinking of a plugin with its only bootstrap and routes. The Libararies code i pasted could be added to the bootstrap. Then you just need something like Libraries::add('plugin', 'li3_sabredav'); and you can have all the power of SabreDav in your Lithium app. Btw, the same kind of approach could be taken with SabreAMF, but I might integrate that a little differently with a renderer that would just output the AMF from the same controller actions as the html.
Feel free to stop by #li3 on irc.freenode.net if I can help in anyway.







