Fixed.
I converted the datetime.date to a string,
in this way it works.
thanks anyway
j
On 01/31/2013 02:47 PM, Jose Soares wrote:
Hi all,
I upgraded to tg 1.1.3 and now I get this new error:
...
Module simplejson.encoder:253 in iterencode
>> return _iterencode(o, 0)
Module turbojson.jsonify:201 in default
>> return jsonify(obj)
Module turbojson.jsonify:? in jsonify
Module peak.rules.core:169 in __call__
>> raise self.__class__(*self.args+(args,kw)) # XXX
AmbiguousMethods: ([Method(<function jsonify_datetime at 0x1a61398>,
Test(IsInstance(Local('obj')), Class(<type 'datetime.date'>, True)),
129, None), Method(<function jsonify_date at 0x3c0f410>,
Test(IsInstance(Local('obj')), Class(<type 'datetime.date'>, True)),
155, None)], (datetime.date(2012, 1, 12),), {}, <bound method
Controller.get_data of <sicer.FARMACO.controller.ricetta.Controller
object at 0x8ae7250>>)
What can I do to resolve it?
thanks.
j
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.