[Chandler-dev] Introduction and questions
Phillip J. Eby
pje at telecommunity.com
Tue Jun 20 10:59:13 PDT 2006
At 10:43 AM 6/20/2006 -0700, Travis wrote:
>repository.persistence.RepositoryError.SaveValueError: While saving value
>for 'watcherDispatch' on <Extent (new):
>f32200d8-007f-11db-ae80-e122534d4185>: No handler for values of type <type
>'instancemethod'>
>
>
>It looks like it doesn't like persisting the watcher method. I haven't
>mentioned the method in the schema for ChandlerIMailbox, do I have to? If
>so, how is this done? I can't find method or function as schema types in
>the documentation.
The repository doesn't support saving objects like this in the general
case; it can save classes, but not functions or methods. The usual pattern
is that method *names* get saved, instead. Googling "watchkind
site:chandler.osafoundation.org" turned up this:
http://chandler.osafoundation.org/docs/0.6/api/repository.item.Item.Item-class.html
Which states that 'watchKind' takes a method name, not the actual
method. Unfortunately, there doesn't seem to be any other documentation there.
More information about the chandler-dev
mailing list