okay, from the shell I can do this:

import pfp

config = pfp.config.config_get_group('PAYMENT_PAYFLOWPRO')
config.get('KEY').value

which returns 'PAYFLOWPRO'

so perhaps theres somewhere in my views that I'm not loading something?
Particularly in my pfp/views.py:

from livesettings import config_get_group
from payment.views import confirm, payship

def pay_ship_info(request):
    return payship.credit_pay_ship_info(request,
config_get_group('PAYMENT_PAYFLOWPRO'))

def confirm_info(request):
    return confirm.credit_confirm_info(request,
config_get_group('PAYMENT_PAYFLOWPRO'))


or maybe urls.py:

from django.conf.urls.defaults import *
from livesettings import config_value, config_get_group


config = config_get_group('PAYMENT_PAYFLOWPRO')

urlpatterns = patterns('',
     (r'^$', 'pfp.views.pay_ship_info', {'SSL':config.SSL.value},
'PAYFLOWPRO_satchmo_checkout-step2'),
     (r'^confirm/$', 'pfp.views.confirm_info', {'SSL':config.SSL.value},
'PAYFLOWPRO_satchmo_checkout-step3'),
     (r'^success/$', 'payment.views.checkout.success',
{'SSL':config.SSL.value}, 'PAYFLOWPRO_satchmo_checkout-success'),
)




On Tue, Sep 8, 2009 at 1:55 PM, Ryan Headley <[email protected]> wrote:

> If by import you mean: >>> import PAYFLOWPRO, that fails...
>
> everything shows up in Admin though.
>
> I think this is just something silly I am missing...
>
>
>
>
> On Tue, Sep 8, 2009 at 1:30 PM, Chris Moffitt <[email protected]> wrote:
>
>> Can you import the key from python manage.py shell?
>>
>> On Tue, Sep 8, 2009 at 1:23 PM, Ryan Headley <[email protected]>wrote:
>>
>>> the only thing somewhat alarming is the TAX.TAX_SHIPPING setting not
>>> being set:  this is the entire log:
>>>
>>> 2009-09-08 12:46:35,857 root        : INFO     Satchmo Started
>>> 2009-09-08 12:46:35,927 satchmo_store.shop: DEBUG    patching for
>>> multishop
>>> 2009-09-08 12:46:36,566 tiered.config: DEBUG    loaded
>>> 2009-09-08 12:46:36,718 shop.listeners: DEBUG    Added default shop
>>> listeners
>>> 2009-09-08 12:46:36,745 sslurllib   : WARNING  ssl is not installed,
>>> please install it from http://pypi.python.org/pypi/ssl/
>>> 2009-09-08 12:46:36,762 threaded_multihost.sites: DEBUG    No request
>>> 2009-09-08 12:46:41,516 threaded_multihost.sites: DEBUG    looking up
>>> site by host: SITENAMEREMOVED:8000
>>> 2009-09-08 12:46:43,623 satchmo_store.urls: DEBUG    Adding local serving
>>> of static files at: /home/DIRECTORYSTRUCTUREREMOVED/estore/static/
>>> 2009-09-08 12:46:43,634 product_feeds.urls: DEBUG    Adding product_feed
>>> urls
>>> 2009-09-08 12:46:43,635 wishlist.urls: DEBUG    adding wishlist urls at
>>> ^wishlist/
>>> 2009-09-08 12:46:43,872 payship     : DEBUG    processor=<module
>>> 'pfp.processor' from
>>> '/home/DIRECTORYSTRUCTUREREMOVED/estore/pfp/processor.pyc'>
>>> 2009-09-08 12:46:43,872 payship     : DEBUG    using default form
>>> 2009-09-08 12:46:43,897 configuration: DEBUG    SettingNotSet:
>>> TAX.TAX_SHIPPING
>>> 2009-09-08 12:46:43,907 configuration: DEBUG    Getting shipping methods:
>>> [u'shipping.modules.flat']
>>> 2009-09-08 12:46:43,907 configuration: DEBUG    SettingNotSet:
>>> TAX.TAX_SHIPPING
>>> 2009-09-08 12:46:43,980 l10n.utils  : DEBUG    setting locale: ('en',
>>> 'utf-8')
>>> 2009-09-08 13:15:14,351 threaded_multihost.sites: DEBUG    looking up
>>> site by host: SITENAMEREMOVED:8000
>>> 2009-09-08 13:15:14,419 payship     : DEBUG    processor=<module
>>> 'pfp.processor' from
>>> '/home/DIRECTORYSTRUCTUREREMOVED/estore/pfp/processor.pyc'>
>>> 2009-09-08 13:15:14,425 payship     : DEBUG    using default form
>>> 2009-09-08 13:15:14,556 configuration: DEBUG    SettingNotSet:
>>> TAX.TAX_SHIPPING
>>> 2009-09-08 13:15:14,625 configuration: DEBUG    Getting shipping methods:
>>> [u'shipping.modules.flat']
>>> 2009-09-08 13:15:14,627 configuration: DEBUG    SettingNotSet:
>>> TAX.TAX_SHIPPING
>>> 2009-09-08 13:15:14,759 l10n.utils  : DEBUG    setting locale: ('en',
>>> 'utf-8')
>>> ocale: ('en', 'utf-8')
>>>
>>> I apologize for removing site name/directory structure...both would
>>> reveal out client and they're not quite ready to let that cat out of the bag
>>> yet.
>>>
>>> Ryan
>>>
>>>
>>> On Tue, Sep 8, 2009 at 1:14 PM, Chris Moffitt <[email protected]>wrote:
>>>
>>>> Do you see anything in your log file that might indicate problems with
>>>> loading the module?
>>>>
>>>> -Chris
>>>>
>>>>
>>>> On Tue, Sep 8, 2009 at 1:03 PM, lifewithryan <[email protected]>wrote:
>>>>
>>>>>
>>>>> I'm creating a PayflowPro custom module, I'm almost there (or so I
>>>>> think) --
>>>>>
>>>>> However, upon clicking the Confirm button on the Credit Card screen, I
>>>>> get the following error raised:
>>>>>
>>>>> ModuleValue object has no attribute KEY -- below are the relevant
>>>>> parts of my config.py in my payment module.
>>>>> My PAYMENT_GROUP is PAYMENT_PAYFLOWPRO
>>>>>
>>>>>
>>>>> ...
>>>>>   ModuleValue(PAYMENT_GROUP,
>>>>>        'MODULE',
>>>>>        description=_('Implementation module'),
>>>>>        hidden=True,
>>>>>        default = 'pfp'),
>>>>>
>>>>>    StringValue(PAYMENT_GROUP,
>>>>>        'KEY',
>>>>>        description=_('Module key'),
>>>>>        hidden=True,
>>>>>        default='PAYFLOWPRO'),
>>>>> ...
>>>>>
>>>>> Any thoughts?
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> http://www.sudovi.com/
>>> http://www.twitter.com/lifewithryan
>>> http://www.thecommontongue.com
>>> http://www.lifewithryan.com/
>>>
>>>
>>>
>>>
>>
>> >>
>>
>
>
> --
> http://www.sudovi.com/
> http://www.twitter.com/lifewithryan
> http://www.thecommontongue.com
> http://www.lifewithryan.com/
>



-- 
http://www.sudovi.com/
http://www.twitter.com/lifewithryan
http://www.thecommontongue.com
http://www.lifewithryan.com/

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

Reply via email to