Hi! I want to make files from the filesystem down- and uploadable via browser. It is needed for a python product. No TTH editing, dtml or zpt. Which products are available? A quick search revealed: +ExtFile +ExternalFile What are the pros and cons? thomas
On Wed, Jul 24, 2002 at 02:53:46PM +0200, Thomas Guettler wrote:
Hi!
I want to make files from the filesystem down- and uploadable via browser.
It is needed for a python product. No TTH editing, dtml or zpt.
Which products are available?
WebDav? (in Internet Explorer: File -> open -> (enter URL and select 'Open as WebFolder'). Now you have a explorer window open on your zope folder where you can drag and drop files -- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________
Reinoud van Leeuwen wrote:
On Wed, Jul 24, 2002 at 02:53:46PM +0200, Thomas Guettler wrote:
Hi!
I want to make files from the filesystem down- and uploadable via browser.
It is needed for a python product. No TTH editing, dtml or zpt.
Which products are available?
WebDav? (in Internet Explorer: File -> open -> (enter URL and select 'Open as WebFolder'). Now you have a explorer window open on your zope folder where you can drag and drop files
I tried WebDAV three month ago. It was not stable. The files got read only after the first access. I think it is a bug in MS-Office. But I just want to server a simple file. I wrote it myself, quite easy If someone is interested: def downloadAttachment(self, file=None, REQUEST=None): "Download attachment 'file' to browser" if file==None: raise 'You must specify a file to download' abs_filename=os.path.join(self.external_documents_home, self.id, file) fd=open(abs_filename, "rb") file_content=fd.read() print "file_content: %s" % file_content[:20] fd.close() if REQUEST: content_type, content_encoding = mimetypes.guess_type(abs_filename) print "ct ce:", content_type, content_encoding if content_type: REQUEST.RESPONSE.setHeader('Content-Type', content_type) if content_encoding: REQUEST.RESPONSE.setHeader('Content-Encoding', content_encoding) return file_content thomas
On Wed, 2002-07-24 at 14:53, Thomas Guettler wrote:
Hi!
I want to make files from the filesystem down- and uploadable via browser.
It is needed for a python product. No TTH editing, dtml or zpt.
Which products are available?
A quick search revealed:
+ExtFile +ExternalFile
What are the pros and cons?
I'm using ExternalFile product for a while now and I'm quite happy with it ; it allows you to define links to files which can be placed anywhere on your filesystem, which files can be already existing or created on the fly throught upload forms. You can also make these files "behave_like" other products (File, Image, DTML Method or DTML Document), just to store these objects on disk instead of into the ZODB, but while still being able, for example, to catalog them easilly. I think ExtFile is referencing files present in a given subdirectory only, and provides less options with optional behaviours... Thierry
ZFS transparently stores many objects on the file system. It has a few bugs at the moment, so if you want to live on the bleeding edge ;) ----- Original Message ----- From: "Thomas Guettler" <zopestoller@thomas-guettler.de> To: <zope@zope.org> Sent: Wednesday, July 24, 2002 5:53 AM Subject: [Zope] Serving Files from Filesystem
Hi!
I want to make files from the filesystem down- and uploadable via browser.
It is needed for a python product. No TTH editing, dtml or zpt.
Which products are available?
A quick search revealed:
+ExtFile +ExternalFile
What are the pros and cons?
thomas
_______________________________________________ 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 )
Andy McKay wrote:
ZFS transparently stores many objects on the file system. It has a few bugs at the moment, so if you want to live on the bleeding edge ;)
I had a look at it before. ZFS looks very, very interesting thomas
Hi, all!!! The tree tag has an attribute - urlparam urlparam=string A query string which is included in the expanding and contracting widget links. This attribute is for advanced usage only. I'm having problems with it. The problem is when I do: <dtml-let rubrik_id="''"> <dtml-tree id=rubrik_id branches_expr="sql_list_rubriks(rubrik_id=rubrik_id)" urlparam="rubrik_id=<dtml-var rubrik_id>" single="true" > <b><dtml-var rubrik_name></b> </dtml-tree> </dtml-let> the rendered URL is: http://host:9673/rubrik/show_tree?rubrik_id=<dtml-var%20rubrik_id>&tree-e=eJyLVneEACcD73RbdR0FdUNDM/VYAEOKBWE#116 And I see the <dtml-var%20rubrik_id> unless the value of rubrik_id. What can I do to get the value of parameter, and how to use urlparam with a few parametars? -- Best regards, www.uralfirm.ru Dmitry Matveev mailto:matveev@uralfirm.ru
Pleaes don't reply to an email if you have a new topic (Sorry, bad mood) thomas
Dmitry Matveev writes:
... ulrparam attribute for the tree tag ... This attribute is very badly designed.
Its value is a literal string which is appended to the URL as part of the query string. I do not see any use case for this. Someone extended the tree tag with an "urlparam_expr" attribute. It value is an expression that is evaluated and the result extends the URL, much more useful. Sadly enough, the extension never made it into the Zope core. You must search the archives and add it yourself. Dieter
participants (6)
-
Andy McKay -
Dieter Maurer -
Dmitry Matveev -
Reinoud van Leeuwen -
Thierry Florac -
Thomas Guettler