projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
36c1430
)
tighten a bit of code
author
Greg Price
<price@mit.edu>
Thu, 29 Oct 2009 05:36:43 +0000
(
01:36
-0400)
committer
Greg Price
<price@mit.edu>
Thu, 29 Oct 2009 05:36:43 +0000
(
01:36
-0400)
svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2708
code/main.py
patch
|
blob
|
history
diff --git
a/code/main.py
b/code/main.py
index
c4eff65
..
f0d1f53
100755
(executable)
--- a/
code/main.py
+++ b/
code/main.py
@@
-254,8
+254,7
@@
console will suffer artifacts.
def __getattr__(self, name):
try:
- machine_id = int(name)
- cherrypy.request.params['machine_id'] = machine_id
+ cherrypy.request.params['machine_id'] = int(name)
return self
except ValueError:
return None