search for: opaque_id

Displaying 5 results from an estimated 5 matches for "opaque_id".

2008 Apr 01
1
"Undefined method merge" when using sweeper
...the error message is the cached page. Here''s my sweeper: class FooSweeper < ActionController::Caching::Sweeper observe Foo def after_save(foo) expire_cache(foo) end def after_destroy(foo) expire_cache(foo) end def expire_cache(foo) expire_page signature_path(:opaque_id => foo.opaque_id) # line 13 expire_page signature_image_path(:opaque_id => foo.opaque_id) end end The signature_path(:opaque_id => string) generates "/signature/ string.html" route, so this part works correctly. Here''s stack trace: .../vendor/rails/actionpack/li...
2019 Jul 16
0
[libnbd PATCH 2/2] RFC: generator: Handle shared callbacks in Python
...n -> pr "const char *%s" n | StringList n -> pr "char **%s" n @@ -3715,155 +3738,138 @@ let print_python_binding name { args; ret } = * have to generate a wrapper function which translates the * callback parameters back to Python. *) - let find_callback opaque_id = - let cb = - try - List.find ( - function - | Callback (_, args) | CallbackPersist (_, args) -> - List.mem (Opaque opaque_id) args - | _ -> false - ) args - with - Not_found -> - failwithf "%s: couldn...
2019 Jul 16
3
[RFC libnbd PATCH 0/2] Start fixing python nbd.pread_structured_callback
Posting now that I got something to compile (at the expense of breaking OCaml bindings), but I'm open to ideas on how to improve it. Eric Blake (2): generator: Tweak print_c_arg_list to take alternate first arg RFC: generator: Handle shared callbacks in Python generator/generator | 556 ++++++++++++++++++++++---------------------- 1 file changed, 280 insertions(+), 276 deletions(-) --
2019 Jul 16
0
[PATCH libnbd v2] generator: Define new Closure type instead of callbacks.
...ecause we - * have to generate a wrapper function which translates the - * callback parameters back to Python. + (* Functions with a Closure parameter are special because we + * have to generate wrapper functions which translate the + * callbacks back to Python. *) - let find_callback opaque_id = - let cb = - try - List.find ( - function - | Callback (_, args) | CallbackPersist (_, args) -> - List.mem (Opaque opaque_id) args - | _ -> false - ) args - with - Not_found -> - failwithf "%s: couldn...
2019 Jul 16
2
[PATCH libnbd v2] generator: Define new Closure type
As before, but this one has working Python bindings. OCaml still TBD. Rich.