Passing OrderedDict as argument

In my Plex plugin I have main procedure MainMenu() that initializes an OrderedDict object, then I want to pass it to another procedure that would do stuff with that dictionary (I would love to use regular list, but it does not work :( ) so before defining a new procedure I need to set a @route for it to work, like:

@route('testplugin/customproc', arg_dict = X)
def customproc(arg_dict):
    for i in arg_dict:
        #do stuff

what should I write instead of X? If I write "dict", I get unordered dictionary, if I write "ordereddict" I get error. Maybe it is not possible to use OrderedDict as an argument?

Just guessing but I think that the framework is not going to handle these complex data structures very well when passing them.  It might sound redundant, but can you move off whatever is finding all of that information into it's own method and then calling it from both places as needed?  Not idea but sometimes you have to do what you have to do.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.