From db512d8c7e2ed1264021f4ab5af0506dc3bc5f8c Mon Sep 17 00:00:00 2001 From: "bryan.culbertson" Date: Wed, 18 Nov 2009 01:50:16 +0000 Subject: 1. Fix typeid misspelling 2. Add current directory support to open command git-svn-id: http://freebase-python.googlecode.com/svn/trunk@236 5914aa95-5b3a-0410-a3b5-7b719e7fe9b2 --- freebase/fcl/commands.py | 3 ++- freebase/fcl/mktype.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/freebase/fcl/commands.py b/freebase/fcl/commands.py index 1813fc0..0f1389b 100755 --- a/freebase/fcl/commands.py +++ b/freebase/fcl/commands.py @@ -764,7 +764,8 @@ def cmd_open(fb, id): %prog open /some/id """ - os.system("open 'http://www.freebase.com/view%s'" % id) + path = fb.absid(id) + os.system("open 'http://%s/view%s'" % (fb.service_host, path)) def cmd_log(fb, id): diff --git a/freebase/fcl/mktype.py b/freebase/fcl/mktype.py index 6e3d867..d144016 100755 --- a/freebase/fcl/mktype.py +++ b/freebase/fcl/mktype.py @@ -45,7 +45,7 @@ def cmd_mkobj(fb, id, typeid='/common/topic', name=''): id = fb.absid(id) return create_object(fb.mss, name="", path=id, - included_types=type_id, create="unless_exists") + included_types=typeid, create="unless_exists") def cmd_mktype(fb, id, name=''): """create a new type -- EXPERIMENTAL -- cgit v1.3.1