Problem with underscore in metatag for ftp upload
Marie Robichon wrote:
Hi,
I am currently trying to do migrate content from a site to Plone.
I have written a python script as suggested to add the metadata to the 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!
I said in a previous mail that ftping via Dreamweaver solved the problem, but i must have been mistaken because my attempts today gave me the same error.
FTP access to zopedb sometimes does not allow to create some files. I think that there is problem with acquisition. Creation of these problematic files via ZMI is without problems. You should try another access method, as webdav. Regards, -- Jaroslav Luke -- Tento e-mail nemu*e obsahovat VIRY jeliko nepocházi z virózního systému M$ Windows!
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. Jud -- Jud <lists@dagnall.net> http://www.dagnall.net
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
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@lists.sourceforge.net [mailto:plone-users-admin@lists.sourceforge.net] On Behalf Of Marie Robichon Sent: Tuesday, 27 April 2004 4:51 PM To: Jud Dagnall Cc: zope@zope.org; plone-users@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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plone-users
Don't know if this is your problem, but underscores are not legal in URLs. On Tue, 27 Apr 2004, Marie Robichon wrote:
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
_______________________________________________ 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 )
Marie Robichon wrote:
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.
webdav does not have nothing common with plone. Plone is CMS Webdav is access method that is served by Zope Medusa server. Microsoft's implementaton of webdav is known as very poor and unusable. You need to use one of these variants: 1. use davfs at linux and then use samba share, and attach this share from windows as network drive 2. use webdrive at windows and access to your zope data as in network drive. -- Jaroslav Luke -- Tento e-mail nemu*e obsahovat VIRY jeliko nepocházi z virózního systému M$ Windows!
----- Original Message ----- From: "Jaroslav Lukesh" <lukesh@seznam.cz> To: "Marie Robichon" <robichon@esrf.fr> Cc: "Jud Dagnall" <lists@dagnall.net>; <plone-users@lists.sourceforge.net>; <zope@zope.org> Sent: Tuesday, April 27, 2004 3:45 AM Subject: Re: [Zope] Re: Problem with underscore in metatag for ftp upload
Marie Robichon wrote:
Jaroslav Lukes (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.
I'm using HTML-kit on w2k box and it seems to work reasonably well w/ webdav.. hth
webdav does not have nothing common with plone.
Plone is CMS
Webdav is access method that is served by Zope Medusa server.
Microsoft's implementaton of webdav is known as very poor and unusable. You need to use one of these variants:
1. use davfs at linux and then use samba share, and attach this share from windows as network drive
2. use webdrive at windows and access to your zope data as in network
drive.
--
Jaroslav Lukes
-- Tento e-mail nemu*ze obsahovat VIRY jelikoz nepocházi z virózního systému M$ Windows!
_______________________________________________ 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 )
participants (6)
-
Bobb -
Dennis Allison -
Jaroslav Lukesh -
Jud Dagnall -
Marie Robichon -
Peter Millar