Re: [Zope] WebDAV lock in Zope 2.11.4

2010-12-02 Thread robert rottermann
Am 02.12.2010 18:53, schrieb Brian Sullivan:
 Somehow in testing use of ExternalEditor product I have set the WebDAV
 lock on a file. The problem is that the lock doesn't seem to appear in
 the list of locks from the Control Panel, nor does it clear on a
 restart. I am at loss -- how do I proceed?

 Is there anyway around this?
 ___
 Zope maillist  -  Zope@zope.org
 https://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
   https://mail.zope.org/mailman/listinfo/zope-announce
   https://mail.zope.org/mailman/listinfo/zope-dev )
be aware that you must enter a path when scanning for locks.
it is not enough just to click on the search buton.

i tripped over this once..

robert
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV lock in Zope 2.11.4

2010-12-02 Thread Brian Sullivan
I tried that as well but it didn't appear to find the lock.

Then somehow it just went away -- not sure what happened -- it was
nothing that I deliberately did as far as I know.

Maybe I imagined it.

On Thu, Dec 2, 2010 at 1:56 PM, robert rottermann rob...@redcor.ch wrote:
 Am 02.12.2010 18:53, schrieb Brian Sullivan:

 Somehow in testing use of ExternalEditor product I have set the WebDAV
 lock on a file. The problem is that the lock doesn't seem to appear in
 the list of locks from the Control Panel, nor does it clear on a
 restart. I am at loss -- how do I proceed?

 Is there anyway around this?
 ___
 Zope maillist  -  z...@zope.org
 https://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  https://mail.zope.org/mailman/listinfo/zope-announce
  https://mail.zope.org/mailman/listinfo/zope-dev )

 be aware that you must enter a path when scanning for locks.
 it is not enough just to click on the search buton.

 i tripped over this once..

 robert

___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV lock in Zope 2.11.4

2010-12-02 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian Sullivan wrote:
 I tried that as well but it didn't appear to find the lock.

If Zope complains about an object being logged then it will
be findable through the lock manager in any case.

- -aj

 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJM+Jj2AAoJEADcfz7u4AZjBoYLuQEvCfW1JDE5fFG+nB3PEMSJ
uILDmrGlkGOXh9Eq6f9Kn+u7B0d76FMZCVcdXsRA+/sLRpPcFTxKptnemgE2ageI
SFa7HCo/6F7MVNPGe6T4N05Z4XbvcNONiNe1o4pB7jgK5hwe5WeVg/PeOwnbkwX0
FFTosh41xrAYX8CjcTnhQrrIl5Pf5AvDY7zhbVgpDrSK/HLyfSFFUJh9Ndkvjtzj
6BvJPDo+s2znUSoz6MQwYZzJ5zAizWyYsf7593CC6//Og6cPHUriJkFHRVkXZPEm
8FsPpj9724KDO8HuaOkM0OaQmf7i2L6Ky0DimVhLwbEsqALhRP60jPzMrE+QzCXk
z0nL0lD1hDyvzhhKgoZCbJlAA2CSufjHjl1uj+5aL0hemSyGF6072doyb6U4rSRx
tUwgUge9HCNjvkbf1j7Z7Tp8/QTx7Ykq30ugQXmBFNMEWMBEDIt7w5qQeRzu978B
h+kFaYGretU0P5drcNT34qGpY6byMik=
=DWEk
-END PGP SIGNATURE-
attachment: lists.vcf___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] webdav upload - controlling type, hook

2008-10-11 Thread Jakob Schou Jensen
Thanks Tres,

The PUT_factory works fine for controlling the upload type. In addition to
this I need a hook that gets called whenever a document is created OR
updated (the put_factory is only called on creation). I need this hook to
update some derived/cached data. Is there any way to do this?

Jakob

