Skip to content

Instantly share code, notes, and snippets.

@steadicat
Created August 27, 2010 19:52
Show Gist options
  • Save steadicat/554056 to your computer and use it in GitHub Desktop.
Save steadicat/554056 to your computer and use it in GitHub Desktop.
server = Server('http://user:[email protected])
db = server.get_or_create(dbname)
doc = db[docid]
db.put_attachment(doc, file(filename))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment