Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E9B1C715 for ; Fri, 1 Nov 2013 12:46:24 +0000 (UTC) Received: (qmail 88012 invoked by uid 500); 1 Nov 2013 12:46:23 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 87854 invoked by uid 500); 1 Nov 2013 12:46:19 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 87839 invoked by uid 99); 1 Nov 2013 12:46:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2013 12:46:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fraser.adams@blueyonder.co.uk designates 80.0.253.73 as permitted sender) Received: from [80.0.253.73] (HELO know-smtprelay-omc-9.server.virginmedia.net) (80.0.253.73) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Nov 2013 12:46:12 +0000 Received: from [192.168.1.105] ([82.38.120.72]) by know-smtprelay-9-imp with bizsmtp id kClk1m00b1Zorai01ClpTC; Fri, 01 Nov 2013 12:45:51 +0000 X-Originating-IP: [82.38.120.72] X-Spam: 0 X-Authority: v=2.0 cv=P6hiHV8u c=1 sm=1 a=kn84lg4yEBBc+Mp7+mj2YQ==:17 a=-TtDL2fbfKMA:10 a=iEJufrPTCV8A:10 a=3NElcqgl2aoA:10 a=8nJEP1OIZ-IA:10 a=a5Gf7U6LAAAA:8 a=URjcGGAXqoUA:10 a=mV9VRH-2AAAA:8 a=mD_7AcPR2EVjnxy-WqQA:9 a=wPNLvfGTeEIA:10 a=yHIqe9kG5mgA:10 a=kn84lg4yEBBc+Mp7+mj2YQ==:117 Message-ID: <5273A277.8060404@blueyonder.co.uk> Date: Fri, 01 Nov 2013 12:45:43 +0000 From: Fraser Adams User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: In proton Is protocol.py actually called anywhere? References: <52738133.6040602@blueyonder.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks Rafael, I'd noticed protocol.h.py and encodings.h.py and the stuff in CmakeLists.txt, but was too busy grepping for specific file names to notice "from protocol import *" in protocol.h.py, d'Oh :-D cheers, Frase On 01/11/13 11:45, Rafael Schloming wrote: > They are called from the build system. Lines 63 through 74 of > proton-c/CMakeLists.txt add a custom command to call both protocol.h.py and > encodings.h.py as part of the build process. These scripts pick through the > xml files and produce header files with useful #defines. The protocol.py > module is imported by protocol.h.py as part of this. > > We don't currently use transactions.xml yet, but it is part of the xml that > comes with the spec. I expect we'll start using it as soon as we build out > better transaction support in the APIs. > > --Rafael > > > On Fri, Nov 1, 2013 at 6:23 AM, Fraser Adams > wrote: > >> Hi All, >> I've been trying to stumble my way round the proton directory tree trying >> to work out how the Cmakes hang together and the like. >> >> Now I can see protocol.h.py gets called but when I grepped for >> protocol.py (grep -rH "protocol.py" .) I got: >> Binary file ./proton-c/src/protocol.pyc matches >> ./proton-c/src/.svn/all-**wcprops:protocol.py >> ./proton-c/src/.svn/all-**wcprops:/repos/asf/!svn/ver/** >> 1352267/qpid/proton/trunk/**proton-c/src/protocol.py >> ./proton-c/src/.svn/entries:**protocol.py >> >> So it doesn't look like it's called from anywhere - same for protocol.pyc >> >> Similarly it looks like messaging.xml, transport.xml, security.xml are >> only called from protocol.py and I can't see anywhere transactions.xml is >> referenced? >> >> I guess it's possible that these are referenced via dynamically >> constructed names that I can't see by grepping. >> >> >> Curious to know if they are there for a reason or are currently redundant. >> >> (This is me looking in trunk ) >> >> cheers, >> Frase >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.**org >> For additional commands, e-mail: users-help@qpid.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org