2008/9/25 Tres Seaver [EMAIL PROTECTED]



 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Jakob Schou Jensen wrote:
  When uploading a file to the zope db using the webdav interface zope
 select
  on object type based on the file contents (or extension?). For instance
 when
  I upload a html file it becomes a DTML document. Is there any way to
 control
  what type of object is selected?
 
  Additionally I would like to execute some script code after a webdav
 upload.
  Is there any way to get a hook or callback or something similar?

 You need to implement the 'PUT_factory' hook for your container:

  http://wiki.zope.org/zope2/PUTFactory


 Tres.
 - --
 ===
 Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
 Palladion Software   Excellence by Designhttp://palladion.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFI2+lV+gerLs4ltQ4RAkEAAJ9vdWXskaVEB4IJAjFnxJc9HQ7K8ACgiCBy
 7oWAtfQCkvyVKHfQ3B6NQzA=
 =uAf+
 -END PGP SIGNATURE-


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] webdav upload - controlling type, hook

2008-09-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jakob Schou Jensen wrote:
 When uploading a file to the zope db using the webdav interface zope select
 on object type based on the file contents (or extension?). For instance when
 I upload a html file it becomes a DTML document. Is there any way to control
 what type of object is selected?
 
 Additionally I would like to execute some script code after a webdav upload.
 Is there any way to get a hook or callback or something similar?

You need to implement the 'PUT_factory' hook for your container:

  http://wiki.zope.org/zope2/PUTFactory


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2+lV+gerLs4ltQ4RAkEAAJ9vdWXskaVEB4IJAjFnxJc9HQ7K8ACgiCBy
7oWAtfQCkvyVKHfQ3B6NQzA=
=uAf+
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] webdav and PUT_factory

2006-02-27 Thread Chris Withers

Luca Dall'Olio wrote:

According to my past experience in java, this means cvs ^_^


For the rest of us, it means svn ;-)

Should I stop using the ZMI? 


Probably. At the very least, take advantage of the webdav you seem to 
have already got working and use a normal text editor for editing your 
scripts and templates!



Should I develop a Zope Product instead?


Probably ;-)


Should I use fsdump instead of webdav to export from zope ?


No..

Should I 
use  webdav when deploying back to Zope?


Not unless you're doing all your editing via WebDAV...


We develop inside locally installed Zope Instances, using the ZMI.


Eep, at least get a text editor going over webdav so you don't have to 
use a browser to edit your scripts and methods!


At the end of the day, we export the work done using webdav, and this 
works for DTML documents, DTML methods and ZSQL methods.


Okay, stop using DTML documents and methods. Use python scripts and ZPT, 
please god! ;-)


After that, we commit inside the source code repository, using the 
update, diff and merge features to synchronize with other developers' work.


Odd...

We need to deploy to a Zope server in order to test the integration of 
developers' code, so I wrote a little PUT_factory to re-create the right 
objects, this is a snippet:


   elif ext == 'zsql':
   from Products.ZSQLMethods.SQL import SQL
   return SQL(name, '', 'daticonvegno', '' ,'')
   elif ext == 'dtml':
   from OFS.DTMLDocument import DTMLDocument
   return DTMLDocument( '', __name__=name )
   elif ext == 'dtmm':
   from OFS.DTMLMethod import DTMLMethod
   return DTMLMethod( '', __name__=name )
   elif major == 'text':
   from OFS.DTMLDocument import DTMLDocument
   return OFS.DTMLDocument.DTMLDocument( '', __name__=name )


Fair enough...

1) you have to use extensions to make it work, otherwise you will have 
trouble at deploy-time


Yup, but extensions are pretty handy ;-)

2) some additional parameters such as the connectionIds for ZSQLMethods 
must be auto-magically chosen by the PUT_factory


Oh, yes, that's silly ;-)

3) what about more complex objects, such as Plone, Archetypes or 
Openflow? should I map them all in the PUT_factory?


Ah, so you're using Plohn. Well, then you should put all you code in 
Filesystem Directory Views, it'll make it all _much_ easier for you!
You can then look to GenericSetup to handle all your workflow configs, 
etc...


Is this the right way to do things in Zope? 


Nope, not given the products you're using...

Is there any native 
solution for Source Code Versioning and Team Management?


Not really, the History tab is as close as it gets...

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV

2005-06-29 Thread Dieter Maurer
Luiz Fernando B. Ribeiro wrote at 2005-6-29 01:19 -0300:
 ...
The login dialog is show but even with my manager password it's not able 
to login. The error message above is repeated after each atempt.

This is a more precise problem description :-)

