[Zope] RE: [Plone-users] Re: Problem with underscore in metatag for ftp upload

Peter Millar peter.millar at parasyn.com.au
Tue Apr 27 03:01:45 EDT 2004


I have used webdav ... 

First of all you have to tell zope to start the webdav server ... Found
in the zope.conf file.  To do this just uncomment the webdav lines
(about 5 of them)  looks like this:
# <webdav-source-server>
#   # valid keys are "address" and "force-connection-close"
#   address $PLONE_DAVSERVER_PORT
#   force-connection-close off
# </webdav-source-server>

Then you simply create a drive mapping on your pc that is actually a
webfolder pointing it to your plone site.  

That's how I did it ... Only problem was there seems to be no
permissions and my site was totally open ... So I disabled it really
quick.

____________________________________________ 
Peter Millar 

-----Original Message-----
From: plone-users-admin at lists.sourceforge.net
[mailto:plone-users-admin at lists.sourceforge.net] On Behalf Of Marie
Robichon
Sent: Tuesday, 27 April 2004 4:51 PM
To: Jud Dagnall
Cc: zope at zope.org; plone-users at lists.sourceforge.net
Subject: [Plone-users] Re: Problem with underscore in metatag for ftp
upload


At 13:16 26/04/2004 -0700, Jud Dagnall wrote:
>On Mon, 2004-04-26 at 05:18, Marie Robichon wrote:
> > I am currently trying to do migrate content from a site to Plone.
>...
> > content and would then like to upload it using ftp. However, I have 
> > discovered that the underscore in the 'Effective_date' and 
> > 'Expiration_date' metatags are preventing the html files from being 
> > uploaded and giving me a '426 Error creating file' error (using 
> > FileZilla).  If I remove the underscore the files upload fine!
>
>Not quite sure I understand what's going on here. Are you trying to 
>upload a file named 'Effective_date'?
>
>Seems like you would want to upload the file, and then use the python 
>script to set the metadata for that particular file.


Its an html file which should be converted into a Plone document.  Ths 
syntax is very simple:

<html>
<head>
<title>Test document</title>
<meta name="Subject" content="" />
<meta name="Publisher" content="No publisher" />
<meta name="Description" content="" />
<meta name="Contributors" content="" />
<meta name="Effective_date" content="2004-01-12 00:00:00" /> <meta
name="Expiration_date" content="2005-12-12 00:00:00" /> <meta
name="Type" content="Document" /> <meta name="Format"
content="text/html" /> <meta name="Language" content="en" /> <meta
name="Rights" content="" /> </head> <body> <p>This is the test document
I am trying to ftp to Plone</p>
  </body>
</html>

The idea is to keep the effective dates and expiration dates of my old
Zope 
objects when ftping them to Plone.  It turns out that this problem only 
occurs with Document types and not with News types.

Jaroslav Lukeš (thanks for your answer) suggested using WebDav to
upload, 
but I am having problems using webdav with Plone2 (all this is done
locally 
on my W2K box for the moment).  If any Plonistas can help by explaning
how 
to set up the webdav stuff I would be very grateful.

Have a good day

Marie




-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For
a limited time only, get FREE Ground shipping on all orders of $35 or
more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
Plone-users mailing list
Plone-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users




More information about the Zope mailing list