2009/2/11 Kapil Thangavelu <[email protected]>

>
>
> On Wed, Feb 11, 2009 at 8:35 AM, Jim Nelson <[email protected]>wrote:
>
>>
>> This is where I ran into the problems with the checkout wizard.  First
>> off, you
>> cannot include the overrides.zcml file in your configure.zcml - that's why
>> you
>> get into this problem.  getpaid.paypal uses the following zcml
>> registrations:
>>
>> zcml =
>>     getpaid.paypal
>>     getpaid.paypal-overrides
>>
>>
>> That will get the override working properly.
>>
>
> if your going to include an override via zcml, it can be included via the
> includeOverrides directive
>
> cheers,
>
> kapil
>

Thanks Jim. Registering the overrides as you said work perfectly.

I am now have some trouble with my checkout.py file. When my page template
should load, I get the following error:

Time 2009/02/12 08:31:53.826 GMT+2  User Name (User Id) hannes
(hannes)  Request
URL http://localhost:8080/GetPaid/@@getpaid-checkout-wizard  Exception Type
TypeError  Exception Value setUpEditWidgets() got multiple values for
keyword argument 'adapters'

Traceback (innermost last):

   - Module ZPublisher.Publish, line 119, in publish
   - Module ZPublisher.mapply, line 88, in mapply
   - Module ZPublisher.Publish, line 42, in call_object
   - Module Products.PloneGetPaid.browser.checkout, line 352, in __call__
   - Module getpaid.wizard._wizard, line 38, in __call__
   - Module getpaid.wizard._wizard, line 28, in update
   - Module getpaid.wizard._wizard, line 263, in update
   - Module Products.PloneGetPaid._patch, line 44, in update
   - Module zope.formlib.form, line 732, in update
   - Module getpaid.vcs.browser.checkout, line 25, in setUpWidgets

TypeError: setUpEditWidgets() got multiple values for keyword argument
'adapters'

I went to go look at how zope.formlib works, and as far as I can see, I am
not doing anything wrong, my setUpWidgets looks as follows:

def setUpWidgets( self, ignore_request=False ):
        self.adapters = self.adapters is not None and self.adapters or {}

        # display widgets for bill/ship address
        self.widgets = form.setUpEditWidgets(
            self.form_fields, self.prefix, self.context, self.request,
            self.prefix, self.context, self.request,
            adapters=self.adapters, for_display=True,
ignore_request=ignore_request
            )

The full (updated) product can be found at:
http://www.opennetworks.co.za/getpaid.vcs.tar.gz

Sorry for posting every little thing on here, but as there are no real
documentation, this is the only place I can trun :)

Thanks again
Hannes

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"getpaid-dev" 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/getpaid-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to