Using PloneGetPaid 0.6.2 with Plone 2.5

View: New views
4 Messages — Rating Filter:   Alert me  

Using PloneGetPaid 0.6.2 with Plone 2.5

by duffyd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I'm trying to setup PloneGetPaid with Plone 2.5 and am using the
official buildout[1]. I'm currently just trying to runup a simple
functional test and it errors as follows[2]. Anyone know why I'd get a
ComponentLookupError like this?

Thanks in advance,
Tim

[1] https://getpaid.googlecode.com/svn/tags/0.6.2/getpaid.buildout
[2] http://duffyd.pastebin.com/f4382640c


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "getpaid-dev" group.
To post to this group, send email to getpaid-dev@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Using PloneGetPaid 0.6.2 with Plone 2.5

by duffyd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello again,

Just further to this query, I've stepped through the setup code of PGP
and it definitely registers the IShoppingCartUtility utility ok and when
I do a query on it after setup it finds it. So what's going wrong when
it runs the showManageCart code?

Thanks again,
Tim

On Wed, 2009-06-10 at 16:44 +1200, Tim Knapp wrote:

> Hello,
>
> I'm trying to setup PloneGetPaid with Plone 2.5 and am using the
> official buildout[1]. I'm currently just trying to runup a simple
> functional test and it errors as follows[2]. Anyone know why I'd get a
> ComponentLookupError like this?
>
> Thanks in advance,
> Tim
>
> [1] https://getpaid.googlecode.com/svn/tags/0.6.2/getpaid.buildout
> [2] http://duffyd.pastebin.com/f4382640c
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "getpaid-dev" group.
To post to this group, send email to getpaid-dev@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Using PloneGetPaid 0.6.2 with Plone 2.5

by duffyd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2009-06-10 at 17:02 +1200, Tim Knapp wrote:
> Hello again,
>
> Just further to this query, I've stepped through the setup code of PGP
> and it definitely registers the IShoppingCartUtility utility ok and when
> I do a query on it after setup it finds it. So what's going wrong when
> it runs the showManageCart code?

Troubleshooting this a bit further, it seems that the
IShoppingCartUtility utility gets registered against the 'site
manager' (or the Plone portal) and as I'm trying to get this working in
my test fixture I had a read through
Products.Five.site.tests.sitemanager.txt for some tips on how to enable
the site manager on the Plone portal in my test fixture. So I've done
the following:

    def afterSetUp(self):
        enableLocalSiteHook(self.portal)
        setSite(self.portal)

but I still get the ComponentLookupError. Is there anything else I could
be missing?

Thanks again,
Tim

>
> Thanks again,
> Tim
>
> On Wed, 2009-06-10 at 16:44 +1200, Tim Knapp wrote:
> > Hello,
> >
> > I'm trying to setup PloneGetPaid with Plone 2.5 and am using the
> > official buildout[1]. I'm currently just trying to runup a simple
> > functional test and it errors as follows[2]. Anyone know why I'd get a
> > ComponentLookupError like this?
> >
> > Thanks in advance,
> > Tim
> >
> > [1] https://getpaid.googlecode.com/svn/tags/0.6.2/getpaid.buildout
> > [2] http://duffyd.pastebin.com/f4382640c
> >
> >
> > >
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "getpaid-dev" group.
To post to this group, send email to getpaid-dev@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Using PloneGetPaid 0.6.2 with Plone 2.5

by duffyd :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 2009-06-10 at 18:23 +1200, Tim Knapp wrote:

> On Wed, 2009-06-10 at 17:02 +1200, Tim Knapp wrote:
> > Hello again,
> >
> > Just further to this query, I've stepped through the setup code of PGP
> > and it definitely registers the IShoppingCartUtility utility ok and when
> > I do a query on it after setup it finds it. So what's going wrong when
> > it runs the showManageCart code?
>
> Troubleshooting this a bit further, it seems that the
> IShoppingCartUtility utility gets registered against the 'site
> manager' (or the Plone portal) and as I'm trying to get this working in
> my test fixture I had a read through
> Products.Five.site.tests.sitemanager.txt for some tips on how to enable
> the site manager on the Plone portal in my test fixture. So I've done
> the following:
>
>     def afterSetUp(self):
>         enableLocalSiteHook(self.portal)
>         setSite(self.portal)
>
> but I still get the ComponentLookupError. Is there anything else I could
> be missing?

Just for the record, doing:
  >>> from zope.app.component.hooks import setHooks
  >>> setHooks()

did the trick!

-Tim

>
> Thanks again,
> Tim
>
> >
> > Thanks again,
> > Tim
> >
> > On Wed, 2009-06-10 at 16:44 +1200, Tim Knapp wrote:
> > > Hello,
> > >
> > > I'm trying to setup PloneGetPaid with Plone 2.5 and am using the
> > > official buildout[1]. I'm currently just trying to runup a simple
> > > functional test and it errors as follows[2]. Anyone know why I'd get a
> > > ComponentLookupError like this?
> > >
> > > Thanks in advance,
> > > Tim
> > >
> > > [1] https://getpaid.googlecode.com/svn/tags/0.6.2/getpaid.buildout
> > > [2] http://duffyd.pastebin.com/f4382640c
> > >
> > >
> > > >
> >
> >
> > >
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "getpaid-dev" group.
To post to this group, send email to getpaid-dev@...
To unsubscribe from this group, send email to getpaid-dev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---