version 1.195, 2004/12/02 12:01:08
|
version 1.197, 2004/12/02 17:04:15
|
Line 1297 class ECHO_resource(Folder,Persistent,EC
|
Line 1297 class ECHO_resource(Folder,Persistent,EC
|
pdf=self.checkRDF(self.link) |
pdf=self.checkRDF(self.link) |
if pdf: |
if pdf: |
fh=file(pdf,'r').read() |
fh=file(pdf,'r').read() |
self.REQUEST.RESPONSE.setHeader('Content-Type','x-Application/pdf') |
self.REQUEST.RESPONSE.setHeader('Content-Type','application/pdf') |
self.REQUEST.RESPONSE.write(fh) |
self.REQUEST.RESPONSE.write(fh) |
self.REQUEST.RESPONSE.close() |
self.REQUEST.RESPONSE.close() |
return |
return |
Line 2277 class ECHO_collection(Folder, Persistent
|
Line 2277 class ECHO_collection(Folder, Persistent
|
area = MapArea(newid, coord, type=type) |
area = MapArea(newid, coord, type=type) |
print " adding: ", newid |
print " adding: ", newid |
msg += " adding: "+newid+"\n" |
msg += " adding: "+newid+"\n" |
col.addMapArea(area) print "added" |
col.addMapArea(area) |
|
|
msg += "\nDone!" |
msg += "\nDone!" |
return msg |
return msg |
|
|