Hi,

I just tried to upgrade an existing app to TG1.0.4.4, and my json.py 
gives me errors like this:

======================================================================
ERROR: This test ensures that the SO object inheritance is respected in 
jsonification.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/Users/deets/projects/artnology/Van_Abbe_RMS/Van-Abbe-RMS/varms/tests/test_model.py",
 
line 643, in test_json_so_works
     json = jsonify(g)
   File 
"/Users/deets/.virtualenvs/RMS/lib/python2.5/site-packages/TurboJson-1.2-py2.5.egg/turbojson/jsonify.py",
 
line 22, in jsonify
     @abstract()
   File "<generated code>", line 0, in jsonify
   File "build/bdist.macosx-10.3-fat/egg/peak/rules/core.py", line 214, 
in __call__
     raise self.__class__(*self.args+(args,kw))  # XXX
AmbiguousMethods: ([Method(<function jsonify_sqlobject at 0x1a70270>, 
Signature([Test(Truth(Call(Const(<function is_sqlobject at 0x1a70130>), 
(Local('obj'),), (), (), (), True)), Value(True, True)), 
Test(Truth(Call(Const(<built-in function hasattr>), (Local('obj'), 
Const('__json__')), (), (), (), True)), Value(True, False))]), 127, 
None), Method(<function jsonify_user at 0x1f7e970>, 
Test(IsInstance(Local('obj')), Class(<class 'varms.model.Guide'>, 
True)), 131, None)], (<Guide 1 user_name=u'charles' 
email_address=u'[EMAIL PROTECTED]' display_name=u'Charles' 
password=u'Wafer-thin Mint' created='datetime.datetime...)'>,), {})

I read up on Rules dispatch, but so fare it eludes me what to do to get 
rid of that problem. Any suggestions heartly welcomed.

Diez

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

Reply via email to