예제 #1
0
 def getOCCaptureAgentProperties(self):
     # FIXME refactor
     try:
         attach = self.getAttachment('org.opencastproject.capture.agent.properties')
         return dict(read_ini(attach.getURI()))
     except:
         return {}
예제 #2
0
 def getOCCaptureAgentProperties(self):
     # FIXME refactor
     try:
         attach = self.getAttachment('org.opencastproject.capture.agent.properties')
         return dict(read_ini(attach.getURI()))
     except:
         return {}
예제 #3
0
 def getOCCaptureAgentProperty(self, name):
     # FIXME refactor
     try:
         attach = self.getAttachment('org.opencastproject.capture.agent.properties')
         values = dict(read_ini(attach.getURI()))
         return values[name]
     except:
         return None
예제 #4
0
 def getOCCaptureAgentProperty(self, name):
     # FIXME refactor
     try:
         attach = self.getAttachment('org.opencastproject.capture.agent.properties')
         values = dict(read_ini(attach.getURI()))
         return values[name]
     except:
         return None