[visionegg] Removing *all* Controllers from a Presentation

Hi!

I'm wondering if there's a way to simply clear ALL of the controllers out of a presentation. I've looked at the source a fair bit, and don't see a way to do it with the remove_controller() function.

If I *am* in fact correct in saying this, I propose that a remove_controller(None, None, None) would remove all of them. I'm on Windows and haven't set up all of the cygwin tools for making a diff, but I believe this would implement the functionality in FlowControl.py (around line 213):

...
if class_with_parameters is None and parameter_name is None:
if (not isinstance(controller,Controller)) and controller != None:
raise TypeError("When deleting a controller, but specify an instance of VisionEgg.FlowControl.Controller class!")
>>> #Added by Tony, May30/2005
>>> if Controller == None:
>>> self.controllers = []
i = 0
while i < len(self.controllers):
...


This seems to be working fine here. Also, if for some reason this comes through as HTML-formatted mail instead of plain text, I'm truly sorry. I just installed this client 2 minutes ago and haven't gone through all the settings yet.

Cheers,
Tony
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: