diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-21 11:27:02 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-09-21 11:27:02 -0400 |
commit | 89a9dd51a62552a2e9550ec4e12b9a452762f5aa (patch) | |
tree | 4a4eb16d252be34d6885bc8cdc9945bf158f63a0 /server/server.py | |
parent | a4ca1866ea731b67638a65c5cb8e052f07cdbaa1 (diff) | |
parent | f945d9b43021fccde0544d4580778ae13ca50e22 (diff) | |
download | third_party-func-89a9dd51a62552a2e9550ec4e12b9a452762f5aa.tar.gz third_party-func-89a9dd51a62552a2e9550ec4e12b9a452762f5aa.tar.xz third_party-func-89a9dd51a62552a2e9550ec4e12b9a452762f5aa.zip |
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/func
Diffstat (limited to 'server/server.py')
-rwxr-xr-x | server/server.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/server/server.py b/server/server.py index d6fffd5..b167938 100755 --- a/server/server.py +++ b/server/server.py @@ -22,7 +22,7 @@ import sys import traceback from rhpl.translate import _, N_, textdomain, utf8 -I18N_DOMAIN = "vf_server" +I18N_DOMAIN = "func" # our modules import codes @@ -78,6 +78,10 @@ class XmlRpcInterface(object): find a handler method """ + # Recognize ipython's tab completion calls + if method == 'trait_names' or method == '_getAttributeNames': + return self.handlers.keys() + return self.get_dispatch_method(method)(*params) # ====================================================================================== @@ -154,7 +158,19 @@ def main(argv): """ modules = module_loader.load_modules() - print "modules", modules + + print "\n\n\n\n\n" + print " WARNING WARNING WARNING" + print "DANGER DANGER DANGER" + print "\n\n\n\n" + print "THERE IS NO AUTHENTICATION IN THIS VERSION" + print "DO NOT RUN ON A MACHINE EXPOSED TO ANYONE YOU DO NOT TRUST" + print " THEY CAN DO VERY BAD THINGS" + print "\n\n\n\n\n" + print "Really, don't do that. It is not at all secure at the moment" + print "like, at all." + print "" + print "Seriously.\n\n" try: websvc = XmlRpcInterface(modules=modules) |