git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1df2189
)
remove hidden tabs
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 25 Mar 2009 18:57:15 +0000
(18:57 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 25 Mar 2009 18:57:15 +0000
(18:57 +0000)
PLC/Methods/AddSite.py
patch
|
blob
|
history
diff --git
a/PLC/Methods/AddSite.py
b/PLC/Methods/AddSite.py
index
74799db
..
a77b2f3
100644
(file)
--- a/
PLC/Methods/AddSite.py
+++ b/
PLC/Methods/AddSite.py
@@
-33,7
+33,7
@@
class AddSite(Method):
site_fields = dict(filter(can_update, site_fields.items()))
site = Site(self.api, site_fields)
site.sync()
-
+
# Logging variables
self.event_objects = {'Site': [site['site_id']]}
self.message = 'Site %d created' % site['site_id']
@@
-50,5
+50,5
@@
class AddSite(Method):
print e.message
except Exception, e:
print "Error importing site person record into geni db: %s" % e.message
-
-
return site['site_id']
+
+ return site['site_id']