[oxfam@karlhost01 current]$ bin/debug
Python 2.5.5 (r255:77872, Jun 7 2010, 14:10:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help" for more information. "root" is the karl root object.
>>> from karl.models.interfaces import ICatalogSearch
>>> s = ICatalogSearch(root)
>>> count, docids, resolver = s(creator='kuhlermckeown')
>>> for doc in [resolver(x) for x in docids]:
... print model_path(doc)
...
Traceback (most recent call last):
File "<console>", line 2, in <module>
NameError: name 'model_path' is not defined
>>>
[oxfam@karlhost01 current]$ bin/debug interfaces import ICatalogSearch root) 'kuhlermckeown' )
Python 2.5.5 (r255:77872, Jun 7 2010, 14:10:57)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help" for more information. "root" is the karl root object.
>>> from karl.models.
>>> s = ICatalogSearch(
>>> count, docids, resolver = s(creator=
>>> for doc in [resolver(x) for x in docids]:
... print model_path(doc)
...
Traceback (most recent call last):
File "<console>", line 2, in <module>
NameError: name 'model_path' is not defined
>>>