Ejemplo n.º 1
0
import string
import pycurl
import shutil
import cherrypy

from threading import Timer
from threading import BoundedSemaphore

#import win32com.client, pythoncom

from toolkit import osconfig
from toolkit import filehelper
from toolkit.dThread import dThread

selfDestructTime = 360.0 # in seconds
mediaArchive = osconfig.mediaDirectory()
oopath = osconfig.ooPath()
slidedeckArchive = osconfig.slidedeckArchive()
mailboxURL = osconfig.mailboxURL()
if sys.platform.startswith('win'):
    import win32process
    import win32file
    import win32com.client, pythoncom
else:
    sys.path.append(oopath)

import uno
import unohelper
from com.sun.star.beans import PropertyValue

class scopedLock(object):
Ejemplo n.º 2
0
import string
import pycurl
import shutil
import cherrypy

from threading import Timer
from threading import BoundedSemaphore

#import win32com.client, pythoncom

from toolkit import osconfig
from toolkit import filehelper
from toolkit.dThread import dThread

selfDestructTime = 360.0  # in seconds
mediaArchive = osconfig.mediaDirectory()
oopath = osconfig.ooPath()
slidedeckArchive = osconfig.slidedeckArchive()
mailboxURL = osconfig.mailboxURL()
if sys.platform.startswith('win'):
    import win32process
    import win32file
    import win32com.client, pythoncom
else:
    sys.path.append(oopath)

import uno
import unohelper
from com.sun.star.beans import PropertyValue

Ejemplo n.º 3
0
oopath = osconfig.ooPath()

if sys.platform.startswith('win'):
    import win32process
    import win32file
    import win32com.client, pythoncom
else:
    sys.path.append(oopath)

import uno
import unohelper
import popen2

maxPDFAccess = osconfig.maxPDFAccess()
mediaDirectory = osconfig.mediaDirectory()

class CSlidedeck(object):
    processMap = None
    officeLock = None
    pdfLock = None
    collator = None
    curlHandle = None
    demHelper = None
    resolveUrl = None
    isOOHealthy = None

    def __init__(self):
        self.processMap = {}
        self.officeLock = threading.BoundedSemaphore(1)
        self.pdfLock = threading.BoundedSemaphore(maxPDFAccess)