View Single Post
Old 10-17-2010, 09:57 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by kovidgoyal View Post
No there isn't. recipes are designed to run non interactively. That's not to say that I could not add pre configured settings per recipe, but at the moment the only ones are username and password. You can ofcourse overload them to pass in other data.
I've considered overloading them, but then you have a recipe that the user gets confused about - he has to enter something into user/pass before the recipe will run.

I'd love a third option, like "recipe_data" that will appear when we set:
uses_recipe_data = True
and will populate with a default from the recipe, so the user can see the settings, but will store/overwrite the settings when modified by the user.
A simple dictionary of settings the recipe author wants to allow the user to set should be clear enough. The instructions for use can be provided in the displayed recipe description and the dictionary of settings:values could appear in front of them in a recipe_data window. If no action is taken to change them, they can remain as default set by the recipe author.
Starson17 is offline   Reply With Quote