Hello everyone, For the app I'm going to develop, I will need sort of scripting "API" to it (callable from command line and/or Python or PHP library) in addition to normal web interface.
On the face of it, it seems straightforward: just put the code like following in lib/ def fun(params, web=True): ... ..and call it from controllers, while making scripting API library calling fun with web=False. But. The problem is complicated a bit by validation, which I would like to keep the same for web UI and scripting API (I obviously don't want to duplicate effort like producing separate code for web form value validation and another portion of validation code values that come in over scripting API). How would you solve such a problem in optimal way? Regards, mk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
