carlsmith/notebookcloud — pull request #7 by welch (2013-03-26 01:38:03+00:00)
Title: pull request for issue#4, add ec2_keys

This perhaps should be two pulls, but maybe you'll like
it all enough together. In addition to adding optional ec2 key
names to the Account object, brought func.y up to date
with the current Boto 2.8.0, which has caused some small
grief with GAE because of a couple of parameter defaults changing
(not sure which version you are running in your deployment).
I've tested this locally and in my own app instance, with a
mix of legacy accounts, and new accounts with or without
an ec2 key set.

Commit notes below:

add ec2_key attribute to account object,
and propagate this to ec2 instances at creation
so ssh/scp are possible.

modify funcs.py to operate with latest Boto version, which
changed its is_secure and validate_certificates defaults to True
and cause failures within GAE.

modify get_instance_list to use instance accessors instad of
\__dict__, because inst.state has become a @property in the
current boto and no longer appears in \__dict__.

split login page into ask_login and create_account
pages so we can include a sign-out button in the workflow.