I analyse such problems with a TCP logger (my favorite one
is Shane's tcpwatch). It allows you to verify whether the
problem is the server or the client.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV

2005-06-28 Thread Dieter Maurer
Luiz Fernando B. Ribeiro wrote at 2005-6-27 16:00 -0300:
I'm using webdav to update to access files from Dreamweaver and it is 
working fine but when I try to use windows web folders feature it fails 
with the following error in zope log. It seems that windows is 
requesting the PROPFIND before authenticating. Any clues?

Zope Version (Zope 2.7.5-final, python 2.3.5, linux2)
Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 
1:3.3.5-12)]
System Platform linux2

Time   2005/06/27 15:05:48.973 GMT-3
User Name (User Id)Anonymous User (None)
Request URLhttp://my.server/clientes/PROPFIND
Exception Type Unauthorized
Exception ValuestrongYou are not authorized to access this 
resource./strong

This, by itself, is completely normal.

MS WebDAV Access should in this case show a login dialog.
After providing the correct authentication info, you should
be able to access the folder.

The MS WebDAV Access in my Windows XP Professional behaves in this way.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV

2005-06-28 Thread Luiz Fernando B. Ribeiro

Dieter Maurer wrote:

Luiz Fernando B. Ribeiro wrote at 2005-6-27 16:00 -0300:

I'm using webdav to update to access files from Dreamweaver and it is 
working fine but when I try to use windows web folders feature it fails 
with the following error in zope log. It seems that windows is 
requesting the PROPFIND before authenticating. Any clues?


Zope Version (Zope 2.7.5-final, python 2.3.5, linux2)
Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 
1:3.3.5-12)]

System Platform linux2

Time2005/06/27 15:05:48.973 GMT-3
User Name (User Id) Anonymous User (None)
Request URL http://my.server/clientes/PROPFIND
Exception Type  Unauthorized
Exception Value 	strongYou are not authorized to access this 
resource./strong



This, by itself, is completely normal.

MS WebDAV Access should in this case show a login dialog.
After providing the correct authentication info, you should
be able to access the folder.

The MS WebDAV Access in my Windows XP Professional behaves in this way.


Hi Dieter,

The login dialog is show but even with my manager password it's not able 
to login. The error message above is repeated after each atempt. With 
Netdrive or Dreamweaver it works fine but windows web folders is a good 
feature for simple users. I thought that some kind of workaround was 
available. Even with Chris sugestion to use full url with user and 
password has failed.


I'm using Windows XP SP2.

Thanks,

Luiz Fernando B. Ribeiro
Engenho Soluções para a Internet
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV

2005-06-28 Thread Chris McDonough
Note that MS has a Webfolders fixer program, see:

http://chapters.marssociety.org/webdav (beginning Some Windows XP
machines have a broken Web Folders installation. Microsoft includes a
Web Folders repair utility built in to Windows to correct the problem.
Use the following steps to fix the problem:)

See also

http://teyc.editthispage.com/2005/06/02

- C



On Wed, 2005-06-29 at 01:19 -0300, Luiz Fernando B. Ribeiro wrote:
 Dieter Maurer wrote:
  Luiz Fernando B. Ribeiro wrote at 2005-6-27 16:00 -0300:
  
 I'm using webdav to update to access files from Dreamweaver and it is 
 working fine but when I try to use windows web folders feature it fails 
 with the following error in zope log. It seems that windows is 
 requesting the PROPFIND before authenticating. Any clues?
 
 Zope Version (Zope 2.7.5-final, python 2.3.5, linux2)
 Python Version 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 
 1:3.3.5-12)]
 System Platform linux2
 
 Time2005/06/27 15:05:48.973 GMT-3
 User Name (User Id) Anonymous User (None)
 Request URL http://my.server/clientes/PROPFIND
 Exception Type  Unauthorized
 Exception Value strongYou are not authorized to access this 
 resource./strong
  
  
  This, by itself, is completely normal.
  
  MS WebDAV Access should in this case show a login dialog.
  After providing the correct authentication info, you should
  be able to access the folder.
  
  The MS WebDAV Access in my Windows XP Professional behaves in this way.
 
 Hi Dieter,
 
 The login dialog is show but even with my manager password it's not able 
 to login. The error message above is repeated after each atempt. With 
 Netdrive or Dreamweaver it works fine but windows web folders is a good 
 feature for simple users. I thought that some kind of workaround was 
 available. Even with Chris sugestion to use full url with user and 
 password has failed.
 
 I'm using Windows XP SP2.
 
 Thanks,
 
 Luiz Fernando B. Ribeiro
 Engenho Soluções para a Internet
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )
 

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDav or Calendar.

2005-06-02 Thread Tino Wildenhain
Am Mittwoch, den 01.06.2005, 22:15 -0300 schrieb Fernando Lujan:
 Hi,
 
 I need a Calendar or WebDav product wich runs with Zope, allow me to
 share my calendar with others users using mozilla Calendar, Sunbird.
 evolution, outlook and so on...Something like OpenGroupware. Do
 someone have a good suggestion? :)

http://www.mxm.dk/products/public/mxm_ical_tool/

The ical module from mxm can be used by own code
too, so you dont need the above if you use plain
zope. The glue code, however must then be provided
by you.

In this case:

http://www.mxm.dk/products/public/ical/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDav or Calendar.

2005-06-02 Thread Lennart Regebro
On 6/2/05, Fernando Lujan [EMAIL PROTECTED] wrote:
 I need a Calendar or WebDav product wich runs with Zope, allow me to
 share my calendar with others users using mozilla Calendar, Sunbird.
 evolution, outlook and so on...Something like OpenGroupware. Do
 someone have a good suggestion? :)

Well, yes, the new calendar project from Nuxeo:
http://www.cps-project.org/sections/projects/calendar_server

This is a Five based calendar, with WebDAV and iCal support. Still in
beta, with version 1.0 expected soon, so any testing is appriciated.
;)

We would like to see WebCAL support (a better API that basically
treats each event separately, instead of in a large file like WebDAV+
iCal does) and we would like integration with other calendar servers,
like Kolab and OpenGroupware. The system is written so that it should
be possible to write an OpenGroupware storage quite easily, and we
would very much like to see this architecture come to full fruitition.

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Webdav and emacs, eldav, nd problem.

2005-05-20 Thread Chris McDonough
Does a (Script) Python object actually get created or is it another
object type like DTML Document when it is initially created?  As far as
I can tell, it would have to be the latter, as Python Scripts don't
allow you to change their content-types (at least via the ZMI).

On Fri, 2005-05-20 at 17:05 +0200, Gaute Amundsen wrote:
 Hi.
 
 We just upgraded to Zope 2.7.5-1.fc3, python 2.3.4, and now I am having 
 problems with authoring Script (Python)
 
 (using ssh tunnel:  ssh -L 2001:localhost:8081 [EMAIL PROTECTED])
 
 I am using emacs, using eldav, using nd.
 I have traced the problem to this command issued by eldav in the process of 
 saving changes to a file.
 
 nd -S -p /localpath/script.py -a Zope 
 http://localhost:2001/path/on/remote/server/script.py;
 
 The problem is replicated on the commandline.
 
 What happens is that the python script gets saved as Page Template with  
 Content-Type: text/plain.
 ( I have tried nd's -T option, but to no avail )
 
 As nothing else have changed, ( afaik ) I must assume there has been some 
 changes made to zopes webdav support.
 
 Any ideas anyone?
 
 Hm.. I notice we have ExternalEditor (0.5) installed.
 Could this have any influence? Perhaps I will try using it :)
 
 Gaute
 
 
 
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )
 

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Webdav and emacs, eldav, nd problem.

2005-05-20 Thread Dieter Maurer
Gaute Amundsen wrote at 2005-5-20 17:05 +0200:
We just upgraded to Zope 2.7.5-1.fc3, python 2.3.4, and now I am having 
problems with authoring Script (Python)

(using ssh tunnel:  ssh -L 2001:localhost:8081 [EMAIL PROTECTED])

I am using emacs, using eldav, using nd.
I have traced the problem to this command issued by eldav in the process of 
saving changes to a file.

nd -S -p /localpath/script.py -a Zope 
http://localhost:2001/path/on/remote/server/script.py;

The problem is replicated on the commandline.

Unfortunately, the Zope world is much more complex than
WebDAV expects. WebDAV knows only two types of resources:
collection resources and non-collection resources.
Zope, on the other hand, knows arbitrary many resouce types:
Folders, PageTemplate, PythonScripts, DTMLMethods, Files, Images, 

When you create a new object via WebDAV (or FTP or another
filesystem oriented protocol), then Zope does not have
enough information to determine which type of object it should
create. Therefore, it calls a hook, the so called PUT_Factory,
to determine the object type.

Obviously, the PUT_Factory active in your context got it wrong.
There is a HowTo around, how to set up your own PUT_Factory.

Note, in a CMF/Plone context (you did not tell us your context),
the PUT_Factory is called content_type_registry.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV Locked Item Unlockable

2005-05-17 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-5-16 08:26 -0600:
The locked item does not show up on the Control 
Panel  WebDAV Lock Manager, and the lock even survives a Zope 
restart.  All attempts to edit or remove the item fail.

Look at the traceback (*always* do when a failure results in
an exception!), then look at the source (mentioned in the traceback).
It will tell you what variable/attribute Zope checks to
detect whether the object is looked.
Search the source for other places where this variable/attribute
is accessed.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV Locked Item Unlockable

2005-05-16 Thread hpinson
Yes, as I mentioned, the lock does not show up in the ZMI WebDAV 
lockmanager at all, yet persists. That is the problem.  How to get 
rid of a WebDAV lock that is not visible to the lockmanager, and even 
persists past a hard restart of zope.

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-04-01 Thread Dieter Maurer
Pavel Zaitsev wrote at 2005-3-31 00:33 -0500:
I am back trying to figure out why my zope crashes on 
open('/tmp/tmp4fd4foo') kind of opens, which seem to originated
from webdav code.

You problem seems to be much deeper:

  It is completely justified to open a temporary file -- whether
  for WebDAV or any other purpose.

  You should set up your system in a way that temporary files
  *can* be created and used...

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-03-31 Thread Chris Withers
Pavel Zaitsev wrote:
I am back trying to figure out why my zope crashes on 
open('/tmp/tmp4fd4foo') kind of opens, which seem to originated
from webdav code.
I doubt it's anything specific to the webdav code that's causing a 
problem. Maybe a large file upload, try doing the same by addign a file 
object using the ZMI.

