Package advene :: Package model :: Package view :: Module builtin
[hide private]
[frames] | no frames]

Module builtin

source code

I am the content handler for mimetype application/x-advene-builtin-view.

Functions [hide private]
 
claims_for_handle(mimetype)
Is this view_handler likely to handle a view with that mimetype.
source code
 
get_output_mimetype(view)
Return the mimetype of the content produced by that view.
source code
 
apply_to(view, obj) source code
 
iter_methods() source code
 
get_method_info(method, default=_RAISE) source code
 
_wrap_method(**info) source code
 
hello_world(obj) source code
 
has_type(obj, type) source code
 
basic_element_constraint(obj, mimetype=None) source code
Variables [hide private]
  _methods = {}
Function Details [hide private]

claims_for_handle(mimetype)

source code 

Is this view_handler likely to handle a view with that mimetype.

Return an int between 00 and 99, indicating the likelyhood of this handler to handle correctly the given mimetype. 70 is used as a standard value when the hanlder is pretty sure it can handle the mimetype.

get_output_mimetype(view)

source code 

Return the mimetype of the content produced by that view.

Note that the output mimetype may depend on the mimetype of the view, as well as the content of the view itself, but should not depend on the element the view is applied to.

hello_world(obj)

source code 
Decorators:
  • @_wrap_method(output_mimetype= "text/plain",)

has_type(obj, type)

source code 
Decorators:
  • @_wrap_method(output_mimetype= "text/plain", type= "one of the following values:\n" " * ANNOTATION\n * IMPORT\n * LIST\n * MEDIA\n * PACKAGE\n * QUERY\n" " * RELATION\n * RESOURCE\n * TAG\n * VIEW\n" "")

basic_element_constraint(obj, mimetype=None)

source code 
Decorators:
  • @_wrap_method(output_mimetype= "text/plain", mimetype= "a mimetype that the element's content mimetype, if any, must " "match")