Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Coders

Roundtrip-safe DAV

 

 

Zope coders RSS feed   Index | Next | Previous | View Threaded


emiliano.heyns at gmail

Dec 15, 2004, 11:43 AM

Post #1 of 3 (1082 views)
Permalink
Roundtrip-safe DAV

Hello people,

I'm currently working with some content editors that would like to
keep their current WYSIWYG tools and use them in combination with
Zope/Plone, and using the DAV interface seemed like the best approach,
and it does indeed mostly work. One of the larger problems we face
using this approach is that quite a few products expose objects via
DAV that are not roundtrip-safe; getting-then-putting will result in
unwanted behaviour in some cases, and for other objects I don't see
much value in allowing them to be accessed over DAV (like the contents
of acl_users).

I wrote the attached monkey patch to address this (be kind, I'm pretty
new to Python), and Sidnei da Silva (author of DavPack) suggested I
post the patch on these lists to see if there was an interest into
this approach.

What it does is disable DAV access for non-collection resources in
general and then selectively turns it on for some (non-exhaustive)
list. Folderish objects are enabled by default but can be turned off.
Objects/classes can also disable or enable themselves by explicitly
setting __dav_resource__ to 0 or 1. I'm not suggesting this particular
list is the correct one.

Thoughts?

With kind regard,
Emiliano Heyns
Attachments: __init__.py (9.17 KB)


lists at andreas-jung

Dec 15, 2004, 11:53 AM

Post #2 of 3 (1040 views)
Permalink
Re: Roundtrip-safe DAV [In reply to]

Please post your patches to the Zope Collector. This list is not the right
place
to submit patches since they might get lost.

-aj

--On Mittwoch, 15. Dezember 2004 20:43 Uhr +0100 Emiliano Heyns
<emiliano.heyns [at] gmail> wrote:

> Hello people,
>
> I'm currently working with some content editors that would like to
> keep their current WYSIWYG tools and use them in combination with
> Zope/Plone, and using the DAV interface seemed like the best approach,
> and it does indeed mostly work. One of the larger problems we face
> using this approach is that quite a few products expose objects via
> DAV that are not roundtrip-safe; getting-then-putting will result in
> unwanted behaviour in some cases, and for other objects I don't see
> much value in allowing them to be accessed over DAV (like the contents
> of acl_users).
>
> I wrote the attached monkey patch to address this (be kind, I'm pretty
> new to Python), and Sidnei da Silva (author of DavPack) suggested I
> post the patch on these lists to see if there was an interest into
> this approach.
>
> What it does is disable DAV access for non-collection resources in
> general and then selectively turns it on for some (non-exhaustive)
> list. Folderish objects are enabled by default but can be turned off.
> Objects/classes can also disable or enable themselves by explicitly
> setting __dav_resource__ to 0 or 1. I'm not suggesting this particular
> list is the correct one.
>
> Thoughts?
>
> With kind regard,
> Emiliano Heyns




_______________________________________________
Zope-Coders mailing list
Zope-Coders [at] zope
http://mail.zope.org/mailman/listinfo/zope-coders


leo at hiper

Dec 15, 2004, 1:32 PM

Post #3 of 3 (1038 views)
Permalink
Re: [Zope-dev] Re: Roundtrip-safe DAV [In reply to]

Em Qua, 2004-12-15 ās 20:53 +0100, Andreas Jung escreveu:
> Please post your patches to the Zope Collector. This list is not the right
> place
> to submit patches since they might get lost.

Though this (zope-dev) is the right place to discuss them (I suggest we
stop crossposting to zope-coders to avoid duplication).

I haven't looked at the patches, but I like the idea of limiting the
visibility of DAV items to those that make sense.

Cheers, Leo

--
Leonardo Rochael Almeida <leo [at] hiper>

_______________________________________________
Zope-Coders mailing list
Zope-Coders [at] zope
http://mail.zope.org/mailman/listinfo/zope-coders

Zope coders RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.