There is an error in tgext.ecommerce which causes failure during
configuration of tgext.ercommerce itself.
Error is caused by:
hooks.register('after_config', init_paypal)
Which registers an hook with value without error handling, as hooks with
value are chain called (result of previous hooked function is input of the
next one) a failing function blocks the whole chain. As sub-controllers in
tgext.pluggable are mounted in after_config hook the "init_paypal" method
blocks the whole chain preventing controllers from being mounted.
In this specific case the source of the error is
"configure_paypal(tg.config['paypal_mode'], tg.config['paypal_client_id'],
tg.config['paypal_client_secret'])" which accesses three configuration
options without checking they are available at all.
On Thu, Jul 17, 2014 at 4:29 PM, Simone Gasbarroni <
[email protected]> wrote:
> Hello,
> i'm trying to plug a pluggable application (
> https://github.com/axant/tgext.ecommerce) with tgext.pluggable, it seems
> to work (INFO [tgext.pluggable] Plugging tgext.ecommerce) but when i try
> to access pluggable controllers i get 404 error, tg debugbar says
> controller are not mounted.
> When i plug this pluggable even other pluggables fail to mount, but no
> error or traceback are given.
> thank you for help and have a nice day.
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.