version 1.14, 2005/03/07 21:25:41
|
version 1.17, 2005/11/25 10:50:39
|
Line 20 class OSAS_storeOnlineServer(SimpleItem)
|
Line 20 class OSAS_storeOnlineServer(SimpleItem)
|
|
|
meta_type="OSAS_server" |
meta_type="OSAS_server" |
|
|
|
def __init__(self,id): |
|
"""initalize osas_server""" |
|
self.id = id |
|
|
def getImages(self,path): |
def getImages(self,path): |
"""hack""" |
"""hack""" |
imageEnding=['.gif','.jpg','.jpeg','.png','.tiff','.tif'] |
imageEnding=['.gif','.jpg','.jpeg','.png','.tiff','.tif'] |
Line 136 class OSAS_storeOnlineServer(SimpleItem)
|
Line 140 class OSAS_storeOnlineServer(SimpleItem)
|
compressed=encodeRPC(file(path+"/index.meta","r").read()) |
compressed=encodeRPC(file(path+"/index.meta","r").read()) |
ret["."]=('OSAS_dir',compressed) |
ret["."]=('OSAS_dir',compressed) |
for dir in os.listdir(path): |
for dir in os.listdir(path): |
|
zLOG.LOG("SERVER",zLOG.INFO,"get all index meta in %s"%dir) |
fileType=OSAS_helpers.checkOSASFileType(os.path.join(path,dir)) |
fileType=OSAS_helpers.checkOSASFileType(os.path.join(path,dir)) |
if os.path.exists(os.path.join(path,dir,"index.meta")): |
if os.path.exists(os.path.join(path,dir,"index.meta")): |
compressed=encodeRPC(file(os.path.join(path,dir,"index.meta"),"r").read()) |
compressed=encodeRPC(file(os.path.join(path,dir,"index.meta"),"r").read()) |