It is awfully useful to have the possibility to browse through local files. You can do that ok, but it would even be more useful if one could view them, too.

Any suggestions? MIME capabilities for Zope/Zwiki?

BeWo

OK, it seems like i understood LocalFS at last.

I used a local file system object to browse files stored locally. Now i realized, how to use the basepath directory of the object as a kind of Pseudo Wiki. This allows for RemoteWikiLinks to be used to refer to local files. I don't quite understand, why it works with filenames containing a dot, neither why it works to address files in subdirectories, but it does.

This makes me kind of happy, so here is how it's done:

- install Zope's LocalFS product
- create a local file system object with your desired basepath
- create a new Zwiki Page named ExternalFile
- add
  RemoteWikiURL: http://zopeserver/pathto/localfilesystemobject/
- use
    ExternalFile :filename                 or
    ExternalFile :filename.txt             or
    ExternalFile :directory/filename.txt
  as RemoteWikiLinks  :)

Note that six lines above there is NO trailing space following "...temobject/". You have to make sure that there is none, because it will not be stripped from the url generated for the remote wiki links. This will confuse some browsers, while others will do fine. If your's is a latter one and your colleges use browsers of the former type you'll have trouble to find out what's wrong! (see OnTrailingSpaces?)

A seemingly trivial problem remaines nevertheless. I'd like my browser to start alien applications on files according to their mime-type. (I'd like it better if Zope could serve html previews of those files,

but this won't happen for all those filetypes around)

So how do i do that?

Netscape->Edit->Preferences->Navigator->Applications

M$ Excel Worksheet = /opt/.../soffice "%1"

One hopes %1 expands to selected file, but Netscape 4.72 Help won't tell me. Whatever the problem is, staroffice starts but never opens my files :(

BeWo

subtopics:

fso --Fri, 01 Apr 2005 11:25:58 -0800 reply

where can i find a tutorial?

**fso ** --Fri, 01 Apr 2005 11:50:27 -0800 reply

the ms file sytem object

fso --Fri, 01 Apr 2005 12:21:31 -0800 reply

It is awfully useful to have the possibility to browse through local files. You can do that ok, but it would even be more useful if one could view them, too.

Any suggestions? MIME capabilities for Zope/Zwiki?

BeWo

OK, it seems like i understood LocalFS at last.

I used a local file system object to browse files stored locally. Now i realized, how to use the basepath directory of the object as a kind of Pseudo Wiki. This allows for RemoteWikiLinks to be used to refer to local files. I don't quite understand, why it works with filenames containing a dot, neither why it works to address files in subdirectories, but it does.

This makes me kind of happy, so here is how it's done:

Note that six lines above there is NO trailing space following "...temobject/". You have to make sure that there is none, because it will not be stripped from the url generated for the remote wiki links. This will confuse some browsers, while others will do fine. If your's is a latter one and your colleges use browsers of the former type you'll have trouble to find out what's wrong! (see OnTrailingSpaces??)

A seemingly trivial problem remaines nevertheless. I'd like my browser to start alien applications on files according to their mime-type. (I'd like it better if Zope could serve html previews of those files, but this won't happen for all those filetypes around) So how do i do that? :

Netscape->Edit->Preferences->Navigator->Applications

M$ Excel Worksheet = /opt/.../soffice "%1"

One hopes %1 expands to selected file, but Netscape 4.72 Help won't tell me. Whatever the problem is, staroffice starts but never opens my files :(

dom --Fri, 01 Apr 2005 12:22:27 -0800 reply

Chapter 1: Introducing XML Chapter 2: XML Fundamentals Chapter 3: Document Type Definitions Chapter 4: Namespaces Chapter 5: Internationalization Chapter 6: XML as a Document Format Chapter 7: XML on the Web Chapter 8: XSL Transformations Chapter 9: XPath Chapter 10: XLinks? Chapter 11: XPointers? Chapter 12: XInclude? Chapter 13: Cascading Stylesheets (CSS) Chapter 14: XSL Formatting Objects (XSL-FO) Chapter 15. Resource Directory Description Language (RDDL) Chapter 16: XML as a Data Format Chapter 17: XML Schemas Chapter 18: Programming Models Chapter 19: Document Object Model (DOM) Chapter 20: Simple API for XML (SAX) Chapter 21: XML 1.0 Reference Chapter 22: Schemas Reference Chapter 23: XPath Reference Chapter 24: XSLT Reference Chapter 25: DOM Reference Chapter 26: SAX Reference Chapter 27: Character Sets