示例#1
0
文件: project.py 项目: palango/pitivi
 def setUri(self, uri):
     # FIXME support not local project
     if uri and not Gst.uri_has_protocol(uri, "file"):
         # Note that this does *not* give the same result as quote_uri()
         self._uri = Gst.uri_construct("file", uri)
     else:
         self._uri = uri
示例#2
0
 def setUp(self):
     self.tmpfile = tempfile.NamedTemporaryFile()
     self.uri = unquote(Gst.uri_construct("file", self.tmpfile.name))
     self.hash = hash_file(self.tmpfile.name)
示例#3
0
 def setUp(self):
     self.tmpfile = tempfile.NamedTemporaryFile()
     self.uri = unquote(Gst.uri_construct("file", self.tmpfile.name))
     self.hash = hash_file(self.tmpfile.name)