server/serverctl.py
changeset 10010 3dd66bdbfe8e
parent 10009 560747cd7774
child 10077 1a28c0b0a0b4
--- a/server/serverctl.py	Mon Apr 28 17:34:07 2014 +0200
+++ b/server/serverctl.py	Tue Apr 29 11:34:42 2014 +0200
@@ -520,11 +520,13 @@
                         print '-> uri already used, choose another one.'
                     else:
                         break
+            url = raw_input('source URL (leave empty for none): ').strip()
+            url = unicode(url) if url else None
             # XXX configurable inputlevel
             sconfig = ask_source_config(config, type, inputlevel=self.config.config_level)
             cfgstr = unicode(generate_source_config(sconfig), sys.stdin.encoding)
             cnx.create_entity('CWSource', name=sourceuri, type=unicode(type),
-                              config=cfgstr, parser=unicode(parser))
+                              config=cfgstr, parser=unicode(parser), url=unicode(url))
             cnx.commit()