You are not logged in Log in Join
You are here: Home » Members » ngouzy's Home » Products » EuralbaFilePatch » EuralbaFilePatch-1.0.0 » README.txt » View Document

Log in
Name

Password

 

README.txt

A patch for File object in ZMI and Plone
EuralbaFilePatch is released under the GNU General Public License.
Contact : Nicolas Gouzy <[email protected]>

==============================================================================

Problem with original File object (OFS.Image.File) :

- In ZMI
When you create a File object and you just set the file path, if the file name
contains illegal characters for Zope id you've got an error like :
The id "<file name>" contains characters illegal in URLs.
To solve this problem, you can modify your file name on your local disk before
uploading or set manually a valid id.

- In Plone
When you create a File object, you have to set the file path, but if the file
name contains illegal characters for Zope id you've got an error like :
Please correct the indicated errors
This message is not really explicit and very end-users don't understand what
they have to do.
To solve this problem, the only solution is to modify your file name on your
local disk before uploading.

In two cases, it's pretty boring, isn't it ?

==============================================================================

What is EuralbaFilePatch's goal ?

It just creates an id from file name like original File object but illegal
characters are removed.
This patch doesn't create a new File object, it directly patches the class
OFS.Image.File.

==============================================================================

Installation to patch ZMI :

- Unpack the product in the Products directory.

- Restart Zope server.


Installation to patch Plone :

- Follow instructions of installion to patch ZMI.

- Log into the ZMI as manager

- Go to your Plone root directory

- Create an External Method with the following parameters:
id : EuralbaFilePatchInstaller (or whatever)
title : EuralbaFilePatch Installer (or whatever)
Module Name : EuralbaFilePatch.Install
Function Name : install

- save it

- click now the test tab of this external method.