diff options
| author | bryan.culbertson <bryan.culbertson@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2> | 2009-11-18 01:50:16 +0000 |
|---|---|---|
| committer | bryan.culbertson <bryan.culbertson@5914aa95-5b3a-0410-a3b5-7b719e7fe9b2> | 2009-11-18 01:50:16 +0000 |
| commit | db512d8c7e2ed1264021f4ab5af0506dc3bc5f8c (patch) | |
| tree | 84d1037f528268c6b375e28024d5d645b473f6e1 /freebase | |
| parent | f4fb331fd967bc96fc4d62ba367e7e2f38049a64 (diff) | |
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
Diffstat (limited to 'freebase')
| -rwxr-xr-x | freebase/fcl/commands.py | 3 | ||||
| -rwxr-xr-x | 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 |
