On Feb 19, 2009, at 12:08 PM, Mike Orr wrote:

This came up before in the case of non-Pylons controllers (i.e. WSGI
applications pretending to be controllers.).  If the class is named
differently than PylonsApp expects, you have to assign it to a global
variable with the expected name.  I had suggested having an optional
global variable with a well-known name (e.g., 'controller'), which
would override the normal lookup.  This would just be a little patch,
but it would help both with foreign applications that are not called
"*Controller", and also with controllers containing acronyms (e.g.,
"MyURLController"), which look bad when they're recapitalized to match
the convention ("MyurlController").

controller = MyURLController
controller = Plone

Actually, that option is present:
__controller__ = Plone

Will work just fine.

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to