version 1.13, 2005/03/07 19:33:42
|
version 1.15, 2005/03/17 19:26:52
|
Line 8 import base64
|
Line 8 import base64
|
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Products.PageTemplates.PageTemplateFile import PageTemplateFile |
from Globals import InitializeClass,package_home |
from Globals import InitializeClass,package_home |
from OFS.SimpleItem import SimpleItem |
from OFS.SimpleItem import SimpleItem |
|
import zLOG |
|
|
def encodeRPC(string): |
def encodeRPC(string): |
return base64.encodestring(bz2.compress(string)) |
return base64.encodestring(bz2.compress(string)) |
Line 19 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 153 class OSAS_storeOnlineServer(SimpleItem)
|
Line 158 class OSAS_storeOnlineServer(SimpleItem)
|
except: |
except: |
return False |
return False |
|
|
|
def generateMovieThumb(self,input,output): |
|
"""generate Movie""" |
|
zLOG.LOG("SERVER",zLOG.INFO,"/usr/local/bin/thumbbite.pl %s %s"%(input,output)) |
|
ret=os.popen("/usr/local/bin/thumbbite.pl %s %s"%(input,output)) |
|
zLOG.LOG("SERVER",zLOG.INFO,ret) |
|
return "ok" |
|
|
def manage_addOSAS_storeOnlineServerForm(self): |
def manage_addOSAS_storeOnlineServerForm(self): |
"""interface for adding the OSAS_storeOnline""" |
"""interface for adding the OSAS_storeOnline""" |