Question to someone who is expert in webdav/*.py 
code... I just would like to know so I can further my investigation into 
the bug/malfuction of zope on OS X.
I'd suggest checking that the user running Zope has permission to write 
the the /tmp/ folder.

cheers,
Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-03-31 Thread Florent Guillaume
Pavel Zaitsev  [EMAIL PROTECTED] wrote:
 I am back trying to figure out why my zope crashes on 

Please define crashes.

Florent

 open('/tmp/tmp4fd4foo') kind of opens, which seem to originated
 from webdav code. Question to someone who is expert in webdav/*.py 
 code... I just would like to know so I can further my investigation into 
 the bug/malfuction of zope on OS X.


-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] WebDAV BUGS and access to /tmp directory

2005-03-31 Thread Pavel Zaitsev
Florent Guillaume wrote:
Pavel Zaitsev  [EMAIL PROTECTED] wrote:
 

I am back trying to figure out why my zope crashes on 
   

Please define crashes.
 

Well zope is trying to create file in /tmp , process gets 'state'  - 
'U' which is not defined in the manual, maybe Unresponsive,
like 'D' sign? then after while whole system locks up, it gets killed by 
overlooking parent, after which things sort of go back to normal.(pid of 
process gotten by 'ps aux|grep zope' changes.) gdb does not seem to be 
able to dump a backtrace of the process either, it says that process has 
quit while evaluating injected statement i have no idea what is 
going on.
pavel.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-dev] RE: [Zope] WebDAV or FTP types?

2001-12-26 Thread Derek Simkowiak

- Instead of creating a Product, you can just put an External Method in the
- root of your site.

A couple of weeks ago, I asked about customizing the default Zope
type when a file is uploaded with either WebDAV or FTP.  For example, 
I want .html files to be a ZopePageTemplate instead of a DTML Document, 
which is the default.

Ron gave me the excellent suggestion of creating an External
Method that looks like the following:

- def PUT_factory(self, name, typ, body):
- Make Page Template the default type for ftp uploads.
- from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
- 
- if typ == 'text/html':
- return ZopePageTemplate(name)
- return None


Since then, I've done some learning, and now I'd like to
understand exactly *why* Ron's external method works.

I'm creating a Zope Product that will introduce a new Zope type  
called MIME Remapper.  This MIME Remapper will be a ZClass that has a
single property sheet, which allows you to associate particular MIME types
with particular Zope types using a nifty text field and dropdown.

The problem is, I don't understand why Ron's suggestion actually
works.  I assume that the method PUT_factory() is over-riding the built-in
default, and when it returns None (for an unknown MIME type), Zope --for
some magical reason-- falls back to its built-in PUT_factory() to figure 
out the MIME type.  Is that right?

Now, does that mean that the only way to override PUT_factory() is
via an external method?  If so, why is that?  If not, can I create a new
ZClass that has a method called PUT_factory()?  Will a new instance of my
ZClass mean that PUT_factory() is overridden for the folder the instance
is in?  If so, then why is Zope finding the PUT_factory() of my new MIME
Remapper type when it actually wants the PUT_factory() for the folder
that I'm in?  Do I need to redefine the PUT_factory() of the instance's
folder?  How do I do that?

Obviously, I'm confused.  I feel like this particular problem will
give me good insight into how Zope works, so I'd love an explanation of
why Ron's PUT_factory() works.  (FYI, I understand class inheritance, 
just not within the Zope framework.)


Thanks,
Derek Simkowiak
[EMAIL PROTECTED]





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Re: [Zope] WebDAV/Word readonly problem resolved

2001-11-26 Thread Joachim Schmitz

Hurrahhh !

it works now.

On Mon, 26 Nov 2001, Andreas Jung wrote:

 I also checked-in a newer version of ZServer/HTTPResponse.py some minutes
 ago
 to provide a general Etag support. This should work now.

 Andreas
 - Original Message -
 From: Joachim Schmitz [EMAIL PROTECTED]
 To: Andreas Jung [EMAIL PROTECTED]
 Cc: zope-list [EMAIL PROTECTED]; zope-dev [EMAIL PROTECTED]
 Sent: Monday, November 26, 2001 13:39
 Subject: Re: [Zope] WebDAV/Word readonly problem resolved


 Hallo Andreas,

 I downloaded and installed the new DTMLMethod.py, but no change in behavior,
 did you test it ?

 I looked at the networkdump, and still no Etag in the HTTPResponse :-(



 On Mon, 26 Nov 2001, Andreas Jung wrote:

  The long outstanding problem that WinWord treated a .html file as
  read-only when it has been opened through WebDAV/webfolder is finally
  resolved. Joachim Schmitz gave the hint that WinWord depends on the
  HTTP ETAG header that Zope usually did not send. This behaviour is odd
  because HTTP 1.1 does not require that a server sends this header.
 
  The CVS trunk and Zope-2_4-branch contain a modified version of
  lib/python/OFS/DTMLMethod.py that solves that problem.
 
  Andreas
 
  -
 -Andreas JungZope Corporation   -
-   EMail: [EMAIL PROTECTED]http://www.zope.com  -
   -  Python Powered   http://www.python.org -
-   Makers of Zope   http://www.zope.org  -
 -  Life is a fulltime occupation  -
  -
 
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 

 Mit freundlichen Grüßen

 Joachim Schmitz

 AixtraWare, Ing. Büro für Internetanwendungen
 Hüsgenstr. 33a, D-52457 Aldenhoven
 Telefon: +49-2464-8851, FAX: +49-2464-905163


 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )





Mit freundlichen Grüßen

Joachim Schmitz

AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Re: [Zope] WebDAV/Word readonly problem resolved

2001-11-26 Thread Joachim Schmitz

Hallo Andreas,

I downloaded and installed the new DTMLMethod.py, but no change in behavior,
did you test it ?

I looked at the networkdump, and still no Etag in the HTTPResponse :-(



On Mon, 26 Nov 2001, Andreas Jung wrote:

 The long outstanding problem that WinWord treated a .html file as
 read-only when it has been opened through WebDAV/webfolder is finally
 resolved. Joachim Schmitz gave the hint that WinWord depends on the
 HTTP ETAG header that Zope usually did not send. This behaviour is odd
 because HTTP 1.1 does not require that a server sends this header.

 The CVS trunk and Zope-2_4-branch contain a modified version of
 lib/python/OFS/DTMLMethod.py that solves that problem.

 Andreas

 -
-Andreas JungZope Corporation   -
   -   EMail: [EMAIL PROTECTED]http://www.zope.com  -
  -  Python Powered   http://www.python.org -
   -   Makers of Zope   http://www.zope.org  -
-  Life is a fulltime occupation  -
 -



 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



Mit freundlichen Grüßen

Joachim Schmitz

AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Re: [Zope] WebDAV lockingproblem with Word

2001-11-12 Thread Joachim Schmitz

Hi Andreas,

attached you find a tcpdump generated log of the communication between a
Windows Word client and an IIS Informationserver, during storage and
retrieval of a Webdocument. With IIS the Webdocument is never
writeprotected. Hope that helps.


Mit freundlichen Grüßen

Joachim Schmitz

AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163



dump_webdav
Description: Binary data


Re: [Zope] WebDav-support / Index_html versus index.html

2000-11-27 Thread Dieter Maurer

Pieter Biemond writes:
  ... access Zope via WebDAV from MS products 
  Can anybody answer the following questions:
  * Has anybody implemented something like this before? Any pittfals I should
  watch out for?
Search the searchable list archiv.
You will find some article about this issue.

  * Why is the default file index_html and not index.html
(Windows doesn't want to open files without extensions).
I assume, because preferences of Python, Zope's implementation
language, have had a higher priority than Windows preferences ;-)
Python does not like periods in names.

  * Should I install 2.2.2. now, or are there any WebDav-updates in 2.2.4?
I do not think, the two version will differ in WebDAV support
(though someone is working on locking through WebDAV).
However, if I would start a new project, I would go for
2.2.4 (I expect less bugs than 2.2.2).

  * Is it possible to backup all files from Zope easily? (for example use a
  command-line webdav-client to pull everything out of the Zope database). I
  would like to have all the files backed up on a regular filesystem, rather
  than a proprietary database.
You can do that.

But you will lose information. Objects in Zope not only have
content, but properties, security attributes, ownership,
modification times 
All these will not be extractable by WebDAV.

I would go for the backup of the complete proprietary database.
At least as the primary backup. As an additional safety
belt, I might think about backing up the content independently.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] webdav q

2000-08-02 Thread Brian Lloyd

 Goliath has locking support, but disables that feature when talking to
 a Zope server. Also I was fiddling with Zope versions, but the webdav
 client seems to slip content underneath the versioning interface in
 Zope.
 
 I was wondering if it would be possible to make Zope version map into
 the webdav concept of locking, or does Zope have a concept of locking?

You have hit on exactly the reason why we didn't implement 
DAV level 2 locking yet :^) It would have been relatively 
simple to do so, but it would have been in a way that only 
DAV clients would respect locks. In an environment where 
people may be changing content via HTTP, FTP, DAV, xml-rpc, 
in versions, etc., it seemed like it would be better to 
think harder about the 'locking problem' and what would make 
the most sense given all the things going on. Unfortunately 
we haven't been able to get back to thinking about that yet. 

I'd love to see someone take up the mantle for this on 
dev.zope.org though :^)


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




RE: [Zope] WebDAV, Web Folders and collaborative work

2000-05-31 Thread Brian Lloyd

 I am happily dragging and dropping documents between my Zope 
 server and my desktop using the 'Open as Web Folder' facility 
 of IE5. This seems to save me from writing an upload page but 
 not much else.
 
 What I am looking for is a way to prevent others from editing 
 the document whilst I have it.  I thought WebDAV helped with 
 this. Maybe I need to do something with a Version?
 
 have I missed the point?

No - the current incarnation of WebFolders (Microsoft's product) 
does not deal with locking. Office 2K does (it locks a document
while editing it). Zope currently "fakes" locking support as an 
unofficial measure to allow folks to open O2K docs stored in Zope. 

We faked it partly because there was (even fairly recently) some 
disagreement in the DAV group about how locking ultimately should 
work, and partly because DAV clients haven't exactly taken the 
world by storm at this point and that has to be reflected in our 
priorities. Note that even if locking were supported on the Zope
side, I don't think that this would help your situation since 
WF will not lock an object just because you dragged it to your 
local desktop. AFAIK, O2K will only lock something if you open
it directly with O2K.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )