Re: [Zope] Reloading file objects?

2000-08-16 Thread Dieter Maurer

Peter Arvidsson writes:
 > That just work for documents. It is not possible to set any headers for
 > pdf-files, is it? I tried to put that in the document I call the
 > pdf-file from but that didnt work.
The following DTML method (view) adds a header to a file/image:




The "><" at the start of the second line may be necessary to
prevent spurious whitespace before the image.
Almost surely (not tested), you can use alternatively


Expires: 




This uses Zope's CGI compatibility: the body of a response
generated by a DTML method (or document) may be preceeded
by a sequence of HTTP headers separated from the body by
a single blank line.


You would use this method in URLs in the following way:

/view


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Reloading file objects?

2000-08-15 Thread Dieter Maurer

Peter Arvidsson writes:
 > Does anyone know a way to get the file to show the new pdf-file when I
 > want to view it? 
You can use an "Expires" header to control how long a browser
might cache a page.



Dieter


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson

I later found out this was a bug. The bug was reported 1999-10-12 as
number 754:

[754] Zope Bug: Uploaded Images Don't Appear Immediately
Category: General Last Updated: Oct 29, 1999 7:05 am 
Submitted On: Oct 12, 1999 3:58 am Status: Ongoing 
Reported Version: 2.0.1 Expected/Fixed Version: 

Strange that is is still ongoing after almost a year. Anyway the problem
was that it always used the cached file and a discussion about this was
found in the archives: 

http://zope.nipltd.com/public/lists/zope-archive.nsf/Main/AED89A938194225580256857007679ED?OpenDocument&mode=subject&topic=[Zope]Dumbobjectaliasingquestion

I chunked it into the collector again as bugreport 809 so we just have
to wait and see now.

Peter



Terry Kerr skrev:
> 
> are u using netscape?  this seems to be a netscape cache problem.  The same
> happens with images.  You have to download the image to harddisk for
> netscape to update its cache.
> 
> Peter Arvidsson wrote:
> 
> > I have file-objects containing pdf-files. When I change the object to
> > contain another pdf-file (with "manage_upload") I get a problem. When I
> > want to view the file it still shows the old file. However when I choose
> > save to disk I get the new object and if I take a look at its properties
> > (size etc...) they are for the new object.
> >
> > Does anyone know a way to get the file to show the new pdf-file when I
> > want to view it?
> >
> > I have tried to put  in the
> > page where I have the link to the file but that doesnt affect the file
> > when I open it. The link I use are the path for the file as it is on the
> > view-tab of the object. Is there some way to get it to show the new file
> > when I view it and not only when I save it to disk or open it in a new
> > window?
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > 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 )
> 
> --
> Terry Kerr ([EMAIL PROTECTED])
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax: +613 9563 3856
> Mobile:  +61 414 938 124
> ICQ: 79303381
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Reloading file objects?

2000-08-10 Thread Terry Kerr

are u using netscape?  this seems to be a netscape cache problem.  The same
happens with images.  You have to download the image to harddisk for
netscape to update its cache.

Peter Arvidsson wrote:

> I have file-objects containing pdf-files. When I change the object to
> contain another pdf-file (with "manage_upload") I get a problem. When I
> want to view the file it still shows the old file. However when I choose
> save to disk I get the new object and if I take a look at its properties
> (size etc...) they are for the new object.
>
> Does anyone know a way to get the file to show the new pdf-file when I
> want to view it?
>
> I have tried to put  in the
> page where I have the link to the file but that doesnt affect the file
> when I open it. The link I use are the path for the file as it is on the
> view-tab of the object. Is there some way to get it to show the new file
> when I view it and not only when I save it to disk or open it in a new
> window?
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )

--
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax: +613 9563 3856
Mobile:  +61 414 938 124
ICQ: 79303381




___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson

A very smart thing to do. Unfortunately this was not successful... when
I sent an argument like this:
/pdf/&dtml-entry;?x=">
My pdf-file couldnt be displayed. It didnt recognize the argument and
told me to download some stuff from Microsoft or something... is there
any other way to do it? Or is there any arguments pdf-files can handle
and is not important (e.g. can be set to a dummy value)?


Jens Vagelpohl skrev:
> 
> a simple workaround, but one that pretty much prevents any caching
> anywhere, is to append the URL for this file with a changing query
> string, e.g. a timestamp. this is what it would look like:
> 
> 
> ?x= fmt="%H%M%S">">My File
> 
> 
> jens
>

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Reloading file objects?

2000-08-10 Thread Jens Vagelpohl

a simple workaround, but one that pretty much prevents any caching
anywhere, is to append the URL for this file with a changing query
string, e.g. a timestamp. this is what it would look like:


?x=">My File


jens


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On 
> Behalf Of Peter
> Arvidsson
> Sent: Thursday, August 10, 2000 07:29
> To: Gijs Reulen
> Cc: Mailinglist Zope
> Subject: Re: [Zope] Reloading file objects?
> 
> 
> Something like that will probably work but I cant tell everyone that
> visit the site to change their IE settings :/
> 
> Gijs Reulen skrev:
> > 
> > Have you tried to disable the browser cache (or 'temp 
> internet files') ?
> > 
> > > -Oorspronkelijk bericht-
> > > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter
> > > Arvidsson
> > > Verzonden: donderdag 10 augustus 2000 12:56
> > > Aan: [EMAIL PROTECTED]
> > > Onderwerp: [Zope] Reloading file objects?
> > >
> > >
> > > I have file-objects containing pdf-files. When I change 
> the object to
> > > contain another pdf-file (with "manage_upload") I get a 
> problem. When I
> > > want to view the file it still shows the old file. 
> However when I choose
> > > save to disk I get the new object and if I take a look at 
> its properties
> > > (size etc...) they are for the new object.
> > >
> > > Does anyone know a way to get the file to show the new 
> pdf-file when I
> > > want to view it?
> > >
> > > I have tried to put  CONTENT="no-cache"> in the
> > > page where I have the link to the file but that doesnt 
> affect the file
> > > when I open it. The link I use are the path for the file 
> as it is on the
> > > view-tab of the object. Is there some way to get it to 
> show the new file
> > > when I view it and not only when I save it to disk or 
> open it in a new
> > > window?
> > >
> > > ___
> > > Zope maillist  -  [EMAIL PROTECTED]
> > > 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 )
> > >
> > >
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )
> 
> 

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson

Something like that will probably work but I cant tell everyone that
visit the site to change their IE settings :/

Gijs Reulen skrev:
> 
> Have you tried to disable the browser cache (or 'temp internet files') ?
> 
> > -Oorspronkelijk bericht-
> > Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter
> > Arvidsson
> > Verzonden: donderdag 10 augustus 2000 12:56
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: [Zope] Reloading file objects?
> >
> >
> > I have file-objects containing pdf-files. When I change the object to
> > contain another pdf-file (with "manage_upload") I get a problem. When I
> > want to view the file it still shows the old file. However when I choose
> > save to disk I get the new object and if I take a look at its properties
> > (size etc...) they are for the new object.
> >
> > Does anyone know a way to get the file to show the new pdf-file when I
> > want to view it?
> >
> > I have tried to put  in the
> > page where I have the link to the file but that doesnt affect the file
> > when I open it. The link I use are the path for the file as it is on the
> > view-tab of the object. Is there some way to get it to show the new file
> > when I view it and not only when I save it to disk or open it in a new
> > window?
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > 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 )
> >
> >

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




RE: [Zope] Reloading file objects?

2000-08-10 Thread Gijs Reulen

Have you tried to disable the browser cache (or 'temp internet files') ?


> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter
> Arvidsson
> Verzonden: donderdag 10 augustus 2000 12:56
> Aan: [EMAIL PROTECTED]
> Onderwerp: [Zope] Reloading file objects?
> 
> 
> I have file-objects containing pdf-files. When I change the object to
> contain another pdf-file (with "manage_upload") I get a problem. When I
> want to view the file it still shows the old file. However when I choose
> save to disk I get the new object and if I take a look at its properties
> (size etc...) they are for the new object. 
> 
> Does anyone know a way to get the file to show the new pdf-file when I
> want to view it? 
> 
> I have tried to put  in the
> page where I have the link to the file but that doesnt affect the file
> when I open it. The link I use are the path for the file as it is on the
> view-tab of the object. Is there some way to get it to show the new file
> when I view it and not only when I save it to disk or open it in a new
> window?
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> 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 )
> 
> 

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Reloading file objects?

2000-08-10 Thread Peter Arvidsson

I have file-objects containing pdf-files. When I change the object to
contain another pdf-file (with "manage_upload") I get a problem. When I
want to view the file it still shows the old file. However when I choose
save to disk I get the new object and if I take a look at its properties
(size etc...) they are for the new object. 

Does anyone know a way to get the file to show the new pdf-file when I
want to view it? 

I have tried to put  in the
page where I have the link to the file but that doesnt affect the file
when I open it. The link I use are the path for the file as it is on the
view-tab of the object. Is there some way to get it to show the new file
when I view it and not only when I save it to disk or open it in a new
window?

___
Zope maillist  -  [EMAIL PROTECTED]
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 )