/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/save.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/save.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 200 by bh, Mon Feb 4 19:22:08 2002 UTC revision 201 by bh, Mon Jul 8 10:50:53 2002 UTC
# Line 15  __version__ = "$Revision$" Line 15  __version__ = "$Revision$"
15  import os  import os
16  import string  import string
17    
18  from Thuban.Lib.fileutil import relative_filename  import Thuban.Lib.fileutil
19    
20    def relative_filename(dir, filename):
21        """Return a filename relative to dir for the absolute file name absname.
22    
23        This is almost the same as the function in fileutil, except that dir
24        can be an empty string in which case filename will be returned
25        unchanged.
26        """
27        if dir:
28            return Thuban.Lib.fileutil.relative_filename(dir, filename)
29        else:
30            return filename
31    
32  def escape(data):  def escape(data):
33      """Escape &, \", ', <, and > in a string of data.      """Escape &, \", ', <, and > in a string of data.

Legend:
Removed from v.200  
changed lines
  Added in v.201

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26