2 #'cmd_move_sample': bcm_cmds.cmd_move_sample
8 def bcm_plugin_processor(keyword, text, bcm_mode):
10 Fixme should be made generic plugable, but am hard coding values for proof
15 if bcm_mode not in BCM_PLUGINS:
17 d['status'] = 'bcm_mode plugin called "%s" was not found' % (bcm_mode)
20 return BCM_PLUGINS[bcm_mode](keyword, text, bcm_mode)
23 def register_search_plugin(label, search_function):
25 Registers a group label and search_function
27 search_function(search_string) --> (text_display, obj_url)
30 if label in _SEARCH_FUNCTIONS:
31 msg = "search function for label (%s) already registered." % (label)
34 _SEARCH_FUNCTIONS[label] = search_function