Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20998E690 for ; Thu, 14 Feb 2013 23:57:13 +0000 (UTC) Received: (qmail 84991 invoked by uid 500); 14 Feb 2013 23:57:12 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 84927 invoked by uid 500); 14 Feb 2013 23:57:12 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 84918 invoked by uid 99); 14 Feb 2013 23:57:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 23:57:12 +0000 Date: Thu, 14 Feb 2013 23:57:12 +0000 (UTC) From: "Hudson (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1255) Python schema (message, protocol) to_json names argument should be optional MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13578821#comment-13578821 ] Hudson commented on AVRO-1255: ------------------------------ Integrated in AvroJava #351 (See [https://builds.apache.org/job/AvroJava/351/]) AVRO-1255. Python: Make 'names' parameter optional in to_json methods. Contributed by Jeremy Kahn. (Revision 1446366) Result = SUCCESS cutting : Files : * /avro/trunk/CHANGES.txt * /avro/trunk/lang/py/src/avro/protocol.py * /avro/trunk/lang/py/src/avro/schema.py > Python schema (message, protocol) to_json names argument should be optional > --------------------------------------------------------------------------- > > Key: AVRO-1255 > URL: https://issues.apache.org/jira/browse/AVRO-1255 > Project: Avro > Issue Type: Improvement > Components: python > Affects Versions: 1.7.3 > Reporter: Jeremy Kahn > Assignee: Jeremy Kahn > Priority: Minor > Labels: patch > Fix For: 1.7.4 > > Attachments: avro-1255-b.patch, avro-1255.patch > > > The {{avro.protocol.Protocol}}, {{avro.protocol.Message}}, and various classes in {{avro.schema}} all support a {{to_json}} method which renders the data in Python generics (easily renderable to json). > These methods all take a required {{names}} argument (of type {{avro.schema.Names}}) which stores state representing what types have already been rendered. > For debugging -- and for other uses of the schema -- it is helpful if the {{names}} argument is optional. When it is not provided, each method should construct an empty {{schema.Names}} object internally. {{to_json}} thus can be invoked without argument to get the relevant rendering of the current schema in isolation. > Patch to be attached. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira