Evan Broder [Sun, 20 Dec 2009 21:03:12 +0000 (16:03 -0500)]
Fix the unauthenticated web interface.
Separate the separate components of the web app by the authenticated
webapp class at /auth and the unauthenticated app at /unauth.
These are purely internal URLs, but used to allow a single CherryPy
instance to serve both the authenticated and unauthenticated website.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2728
Evan Broder [Sun, 20 Dec 2009 03:41:33 +0000 (22:41 -0500)]
Punt some RewriteRules for deprecated URLs we no longer use.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2727
Greg Price [Sun, 20 Dec 2009 03:30:08 +0000 (22:30 -0500)]
command: recognize new "internal" name for delete
This fixes the bug where delete leads back to the now-broken info page.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2726
Greg Price [Sun, 20 Dec 2009 03:00:13 +0000 (22:00 -0500)]
Fill in changelog with the many things that changed.
I might still be missing something.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2725
Greg Price [Sun, 20 Dec 2009 03:00:10 +0000 (22:00 -0500)]
view.py: fix long lines
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2724
Greg Price [Sun, 20 Dec 2009 03:00:08 +0000 (22:00 -0500)]
view.py: double blank lines at toplevel
This is a style convention that makes it easier to see where one
definition ends and the next begins. It's particularly necessary
in this file, because it can separate the CherryPy glue associated
with one function from the unrelated function below it.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2723
Greg Price [Sun, 20 Dec 2009 03:00:06 +0000 (22:00 -0500)]
view.py: clean up remote_user_login
Remove dead code, and make the docstring clear about what the function is
actually doing.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2722
Greg Price [Sun, 20 Dec 2009 03:00:05 +0000 (22:00 -0500)]
view.py: fix a docstring
The first line of a docstring should be self-contained, followed by a
blank line if there is any more text. Just like a commit message.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2721
Greg Price [Sun, 20 Dec 2009 03:00:02 +0000 (22:00 -0500)]
main.py: small Python style improvement
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2720
Greg Price [Sun, 20 Dec 2009 02:59:59 +0000 (21:59 -0500)]
list.mako: map/lambda make Guido sad, use a comprehension
In Python jargon this is not actually a "comprehension", which is
reserved for list comprehensions, but a "generator expression".
Just in case someone cares.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2719
Greg Price [Sun, 20 Dec 2009 02:59:57 +0000 (21:59 -0500)]
info.mako: cut no-longer-used hidden field
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2718
Evan Broder [Tue, 8 Dec 2009 03:05:27 +0000 (22:05 -0500)]
Update the cherrypy branch to use authz.afs.cells instead of just
authz.cells, to stay in sync with r2590.
(Again, this isn't really a cherry-pick, but whatever)
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2717
Evan Broder [Mon, 23 Nov 2009 02:02:31 +0000 (21:02 -0500)]
"Cherry-pick" r2557 (Re-arrange the authz configuration.) to the
cherrypy branch.
(It's somewhat tenuous to claim this is a cherry-pick, given that all
of the changes would have conflicted had I actually tried to
cherry-pick the change. Oh well)
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2716
Quentin Smith [Thu, 29 Oct 2009 07:27:33 +0000 (03:27 -0400)]
Document MachineView.__getattr__
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2715
Quentin Smith [Thu, 29 Oct 2009 07:23:48 +0000 (03:23 -0400)]
Make changelog entries describe package changes, not packaging changes
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2714
Quentin Smith [Thu, 29 Oct 2009 07:18:05 +0000 (03:18 -0400)]
Clarify the operation of MakoHandler
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2713
Quentin Smith [Thu, 29 Oct 2009 06:12:01 +0000 (02:12 -0400)]
Revert "Replace weird username logic with the old logic."
This reverts r2519. The "weird username logic" is in fact correctly
implementing the documented CherryPy authentication API.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2712
Greg Price [Thu, 29 Oct 2009 06:03:29 +0000 (02:03 -0400)]
fix a syntax error from my r2526
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2711
Greg Price [Thu, 29 Oct 2009 05:36:44 +0000 (01:36 -0400)]
Restore explanatory comment on random.seed().
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2710
Greg Price [Thu, 29 Oct 2009 05:36:43 +0000 (01:36 -0400)]
style tweaks
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2709
Greg Price [Thu, 29 Oct 2009 05:36:43 +0000 (01:36 -0400)]
tighten a bit of code
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2708
Greg Price [Thu, 29 Oct 2009 05:36:42 +0000 (01:36 -0400)]
main.py: FieldStorage is history, so revert to sugared getitem.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2707
Greg Price [Thu, 29 Oct 2009 05:36:41 +0000 (01:36 -0400)]
fix super-long lines
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2706
Greg Price [Thu, 29 Oct 2009 05:36:40 +0000 (01:36 -0400)]
tighten a bit of code
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2705
Greg Price [Thu, 29 Oct 2009 05:36:39 +0000 (01:36 -0400)]
cut a leftover comment, fix a bit of spacing
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2704
Greg Price [Thu, 29 Oct 2009 05:36:38 +0000 (01:36 -0400)]
cut uninformative comment and blank line
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2703
Greg Price [Thu, 29 Oct 2009 05:36:37 +0000 (01:36 -0400)]
main.fcgi: usage, fix a bit of spacing
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2702
Greg Price [Thu, 29 Oct 2009 05:36:35 +0000 (01:36 -0400)]
small style fix
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2701
Greg Price [Thu, 29 Oct 2009 05:36:34 +0000 (01:36 -0400)]
Replace weird username logic with the old logic.
remote_user_login() was just like the old getUser(), but different
in puzzling ways.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2700
Greg Price [Thu, 29 Oct 2009 05:36:33 +0000 (01:36 -0400)]
style nit
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2699
Paul Weaver [Thu, 29 Oct 2009 03:01:43 +0000 (23:01 -0400)]
Removed useless method
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2698
Quentin Smith [Tue, 20 Oct 2009 04:53:01 +0000 (00:53 -0400)]
Remove unused external_remote_user_login function
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2697
Evan Broder [Tue, 29 Sep 2009 01:45:16 +0000 (21:45 -0400)]
Punt the "moocow" VNC password - it's dumb, and we already have our
own authentication mechanism (that uses real authentication).
This commit cherry-picks r2487.
Except for the part where the entire commit conflicted.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2696
Quentin Smith [Tue, 29 Sep 2009 19:52:40 +0000 (15:52 -0400)]
Remove unused template code
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2695
Quentin Smith [Tue, 29 Sep 2009 19:51:55 +0000 (15:51 -0400)]
Use contact address from config on error page
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2694
Quentin Smith [Mon, 28 Sep 2009 07:04:33 +0000 (03:04 -0400)]
Full error handling
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2693
Quentin Smith [Mon, 28 Sep 2009 07:04:32 +0000 (03:04 -0400)]
Unauthenticated front page
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2692
Quentin Smith [Mon, 28 Sep 2009 04:58:53 +0000 (00:58 -0400)]
Make modify form work
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2691
Quentin Smith [Sun, 27 Sep 2009 23:55:09 +0000 (19:55 -0400)]
Implement administrator mode
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2690
Quentin Smith [Tue, 11 Aug 2009 03:40:27 +0000 (23:40 -0400)]
Update the errortest handler for cherrypy
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2689
Evan Broder [Mon, 10 Aug 2009 22:55:58 +0000 (18:55 -0400)]
Only aklog to a cell if encryption is actually needed.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2688
Quentin Smith [Mon, 10 Aug 2009 04:41:46 +0000 (00:41 -0400)]
Show installer status on the front page, and unbreak the autoinstall fields in validation logic
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2687
Quentin Smith [Mon, 10 Aug 2009 04:21:52 +0000 (00:21 -0400)]
Clarify that staff can receive Windows license keys from MIT
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2686
Quentin Smith [Mon, 10 Aug 2009 03:38:06 +0000 (23:38 -0400)]
Write handler for create form, and consolidate code to require POST into a CherryPy tool
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2685
Quentin Smith [Mon, 10 Aug 2009 01:07:28 +0000 (21:07 -0400)]
Make commands work from list and info pages
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2684
Quentin Smith [Mon, 10 Aug 2009 00:13:20 +0000 (20:13 -0400)]
Use RESTful URLs for commands
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2683
Evan Broder [Mon, 10 Aug 2009 00:08:33 +0000 (20:08 -0400)]
Translate newlines to break tags in the machine description.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2682
Quentin Smith [Sun, 9 Aug 2009 23:16:26 +0000 (19:16 -0400)]
Mount app on / regardless of whether it's fastcgi
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2681
Quentin Smith [Sun, 9 Aug 2009 23:16:25 +0000 (19:16 -0400)]
Port vnc page to Mako and CherryPy
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2680
Quentin Smith [Sun, 9 Aug 2009 22:45:36 +0000 (18:45 -0400)]
Remove calls to helppopup from outside templates
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2679
Quentin Smith [Sun, 9 Aug 2009 22:45:35 +0000 (18:45 -0400)]
Upgrade info page to Mako, and use REST-style URLs.
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2678
Quentin Smith [Sun, 9 Aug 2009 22:45:35 +0000 (18:45 -0400)]
Get username from cherrypy request object
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2677
Quentin Smith [Sun, 9 Aug 2009 22:45:34 +0000 (18:45 -0400)]
Implement help handler
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2676
Quentin Smith [Sun, 9 Aug 2009 22:45:33 +0000 (18:45 -0400)]
Show the cherrypy request object on the helloworld page
Add kwargs to helloworld for debugging purposes
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2675
Quentin Smith [Sun, 9 Aug 2009 22:45:30 +0000 (18:45 -0400)]
Use global imports for Mako templates
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2674
Quentin Smith [Sun, 9 Aug 2009 22:45:30 +0000 (18:45 -0400)]
Allow global imports to be specified for Mako templates
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2673
Quentin Smith [Sun, 9 Aug 2009 22:45:28 +0000 (18:45 -0400)]
Move the help popup code into the templates where it belongs
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2672
Quentin Smith [Sun, 9 Aug 2009 22:45:27 +0000 (18:45 -0400)]
Provide basic authentication on the development server
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2671
Quentin Smith [Sun, 9 Aug 2009 22:45:27 +0000 (18:45 -0400)]
Get login information from Apache, if available
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2670
Quentin Smith [Sun, 9 Aug 2009 22:45:26 +0000 (18:45 -0400)]
Get username and state from CherryPy request
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2669
Quentin Smith [Sun, 9 Aug 2009 22:45:25 +0000 (18:45 -0400)]
Port list to Mako
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2668
Quentin Smith [Sun, 9 Aug 2009 22:45:24 +0000 (18:45 -0400)]
Port functions to Mako
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2667
Quentin Smith [Sun, 9 Aug 2009 22:45:24 +0000 (18:45 -0400)]
skeleton and helloworld Mako templates
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2666
Quentin Smith [Sun, 9 Aug 2009 22:45:23 +0000 (18:45 -0400)]
Add list method, require authentication for it, and add a hello world via mako
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2665
Quentin Smith [Sun, 9 Aug 2009 22:45:22 +0000 (18:45 -0400)]
Connect to the database on init
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2664
Quentin Smith [Sun, 9 Aug 2009 22:45:21 +0000 (18:45 -0400)]
Stub InvirtWeb implementation
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2663
Quentin Smith [Sun, 9 Aug 2009 22:45:21 +0000 (18:45 -0400)]
CherryPy config files
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2662
Quentin Smith [Sun, 9 Aug 2009 22:45:20 +0000 (18:45 -0400)]
Mount static resources so they can be accessed via CherryPy
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2661
Quentin Smith [Sun, 9 Aug 2009 22:45:19 +0000 (18:45 -0400)]
Basic CherryPy FastCGI handler
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2660
Quentin Smith [Sun, 9 Aug 2009 22:45:18 +0000 (18:45 -0400)]
Mako and SimpleJSON CherryPy hooks
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2659
Quentin Smith [Sun, 9 Aug 2009 22:45:18 +0000 (18:45 -0400)]
Depend on python-cherrypy3 and python-mako in preparation of migrating the web site
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2658
Evan Broder [Wed, 16 Dec 2009 18:01:46 +0000 (13:01 -0500)]
Bump the version on the invirt-web package since we changed
invirt-cache-acls.
svn path=/trunk/packages/invirt-web/; revision=2611
Evan Broder [Tue, 8 Dec 2009 02:33:43 +0000 (21:33 -0500)]
Store AFS cell configuration at authz.afs.cells instead of just
authz.cells, to be more clear about purpose.
svn path=/trunk/packages/invirt-web/; revision=2590
Evan Broder [Mon, 23 Nov 2009 01:54:11 +0000 (20:54 -0500)]
Re-arrange the authz configuration.
In particular, even if we allow for mixing of multiple authz
mechanisms at some point, you won't have multiple instances of the
locker authz type, so the "type" shouldn't be a property of each of
the cells we specify how to authenticate against.
svn path=/trunk/packages/invirt-web/; revision=2557
Evan Broder [Tue, 29 Sep 2009 03:28:28 +0000 (23:28 -0400)]
Revert punting the "moocow" password in invirt-web and
invirt-vnc-client, since we can't change the VNC passwod of running
VMs.
This reverts parts of commit r2487
svn path=/trunk/packages/invirt-web/; revision=2492
Evan Broder [Tue, 29 Sep 2009 01:26:38 +0000 (21:26 -0400)]
Punt the "moocow" VNC password - it's dumb, and we already have our
own authentication mechanism (that uses real authentication).
svn path=/trunk/packages/invirt-web/; revision=2487
Greg Price [Sat, 2 May 2009 22:53:48 +0000 (18:53 -0400)]
xen-ips: silently ignore already-present IPs
Also from the first hours of April. You all can imagine
how happy I was to be running this code. =)
svn path=/trunk/packages/invirt-web/; revision=2322
Evan Broder [Fri, 17 Apr 2009 16:51:42 +0000 (12:51 -0400)]
When creating a new VM, create the disks in the try/except block so
that everything gets rolled back if that fails.
svn path=/trunk/packages/invirt-web/; revision=2295
Evan Broder [Tue, 7 Apr 2009 02:13:53 +0000 (22:13 -0400)]
Fix a potential quota hole from cross-realm Hesiod entries.
svn path=/trunk/packages/invirt-web/; revision=2293
Evan Broder [Thu, 5 Mar 2009 22:13:42 +0000 (17:13 -0500)]
Power off VMs after a Javascript popup.
svn path=/trunk/packages/invirt-web/; revision=2238
Evan Broder [Sat, 28 Feb 2009 02:13:11 +0000 (21:13 -0500)]
Don't bork of there is no main.fcgi.
svn path=/trunk/packages/invirt-web/; revision=2231
Evan Broder [Sat, 28 Feb 2009 02:07:15 +0000 (21:07 -0500)]
Add a changelog entry for the cache_acls change.
svn path=/trunk/packages/invirt-web/; revision=2227
Evan Broder [Sat, 28 Feb 2009 02:01:05 +0000 (21:01 -0500)]
Don't use a SA 0.5ism
svn path=/trunk/packages/invirt-web/; revision=2226
Evan Broder [Sat, 28 Feb 2009 01:46:23 +0000 (20:46 -0500)]
Start tracking the membership of the adminacl setting in the admins table.
svn path=/trunk/packages/invirt-web/; revision=2223
Evan Broder [Fri, 27 Feb 2009 20:48:19 +0000 (15:48 -0500)]
Use the newly globalized adminacl instead of the old web.adminacl.
svn path=/trunk/packages/invirt-web/; revision=2217
Quentin Smith [Fri, 27 Feb 2009 16:56:20 +0000 (11:56 -0500)]
Add "reusable" column for nics, to avoid reusing addresses that are special in some way.
svn path=/trunk/packages/invirt-web/; revision=2211
Peter Iannucci [Fri, 27 Feb 2009 03:20:10 +0000 (22:20 -0500)]
Fixed other instance of checked attribute
svn path=/trunk/packages/invirt-web/; revision=2190
Peter Iannucci [Thu, 26 Feb 2009 08:22:24 +0000 (03:22 -0500)]
Fixed bug pointed out by Broder with vmtype default and XHTML.
svn path=/trunk/packages/invirt-web/; revision=2189
Peter Iannucci [Sat, 21 Feb 2009 03:28:20 +0000 (22:28 -0500)]
Last fix.
svn path=/trunk/packages/invirt-web/; revision=2186
Peter Iannucci [Sat, 21 Feb 2009 03:26:47 +0000 (22:26 -0500)]
Using socket.getfqdn
svn path=/trunk/packages/invirt-web/; revision=2185
Peter Iannucci [Sat, 21 Feb 2009 03:21:57 +0000 (22:21 -0500)]
Fixed to use uname instead of environ
svn path=/trunk/packages/invirt-web/; revision=2184
Greg Price [Sat, 21 Feb 2009 03:16:57 +0000 (22:16 -0500)]
pkill directly rather than fool around with a CGI
kill.cgi has been broken for a while, and the Makefile has the wrong URI
for dev anyway.
svn path=/trunk/packages/invirt-web/; revision=2183
Peter Iannucci [Sat, 21 Feb 2009 03:09:34 +0000 (22:09 -0500)]
Fixed the log in link for xvm-dev by using environ['HOSTNAME']
svn path=/trunk/packages/invirt-web/; revision=2182
Anders Kaseorg [Tue, 17 Feb 2009 10:01:23 +0000 (05:01 -0500)]
Don't confuse {KB, MB, GB} with {KiB, MiB, GiB}.
svn path=/trunk/packages/invirt-web/; revision=2161
Peter Iannucci [Tue, 17 Feb 2009 07:40:13 +0000 (02:40 -0500)]
fixed a minor bug in validation.py
svn path=/trunk/packages/invirt-web/; revision=2141
Peter Iannucci [Tue, 17 Feb 2009 06:54:26 +0000 (01:54 -0500)]
Added all the other quotas for great win.
svn path=/trunk/packages/invirt-web/; revision=2134
Peter Iannucci [Tue, 17 Feb 2009 04:52:01 +0000 (23:52 -0500)]
RAM quotas at remctl; RAM quota exception script, table, and usage in -web and -remote-create; /etc/nocreate support
svn path=/trunk/packages/invirt-web/; revision=2132
Evan Broder [Sun, 15 Feb 2009 03:18:26 +0000 (22:18 -0500)]
Don't encrypt requests to the PRDB if config.authz.auth is set to False.
svn path=/trunk/packages/invirt-web/; revision=2119
Evan Broder [Thu, 5 Feb 2009 08:24:56 +0000 (03:24 -0500)]
For now, revert r2093-2095, which were committed by accident; I'm not
comfortable with them sitting on HEAD when I don't have time to test
them.
svn path=/trunk/packages/invirt-web/; revision=2097
Evan Broder [Thu, 5 Feb 2009 08:19:30 +0000 (03:19 -0500)]
Get rid of confusing err=True option to invirt.remctl.remctl.
svn path=/trunk/packages/invirt-web/; revision=2095