Implementing read-only mode

2007-10-13 Thread Yannick Gingras
Greetings Pyloneers, I'm implementing a 2-level read only mode in my Pylons app. First level is global and prevent any updates: that would be turned on while performing major software updates, DB sync, raid-5 rebuild, or who knows what. Second level is for soft-ban: a banned IP range is prev

Shouldn't default find_controllers use pkg_resources?

2007-10-13 Thread Marcin Kasperski
Well, I am just making my first experiments with pylons deployment, and while trying to 'run egg' I immediately got an error like: Sat Oct 13 22:25:56 2007] [error] [client 127.0.0.1] OSError: [Errno 20] Not a directory: '/home/marcink/DEV_hg/myapp/dist/mk-0.0.0dev-py2.5.egg/mkweb/controllers'

Re: Wizard like forms

2007-10-13 Thread aaaron
We've created a shuttle helper object that shuttle's form results between the different steps of the wizard (ie, flow). Each shuttle has an unique identifier that is used to persist the shuttle to the beaker session between actions. In the final action of the wizard, we take all the data that has

Re: Syntax for calling a func in another controller

2007-10-13 Thread Yannick Gingras
"Dalius Dobravolskas" <[EMAIL PROTECTED]> writes: >> return render(action="func", controller="") > Maybe you need: > > redirect_to(h.url_for(controller='', actions='')) I'd go for: from theapp.controllers import somecontroller return somecontroller.niceaction(arg1, arg2) -- Ya

Re: Syntax for calling a func in another controller

2007-10-13 Thread Dalius Dobravolskas
> return render(action="func", controller="") Maybe you need: redirect_to(h.url_for(controller='', actions='')) -- Dalius http://blog.sandbox.lt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-

Syntax for calling a func in another controller

2007-10-13 Thread voltron
Hi, can anyone tell me what the syntax for calling a render on function in another controller was? I have looked all over, I remember it being something like: return render(action="func", controller="") Is this correct? Where exactly are the docs to this? Thanks --~--~-~--~~-