On Aug 31, 2006, at 8:16 AM, iGL wrote:

>
> Hi all,
> There is stated in the myghty doc that a module component can be used
> as an autohandler ( http://www.myghty.org/docs/specialtempl.myt ).
>
> My question is, how can one do the same with the paster/pylons config,
> or in any other relevant way?
>
> thanks in advance,
>

You can specify options to myghty specifically in the 'myghty'  
dictionary created in your project's environment.py.

In the case of that example, it would look like:

myghty['module_components'] = [
     # configure the root autohandler to resolve to Autohandler class
     {r'/autohandler$' : 'modcomp:Autohandler'},

     # configure all dhandlers to resolve to Dhandler class
     {r'.*/dhandler$' : 'modcomp:Dhandler'},
]

--
Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to