[Zope] Re: LocalFS w/ annotation data

Jim Sanford jsanford@atinucleus.com
Tue, 20 Jun 2000 09:48:27 -0500


I would suggest putting an extra text box on the upload
form for the filename in ZOPE. You could include javascript
to automatically fill in the text box whenever the ZOPE name
in the file box changed.

The javaScript code could use the C:\  or D:\
or whatever pattern at the beginning to determine that it
might be a windows file and strip off the path.  On the
unlikely occassions it "guesses" wrong the user could
change the name before uploading.


Jim Sanford

----- Original Message ----- 
From: Dan L. Pierson <dan@sol.control.com>
To: Jonothan Farr <jfarr@real.com>
Cc: Dan L. Pierson <dan@sol.control.com>; <zope@zope.org>
Sent: Tuesday, June 20, 2000 7:51 AM
Subject: [Zope] Re: LocalFS w/ annotation data


Jonothan Farr writes:
 > That sounds like a mess. LocalDirectory objects are not persistent, they are
 > created each time they are requested. So you'll have nowhere to put your
 > PersistentMappings except in the top-level LocalFS object. Trying to make the
 > LocalDirectories persistent would be painful. For one, it would be hard to keep
 > in synch with the file system. You could store everything in a PM at the top and
 > use paths relative to the base but that would make copy,rename,etc. also messy,
 > like you said.

I was planning to put the only top level PersistentMapping in the
LocalFS object, all the others would be values in it.  Still, you're
right, it's not pretty.

 > What about just storing your meta-data in files in the local file system? Then
 > you wouldn't need to modify the LocalFS product at all. Just write a ZClass that
 > can read/write you meta-data file format.

Might well be a better approach.  I'll think about it.  Unfortunately, 
it doesn't remove the need for automatically handling move, copy and
rename, since these files wouldn't be visible to the normal archive users.


_______________________________________________
Zope maillist  -  Zope@zope.org
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 )