review on imports & svn keywords
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Jul 2009 08:40:01 +0000 (08:40 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 2 Jul 2009 08:40:01 +0000 (08:40 +0000)
48 files changed:
geni/aggregate.py
geni/alt_aggregate.py
geni/gimport.py
geni/methods/create_gid.py
geni/methods/create_slice.py
geni/methods/delete_slice.py
geni/methods/get_credential.py
geni/methods/get_resources.py
geni/methods/get_slices.py
geni/methods/get_ticket.py
geni/methods/list.py
geni/methods/register.py
geni/methods/remove.py
geni/methods/reset_slice.py
geni/methods/resolve.py
geni/methods/start_slice.py
geni/methods/stop_slice.py
geni/methods/update.py
geni/nuke.py
geni/plc.py
geni/registry.py
geni/slicemgr.py
geni/util/api.py
geni/util/auth.py
geni/util/cert.py
geni/util/config.py
geni/util/credential.py
geni/util/debug.py
geni/util/excep.py [deleted file]
geni/util/geniclient.py
geni/util/geniserver.py
geni/util/genitable.py
geni/util/geniticket.py
geni/util/gid.py
geni/util/hierarchy.py
geni/util/method.py
geni/util/misc.py
geni/util/nodes.py
geni/util/parameter.py
geni/util/policy.py
geni/util/record.py
geni/util/remoteshell.py
geni/util/rspec.py
geni/util/slices.py
geni/util/specdict.py
geni/util/storage.py
geni/util/trustedroot.py
geni/util/util.py

index 3fb3566..4f95ee8 100644 (file)
@@ -1,19 +1,24 @@
+### $Id$
+### $URL$
+
 import os
 import sys
 import datetime
 import time
 import xmlrpclib
-
 from types import StringTypes, ListType
+
 from geni.util.geniserver import GeniServer
 from geni.util.geniclient import GeniClient
+
 # GeniLight client support is optional
 try:
     from egeni.geniLight_client import *
 except ImportError:
     GeniClientLight = None
 from geni.util.storage import *
-from geni.util.excep import *
+from geni.util.faults import *
+
 
 class Aggregate(GeniServer):
 
index 304fc95..2a866f3 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 import os
 import sys
 import datetime
@@ -9,7 +12,7 @@ from geni.util.geniclient import *
 from geni.util.cert import Keypair, Certificate
 from geni.util.credential import Credential
 from geni.util.trustedroot import TrustedRootList
-from geni.util.excep import *
+from geni.util.faults import *
 from geni.util.misc import *
 from geni.util.config import Config
 from geni.util.rspec import Rspec
index 3c7db5e..12de56a 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/python
 #
+### $Id$
+### $URL$
 #
 ##
 # Import PLC records into the Geni database. It is indended that this tool be
index a99936c..08663c5 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index d4e9af9..8b8cffe 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
index 7aecc1e..f5b86cf 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
index 4ee2e2d..42e6b64 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index 1248431..53873a7 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index 40f68f6..1777c01 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
index e2b0e36..667b20a 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index bfa9e44..5034850 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index 1c095ad..12c4939 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index e16cdbe..c824da9 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index 4b84942..813eb5c 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
index dca385b..bb43f2b 100644 (file)
@@ -1,8 +1,7 @@
-
-
+### $Id$
+### $URL$
 
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index 5eec8f7..cb9be96 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
index fbb4c3f..ffe1dea 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.misc import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
index e9866e3..75cb100 100644 (file)
@@ -1,5 +1,7 @@
+### $Id$
+### $URL$
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.method import Method
 from geni.util.parameter import Parameter, Mixed
 from geni.util.auth import Auth
index 667ca8f..04a93ce 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 ##
 # Delete all the database records for Geni. This tool is used to clean out Geni
 # records during testing.
index 5b6bedf..5f00b97 100644 (file)
@@ -1,5 +1,8 @@
 #!/usr/bin/python
-##
+#
+### $Id$
+### $URL$
+#
 # GENI PLC Wrapper
 #
 # This wrapper implements the Geni Registry and Slice Interfaces on PLC.
index 7844cfe..e328650 100644 (file)
@@ -1,5 +1,9 @@
-##
+#
 # Registry is a GeniServer that implements the Registry interface
+#
+### $Id$
+### $URL$
+#
 
 import tempfile
 import os
@@ -14,13 +18,9 @@ try:
 except ImportError:
     GeniClientLight = None            
 from geni.util.genitable import GeniTable
-from geni.util.excep import *
+from geni.util.faults import *
 from geni.util.storage import *
 
-
-#
-
-
 ##
 # Registry is a GeniServer that serves registry and slice operations at PLC.
 
index 5ecf8e0..9ecd59e 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 import os
 import sys
 import datetime
@@ -5,7 +8,7 @@ import time
 
 from geni.util.geniserver import *
 from geni.util.geniclient import *
-from geni.util.excep import *
+from geni.util.faults import *
 from geni.util.misc import *
 
 class SliceMgr(GeniServer):
index d1c8f60..fc0615d 100644 (file)
@@ -1,6 +1,8 @@
 #
 # Geniwrapper XML-RPC and SOAP interfaces
 #
+### $Id$
+### $URL$
 #
 
 import sys
index 723a8b1..8edef7e 100644 (file)
@@ -1,11 +1,13 @@
 #
 # GeniAPI authentication 
 #
+### $Id$
+### $URL$
 #
 
 import time
+
 from geni.util.faults import *
-from geni.util.excep import *
 from geni.util.credential import Credential
 from geni.util.trustedroot import TrustedRootList
 from geni.util.hierarchy import Hierarchy
index 986a09b..06e4c2a 100644 (file)
 #
 # This module exports two classes: Keypair and Certificate.
 ##
+#
+### $Id$
+### $URL$
+#
 
 import os
 import tempfile
@@ -19,7 +23,7 @@ import M2Crypto
 from M2Crypto import X509
 from M2Crypto import EVP
 
-from excep import *
+from faults import *
 
 def convert_public_key(key):
     # find the keyconvert program
index f909594..68c38f0 100644 (file)
 # Note that Geniwrapper does not access any of the PLC databases directly via
 # a mysql connection; All PLC databases are accessed via PLCAPI.
 
-from os.path import join,dirname,basename,abspath
-from geni.util.debug import log
+### $Id$
+### $URL$
+
+import os.path
 import traceback
 
+from geni.util.debug import log
+
 # xxx the path-search part could use a cleanup; 
 # why would anyone want to store the config in /usr/share/geniwrapper at all ?
 # also, if users want to use this, it might help to store stuff in ~/.sfirc or something
 
 # this would denote "/usr/share/geniwrapper/geni"
-# geni =  join(dirname(dirname(dirname(abspath(__file__)))), "geni")
+# geni =  join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), "geni")
 
 class Config:
     """
@@ -36,17 +40,12 @@ class Config:
 
         loaded = False
         # path to config.py source - this would be '/usr/share/geniwrapper/geni/util'
-        path = dirname(abspath(__file__))
-        # self.path not used from the outside
-        #self.path = path
+        path = os.path.dirname(os.path.abspath(__file__))
         # parent directory of config.py source
-        self.basepath = dirname(path)
+        self.basepath = os.path.dirname(path)
         # path to actual config file
-        filename = basename(filepath)
-        # my guess is that alt_file and geni_file are identical
-        alt_file = join(path, 'util', filename)
-        # geni_file = join(geni, 'util', filename)
-        #files = [filepath, alt_file, geni_file]
+        filename = os.path.basename(filepath)
+        alt_file = os.path.join(path, 'util', filename)
         files = [filepath, alt_file]
 
         for config_file in files:
@@ -54,7 +53,7 @@ class Config:
                 execfile(config_file, self.__dict__)
                 loaded = True
                 self.config_file = config_file
-                self.config_path = dirname(config_file)
+                self.config_path = os.path.dirname(config_file)
                 break
             except:
                 pass
index 1d469ac..0fb8240 100644 (file)
@@ -5,11 +5,15 @@
 # certificate that stores a tuple of parameters.
 ##
 
-from cert import *
-from rights import *
-from gid import *
+### $Id$
+### $URL$
+
 import xmlrpclib
 
+from geni.util.cert import *
+from geni.util.rights import *
+from geni.util.gid import *
+
 ##
 # Credential is a tuple:
 #     (GIDCaller, GIDObject, LifeTime, Privileges, Delegate)
@@ -204,7 +208,9 @@ class Credential(Certificate):
             # make sure the rights given to the child are a subset of the
             # parents rights
             if not self.parent.get_privileges().is_superset(self.get_privileges()):
-                raise ChildRightsNotSubsetOfParent(self.get_subject() + " " + self.parent.get_privileges().save_to_string() + " " + self.get_privileges().save_to_string())
+                raise ChildRightsNotSubsetOfParent(self.get_subject() 
+                                                   + " " + self.parent.get_privileges().save_to_string()
+                                                   + " " + self.get_privileges().save_to_string())
 
         return
 
index b8dac85..e5f6f3f 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 import time
 import sys
 import syslog
diff --git a/geni/util/excep.py b/geni/util/excep.py
deleted file mode 100644 (file)
index 6d11de3..0000000
+++ /dev/null
@@ -1,233 +0,0 @@
-#
-# GeniAPI XML-RPC faults
-#
-#
-
-import xmlrpclib
-
-class GeniFault(xmlrpclib.Fault):
-    def __init__(self, faultCode, faultString, extra = None):
-        if extra:
-            faultString += ": " + extra
-        xmlrpclib.Fault.__init__(self, faultCode, faultString)
-
-class GeniInvalidAPIMethod(GeniFault):
-    def __init__(self, method, interface = None, extra = None):
-        faultString = "Invalid method " + method
-        if interface:
-            faultString += " for interface " + interface
-        GeniFault.__init__(self, 100, faultString, extra)
-
-class GeniInvalidArgumentCount(GeniFault):
-    def __init__(self, got, min, max = min, extra = None):
-        if min != max:
-            expected = "%d-%d" % (min, max)
-        else:
-            expected = "%d" % min
-        faultString = "Expected %s arguments, got %d" % \
-                      (expected, got)
-        GeniFault.__init__(self, 101, faultString, extra)
-
-class GeniInvalidArgument(GeniFault):
-    def __init__(self, extra = None, name = None):
-        if name is not None:
-            faultString = "Invalid %s value" % name
-        else:
-            faultString = "Invalid argument"
-        GeniFault.__init__(self, 102, faultString, extra)
-
-class GeniAuthenticationFailure(GeniFault):
-    def __init__(self, extra = None):
-        faultString = "Failed to authenticate call"
-        GeniFault.__init__(self, 103, faultString, extra)
-
-class GeniDBError(GeniFault):
-    def __init__(self, extra = None):
-        faultString = "Database error"
-        GeniFault.__init__(self, 106, faultString, extra)
-
-class GeniPermissionDenied(GeniFault):
-    def __init__(self, extra = None):
-        faultString = "Permission denied"
-        GeniFault.__init__(self, 108, faultString, extra)
-
-class GeniNotImplemented(GeniFault):
-    def __init__(self, extra = None):
-        faultString = "Not fully implemented"
-        GeniFault.__init__(self, 109, faultString, extra)
-
-class GeniAPIError(GeniFault):
-    def __init__(self, extra = None):
-        faultString = "Internal API error"
-        GeniFault.__init__(self, 111, faultString, extra)
-
-class MalformedHrnException(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Malformed HRN: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class TreeException(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Tree Exception: %(value)s, " % locals()
-        GeniFault.__init__(self, 111, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class NonexistingRecord(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Non exsiting record %(value)s, " % locals()
-        GeniFault.__init__(self, 111, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class ExistingRecord(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Existing record: %(value)s, " % locals()
-        GeniFault.__init__(self, 111, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-        
-class NonexistingCredType(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Non existing record: %(value)s, " % locals()
-        GeniFault.__init__(self, 111, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class NonexistingFile(GeniFault):
-    def __init__(self, value):
-        self.value = value
-        faultString = "Non existing file: %(value)s, " % locals()
-        GeniFault.__init__(self, 111, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class InvalidRPCParams(GeniFault):
-    def __init__(self, value):
-        self.value = value
-        faultString = "Invalid RPC Params: %(value)s, " % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-# SMBAKER exceptions follow
-
-class ConnectionKeyGIDMismatch(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Connection Key GID mismatch: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra) 
-    def __str__(self):
-        return repr(self.value)
-
-class MissingCallerGID(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Missing Caller GID: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra) 
-    def __str__(self):
-        return repr(self.value)
-
-class RecordNotFound(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Record not found: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    #def __str__(self):
-    #    return repr(self.value)
-
-class UnknownGeniType(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Unknown Geni Type: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class MissingAuthority(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Missing authority: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class PlanetLabRecordDoesNotExist(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "PlanetLab record does not exist : %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class PermissionError(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Permission error: %(value)s" % locals()
-        GeniFault.__init__(self, 108, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class InsufficientRights(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Insufficient rights: %(value)s" % locals()
-        GeniFault.__init__(self, 108, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class MissingDelegateBit(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Missing delegate bit: %(value)s" % locals()
-        GeniFault.__init__(self, 108, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class ChildRightsNotSubsetOfParent(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Child rights not subset of parent: %(value)s" % locals()
-        GeniFault.__init__(self, 103, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class CertMissingParent(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Cert missing parent: %(value)s" % locals()
-        GeniFault.__init__(self, 103, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class CertNotSignedByParent(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Cert not signed by parent: %(value)s" % locals()
-        GeniFault.__init__(self, 103, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class GidInvalidParentHrn(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "GID invalid parent hrn: %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
-class SliverDoesNotExist(GeniFault):
-    def __init__(self, value, extra = None):
-        self.value = value
-        faultString = "Sliver does not exist : %(value)s" % locals()
-        GeniFault.__init__(self, 102, faultString, extra)
-    def __str__(self):
-        return repr(self.value)
-
index 0022eab..fec2d50 100644 (file)
@@ -6,6 +6,9 @@
 # TODO: Investigate ways to combine this with existing PLC API?
 ##
 
+### $Id$
+### $URL$
+
 import xmlrpclib
 
 from gid import *
index b849286..9e01774 100644 (file)
@@ -6,21 +6,23 @@
 # TODO: investigate ways to combine this with existing PLC server?
 ##
 
-import SimpleXMLRPCServer
+### $Id$
+### $URL$
 
 import sys
 import traceback
 import threading
+import socket, os
+
 import SocketServer
 import BaseHTTPServer
 import SimpleHTTPServer
 import SimpleXMLRPCServer
-import socket, os
+
 from OpenSSL import SSL
 
 from geni.util.cert import *
 from geni.util.credential import *
-from geni.util.excep import *
 from geni.util.faults import *
 from geni.util.api import GeniAPI 
 from geni.util.debug import log
index e6dd015..13ce7d9 100644 (file)
@@ -4,6 +4,9 @@
 #
 # TODO: Use existing PLC database methods? or keep this separate?
 
+### $Id$
+### $URL$
+
 import report
 
 from pg import DB, ProgrammingError
index 1869e58..1ca0ab2 100644 (file)
@@ -3,6 +3,9 @@
 # implements GENI tickets
 #
 
+### $Id$
+### $URL$
+
 from cert import *
 from rights import *
 from gid import *
index c919605..cd7ba01 100644 (file)
@@ -3,6 +3,9 @@
 # descendant of the certificate class.
 ##
 
+### $Id$
+### $URL$
+
 from cert import *
 import uuid
 import xmlrpclib
index e86d0f3..dd2bd50 100644 (file)
 #      *.DBINFO - database info
 ##
 
+### $Id$
+### $URL$
+
 import os
 import report
-from cert import *
-from credential import *
-from gid import *
-from misc import *
-from config import *
-from geniticket import *
+
+from geni.util.cert import *
+from geni.util.credential import *
+from geni.util.gid import *
+from geni.util.misc import *
+from geni.util.config import *
+from geni.util.geniticket import *
 
 ##
 # The AuthInfo class contains the information for an authority. This information
index 3d9d3a1..c736386 100644 (file)
@@ -3,6 +3,9 @@
 #
 #
 
+### $Id$
+### $URL$
+
 import xmlrpclib
 from types import *
 import textwrap
@@ -12,7 +15,7 @@ import pprint
 
 from types import StringTypes
 
-from geni.util.excep import * 
+from geni.util.faults import * 
 from geni.util.parameter import Parameter, Mixed, python_type, xmlrpc_type
 from geni.util.auth import Auth
 from geni.util.debug import profile, log
index 5913419..1e6f6bb 100644 (file)
@@ -1,4 +1,7 @@
-from excep import *
+### $Id$
+### $URL$
+
+from faults import *
 
 def get_leaf(hrn):
     parts = hrn.split(".")
index 8b2b256..765b7d1 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 import os
 import time
 import datetime
@@ -6,7 +9,7 @@ import sys
 from geni.util.misc import *
 from geni.util.rspec import *
 from geni.util.specdict import * 
-from geni.util.excep import *
+from geni.util.faults import *
 from geni.util.storage import *
 from geni.util.debug import log
 from geni.util.rspec import *
index 2a52ce4..37b25fc 100644 (file)
@@ -4,9 +4,12 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: Parameter.py 5574 2007-10-25 20:33:17Z thierry $
+# $Id$
 #
 
+### $Id$
+### $URL$
+
 from types import *
 from geni.util.faults import *
 
index 3f5c837..62ce145 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 import os
 
 from geni.util.storage import *
index 55b9f2c..a91e6be 100644 (file)
@@ -4,9 +4,14 @@
 # TODO: Use existing PLC database methods? or keep this separate?
 ##
 
-import report
+### $Id$
+### $URL$
+
 from types import StringTypes
-from gid import *
+
+import geni.util.report
+
+from geni.util.gid import *
 from geni.util.rspec import *
 from geni.util.parameter import *
 
index db15083..6d5453d 100644 (file)
@@ -6,6 +6,9 @@
 # PLC.Shell.Shell(). It's meant to be a drop in replacement for running
 # geniwrapper on a different machine than PLC.
 
+### $Id$
+### $URL$
+
 import xmlrpclib
 
 class RemoteShell:
index b4c339b..a184dc0 100644 (file)
@@ -1,3 +1,6 @@
+### $Id$
+### $URL$
+
 import sys
 import pprint
 import os
index 596e0bb..1c9669b 100644 (file)
@@ -1,9 +1,13 @@
+### $Id$
+### $URL$
+
 import datetime
 import time
+
 from geni.util.misc import *
 from geni.util.rspec import *
 from geni.util.specdict import *
-from geni.util.excep import *
+from geni.util.faults import *
 from geni.util.storage import *
 from geni.util.policy import Policy
 from geni.util.debug import log
index 6484496..5960887 100644 (file)
 # SpecDict.plc_fields defines a one to one mapping of plc attribute to rspec 
 # attribute
 
-from types import StringTypes, ListType
+### $Id$
+### $URL$
 
+from types import StringTypes, ListType
 
 class SpecDict(dict):
     """
index bd52351..9eef1e9 100644 (file)
@@ -1,4 +1,8 @@
+### $Id$
+### $URL$
+
 import os
+
 from geni.util.rspec import RecordSpec
 
 class SimpleStorage(dict):
index 7f9f738..b41753d 100644 (file)
@@ -1,6 +1,9 @@
+### $Id$
+### $URL$
+
 import os
 
-from gid import *
+from geni.util.gid import *
 from geni.util.config import Config
 
 class TrustedRootList():
index f18fdac..f6f1f22 100644 (file)
@@ -1,4 +1,8 @@
-from excep import *
+### $Id$
+### $URL$
+
+from faults import *
+
 SR_SUFFIX = '_srr'
 CR_SUFFIX = '_crr'