The browser (firefox or epiphany) will cache the response of the first
call, and subsequent calls will automatically return the same response.


I generate a file always different with de same name, but load always
the first file.pdf

How to I deactivate the cached file only for lisApe() ?

I use:

in controllers.py

@tg.expose()                    
def lisApe(self):
  file=info.generarPDF()
  return serveFile(file, "application/x-download","attachment")

def generarPDF(self):
  data= self.list()     
        fileName=tg.url("/tmp/infTod.pdf")
        doc = SimpleDocTemplate(fileName,pagesize=A4,title=self.title)
        Story = []      
        t= data... .... ....
        Story.append(t)
        doc.build(Story, onFirstPage=self.firstPage,
onLaterPages=self.laterPages)        
        return fileName





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to