Message5818

Author akong
Recipients akong, thijs
Date 2010-06-16.21:00:31
SpamBayes Score 0.12224249
Marked as misclassified No
Message-id <1276722032.7.0.0857632517544.issue1618@psf.upfronthosting.co.za>
In-reply-to
Content
In the pyamf code, they have this check:

1780        if type(module) is dict:
1781	        has = lambda x: x in module.keys()
1782	        get = module.__getitem__
1783	    elif type(module) is list:
1784	        has = lambda x: x in module
1785	        get = module.__getitem__
1786	        strict = False
1787	    else:
1788	        has = lambda x: hasattr(module, x)
1789	        get = lambda x: getattr(module, x)

Since type(globals()) is 'stringmap', it fails

You can try 

pyamf.register_package(dict(globals()), package='flex.messaging.io')

instead
History
Date User Action Args
2010-06-16 21:00:32akongsetmessageid: <1276722032.7.0.0857632517544.issue1618@psf.upfronthosting.co.za>
2010-06-16 21:00:32akongsetrecipients: + akong, thijs
2010-06-16 21:00:32akonglinkissue1618 messages
2010-06-16 21:00:31akongcreate