web/webconfig.py
changeset 465 1158231e7360
parent 447 0e52d72104a6
child 823 cb8ccbef8fa5
equal deleted inserted replaced
464:75d242975792 465:1158231e7360
     1 """common web configuration for twisted/modpython applications
     1 """common web configuration for twisted/modpython applications
     2 
     2 
     3 :organization: Logilab
     3 :organization: Logilab
     4 :copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     4 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     6 """
     6 """
     7 __docformat__ = "restructuredtext en"
     7 __docformat__ = "restructuredtext en"
     8 
     8 
     9 import os
     9 import os
   347         stream = self.static_file_open(rpath)
   347         stream = self.static_file_open(rpath)
   348         stream.write(data)
   348         stream.write(data)
   349         stream.close()
   349         stream.close()
   350 
   350 
   351     def static_file_del(self, rpath):
   351     def static_file_del(self, rpath):
   352         if static_file_exists(rpath):
   352         if self.static_file_exists(rpath):
   353             os.remove(join(self.static_directory, rpath))
   353             os.remove(join(self.static_directory, rpath))
   354         
   354