Skip to content

Instantly share code, notes, and snippets.

@sbesson
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save sbesson/b3997df34a3c3e314dc9 to your computer and use it in GitHub Desktop.

Select an option

Save sbesson/b3997df34a3c3e314dc9 to your computer and use it in GitHub Desktop.
List all usages of self.ctx.err() across the CLI plugins
admin.py: self.ctx.err("No descriptor given. Using %s" SB: OK no login
admin.py: self.ctx.err('Calling "stop" on remaining components') SB: OK no login
admin.py: self.ctx.err("Server not running") SB: OK no login
admin.py: self.ctx.err("not found") SB: OK no login
admin.py: self.ctx.err("error:%s" % e) SB: OK no login
admin.py: self.ctx.err(io2[1].strip()) SB: OK no login
admin.py: self.ctx.err("UNKNOWN!") SB: OK no login
admin.py: self.ctx.err(io2[1].strip()) SB: OK no login
admin.py: self.ctx.err("Not found") SB: OK no login
admin.py: self.ctx.err("Not found") SB: OK no login
admin.py: self.ctx.err("UNKNOWN!") SB: OK no login
admin.py: self.ctx.err("Error while parsing logs") SB: OK no login
admin.py: self.ctx.err("Creating %s" % cfg_xml) SB: OK no login
admin.py: self.ctx.err("%s read-only" % cfg_xml) SB: OK no login
basics.py: self.ctx.err("Unknown help topic: %s" % args.topic) SB: OK no login
cecog.py: self.ctx.err("Putting images in Project: %s Dataset: %s" SB: OK
cecog.py: self.ctx.err("Processing images in %s" % subDir) SB: OK
cecog.py: self.ctx.err("Processing images in %s" % path) SB: OK
db.py: self.ctx.err("Using %s for version" % db_vers) SB: OK no login
db.py: self.ctx.err("Using %s for patch" % db_patch) SB: OK no login
db.py: self.ctx.err("Using password from commandline") SB: OK no login
export.py: self.ctx.err("%s: %s" % (se.__class__.__name__, se.message)) SB: OK (silencing server error)
export.py: self.ctx.err("Failed to close handle: %s" % e) SB: OK
ldap.py: self.ctx.err("Bad experimenter: %s" % id) SB: OK
ldap.py: self.ctx.err("Connecting to %s..." % url) SB: OK
ldap.py: self.ctx.err("Failed to unwrap omeName: %s" % SB: OK
ldap.py: self.ctx.err("Found different DN for %s: %s" SB: OK
obj.py: self.ctx.err("Ignoring %s" % args.file) SB: OK
prefs.py: self.ctx.err("%s not found; using %s" % (grid_dir, usr_xml)) SB: OK no login
prefs.py: self.ctx.err("Unknown configuration: %s" % args.NAME) SB: OK no login
prefs.py: self.ctx.err(""" "=" in key name. Did you mean "...set %s %s"?""" SB: OK no login
script.py: self.ctx.err("Failed to clean processors: %s" % e) SB: OK
script.py: self.ctx.err("Failed to find script: %s (%s)" % (script_id, e)) SB: OK
script.py: self.ctx.err("No text for script: %s" % script_id) SB: OK
script.py: self.ctx.err("Does this file appear in the script list?") SB: OK
script.py: self.ctx.err("If not, try 'replace'") SB: OK
script.py: self.ctx.err("Failed to find script: %s (%s)" % (script_id, e)) SB: OK
script.py: self.ctx.err("Bad parameters:\n%s" % ve) SB: OK
script.py: self.ctx.err("Failed to display %s" % m) SB: OK
script.py: self.ctx.err("Uploaded %sscript" SB: OK
script.py: self.ctx.err("Failed to delete script: %s (%s)" % (ofile, e)) SB: OK
sessions.py: self.ctx.err(LONGHELP % {"prog": args.prog}) SB: OK no login
sessions.py: self.ctx.err("Active client found") SB: OK
sessions.py: self.ctx.err("Overriding name since session set") SB: OK
sessions.py: self.ctx.err("Ignoring password since key set") SB: OK
sessions.py: self.ctx.err("Failed to remove session: %s" % e) SB: OK
sessions.py: self.ctx.err(pde.reason) SB: OK ? (password exception)
sessions.py: self.ctx.err(msg) SB: OK (Joined session id...)
sessions.py: self.ctx.err("Group '%s' (id=%s) is already active" SB: OK
tag.py: self.ctx.err("Tag/tagset name cannot be 'None' or empty.") SB: OK
tag.py: self.ctx.err("Missing tag parameter") SB: OK
tag.py: self.ctx.err(e.message) SB: OK (server error)
tag.py: self.ctx.err("Check that tag '%s' exists." % t) SB: OK
tag.py: self.ctx.err("Missing object or object not of form" SB: OK
tag.py: self.ctx.err("Missing tag_id") SB: OK
tag.py: self.ctx.err( SB: OK
"Object query returned nothing. Check your object type.")
user.py: self.ctx.err("Missing email addresses:") SB: OK ? (unless we want in output)
user.py: self.ctx.err(self.format_name(s)) SB: OK (same as previous)
web.py: self.ctx.err("Removed invalid %s: '%s'" SB: OK no login
web.py: self.ctx.err("Removed stale %s" % pid_path) SB: OK no login
web.py: self.ctx.err("DEVELOPMENT: You will have to check status by hand!") SB: OK no login
web.py: self.ctx.err( SB: OK no login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment