Did I find the right examples for you? yes no

All Samples(1785)  |  Call(1751)  |  Derive(34)  |  Import(0)
Name not found globally.

src/m/m/mmc-HEAD/mds/agent/contrib/userquota/networkquota_example/applyTCrules.py   mmc(Download)
 
    if not user:
        raise NameError("username: %s not in ldap" % username)
    raise NameError("Getbytes function failed to find matching networkquota attribute value %s record for user: %s" % (network, username))
 
    res = subprocess.call(tcapplycmd % (uid, int(uid)), shell=True)
    if res != 0:
        raise NameError("problem running apply cmd: %s" % tcapplycmd)
    return True        
 
                res = subprocess.call(tcremovecmd % (uid, int(uid)), shell=True)
                if res != 0:
                    raise NameError("problem running remove cmd: %s" % tcremovecmd)
                return True
    return False 
tcrules = tcproc.communicate()[0].split("\n")
if tcproc.returncode != 0:
    raise NameError("problem running cmd: %s" % tcfilterlist)
 
# connect to Mysql

src/d/j/django-hotsauce-0.5.0/examples/lib/satchmo_ext/newsletter/mailman.py   Django-hotsauce(Download)
        if listname == "":
            log.warn("NEWSLETTER_NAME not set in store settings")
            raise NameError('No NEWSLETTER_NAME in settings')
 
        return MailList.MailList(listname, lock=0), listname
 
    except Errors.MMUnknownListError:
        print >> sys.stderr, "Can't find the MailMan newsletter: %s" % listname
        raise NameError('No such newsletter, "%s"' % listname)

src/b/a/baepython_sdk-HEAD/examples/weibotest/0/mako/runtime.py   baepython_sdk(Download)
    def __str__(self):
        raise NameError("Undefined")
    def __nonzero__(self):
        return False
 

src/s/t/statsmodels-0.5.0/statsmodels/sandbox/examples/example_nbin.py   statsmodels(Download)
        # Check user input
        if ll_type not in ['nb2', 'nb1', 'nbp', 'nbt', 'geom']:
            raise NameError('Valid ll_type are: nb2, nb1, nbp,  nbt, geom')
        self.ll_type = ll_type
        # Starting values (assumes first column of exog is constant)

src/r/a/raspberry_pwn-HEAD/src/pexpect-2.3/examples/rippy.py   raspberry_pwn(Download)
            func = globals()[func]
        else:
            raise NameError("name '%s' is not defined" % func)
    if hasattr(func,'im_func'): # Handle case when func is a class method.
        func = func.im_func

src/s/t/statsmodels-HEAD/statsmodels/sandbox/examples/example_nbin.py   statsmodels(Download)
        # Check user input
        if ll_type not in ['nb2', 'nb1', 'nbp', 'nbt', 'geom']:
            raise NameError('Valid ll_type are: nb2, nb1, nbp,  nbt, geom')
        self.ll_type = ll_type
        # Starting values (assumes first column of exog is constant)

src/p/w/PwnBerryPi-HEAD/src/pexpect-2.3/examples/rippy.py   PwnBerryPi(Download)
            func = globals()[func]
        else:
            raise NameError("name '%s' is not defined" % func)
    if hasattr(func,'im_func'): # Handle case when func is a class method.
        func = func.im_func

src/x/m/xmpp-tdg-examples-HEAD/code/3rdParty/sleekxmpp/basexmpp.py   xmpp-tdg-examples(Download)
				self.registerPlugin(plugin, self.plugin_config.get(plugin, {}))
			else:
				raise NameError("No plugin by the name of %s listed in plugins.__all__." % plugin)
		# run post_init() for cross-plugin interaction
		for plugin in self.plugin:

src/d/o/dota2py-0.1.3/examples/latest_match_twisted.py   dota2py(Download)
key = os.environ.get("DOTA2_API_KEY")
if not key:
    raise NameError("Please set the DOTA2_API_KEY environment variable")
api.set_api_key(key)
 

src/d/o/dota2py-0.1.3/examples/latest_match.py   dota2py(Download)
key = os.environ.get("DOTA2_API_KEY")
if not key:
    raise NameError("Please set the DOTA2_API_KEY environment variable")
api.set_api_key(key)
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next