Logo Search packages:      
Sourcecode: zope-extfile version File versions

def zope-extfile-1.4.2::ExtFile::ExtFile::_get_file_to_serve (   self,
  icon = 0,
  preview = 0 
) [private]

Find out about the file we are going to serve 

Definition at line 780 of file ExtFile.py.

00780                                                    :
        """ Find out about the file we are going to serve """
        if hasattr(self, 'has_preview') and self.has_preview: 
            has_preview = 1
        else: 
            has_preview = 0
        if not self._access_permitted(self.REQUEST): 
            preview = 1
        if preview and not has_preview: 
            icon = 1
        
        if icon:
            filename = join(Globals.package_home(globals()), self.getIconPath())
            content_type = 'image/gif'
        elif preview:
            filename = self.prev_filename
            content_type = self.prev_content_type
        else:
            filename = self.filename
            content_type = self.content_type
        
        return filename, content_type, icon, preview

    def _get_zodb_path(self, ob):


Generated by  Doxygen 1.6.0   Back to index