make it easier to add entries to the replica catalog by inferring site, lfn, pfn from file Path or URL

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Suggested by Rajiv, the general idea is this:

      1. create a file objects
        a = File(Path("/dir/f.txt")
        b = File("http://hostname/f2.txt")

      standard file paths assume site to be "local", for any other URL type, site does not matter

      rc = ReplicaCatalog()
      rc.add(a,b)

      1. this would be the same as doing
        rc.add_replica("local", "f.txt", "/dir/f.txt")
        rc.add_replica("anysite", "f2.txt", "http://hostname/f2.txt")
      1. but then convey the same amount of information with much less text

            Assignee:
            Rajiv Mayani
            Reporter:
            Ryan Tanaka [X] (Inactive)
            Archiver:
            Rajiv Mayani

              Created:
              Updated:
              Resolved:
              Archived: