I'm having problems retrieving the attribute I assigned to a
DownloadableProduct. My understanding is that I should be able to
"Retrieve an attribute, or its parent's attribute if it is null or
blank. Ex: to get a weight. obj.smart_attr('weight')". When I try to
retrieve the agentname attribute I set for a DownloadableProduct I get
this error:
AttributeError: type object 'DownloadableProduct' has no attribute
'smart_attr'
I guess I'm incorrectly trying to access that method from this code,
any help would be appreciated:
def my_callback(sender, **kwargs):
dl = DownloadableProduct.smart_attr('agentname')
print dl
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---