예제 #1
0
 def insertMarker(self, l1, root):
     if len(root) > 40:
         parts = root.split("/")
         if len(parts) > 2:
             name = "/.../" + parts[-3] + "/" + parts[-2]
         else:
             name = parts[-2]
     else:
         name = root
     serviceref = eServiceReferenceMarker(root)
     serviceref.setName("[ " + name + " ]")
     info = ServiceCenter.getInstance().info(serviceref)
     mi = MovieInfo(name, serviceref, info)
     l1.insert(0, (mi, ))
예제 #2
0
 def insertMarker(self, l1, root):
     if len(root) > 40:
         parts = root.split("/")
         if len(parts) > 2:
             name = "/.../" + parts[-3] + "/" + parts[-2]
         else: 
             name = parts[-2]
     else:
         name = root
     serviceref = eServiceReferenceMarker(root)
     serviceref.setName("[ " + name + " ]")
     info = ServiceCenter.getInstance().info(serviceref)
     mi = MovieInfo(name, serviceref, info)
     l1.insert(0, (mi,))