Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/AsyncStageout-HEAD/src/python/AsyncStageOut/TransferWorker.py   AsyncStageout(Download)
from AsyncStageOut import getHashLfn
from AsyncStageOut import getFTServer
from AsyncStageOut import getDNFromUserName
#import json
#import socket
        self.logger.debug("Trying to get the DN of %s" % self.user)
        try:
            self.userDN = getDNFromUserName(self.user, self.logger)
        except Exception, ex:
            msg =  "Error retrieving the user DN"

src/a/s/AsyncStageout-HEAD/src/python/AsyncStageOut/PublisherWorker.py   AsyncStageout(Download)
import pycurl
import cStringIO
from AsyncStageOut import getDNFromUserName
 
def getProxy(userdn, group, role, defaultDelegation, logger):
        self.logger.debug("Trying to get DN")
        try:
            self.userDN = getDNFromUserName(self.user, self.logger)
        except Exception, ex:
            msg =  "Error retrieving the user DN"