5 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
6 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
7 |
|
|
8 |
|
"""Handle resources loaded from files such as projections""" |
9 |
|
|
10 |
|
__version__ = "$Revision$" |
11 |
|
# $Source$ |
12 |
|
# $Id$ |
13 |
|
|
14 |
|
|
15 |
import os |
import os |
16 |
import os.path |
import os.path |
17 |
|
|
153 |
def write(self, file_or_filename): |
def write(self, file_or_filename): |
154 |
XMLWriter.write(self, file_or_filename) |
XMLWriter.write(self, file_or_filename) |
155 |
|
|
156 |
self.write_header("projfile", "projfile.dtd") |
self.write_header("projectionlist", "projfile.dtd") |
157 |
self.write_projfile(self.__pf) |
self.write_projfile(self.__pf) |
158 |
self.close() |
self.close() |
159 |
|
|