Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'subject:Python': 0.05; 'function,': 0.07; 'subject:help': 0.07; 'python': 0.09; 'cmd': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'skip:# 60': 0.09; 'sql,': 0.09; 'subject:2.7': 0.09; 'subject:Help': 0.10; 'def': 0.10; 'dec': 0.15; '........': 0.16; 'delimit': 0.16; 'left,': 0.16; 'modules,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:] [': 0.16; 'driver': 0.17; 'code,': 0.18; 'subject:] ': 0.19; 'load': 0.19; 'module': 0.19; 'skip:p 30': 0.20; 'class.': 0.23; 'question': 0.27; 'see,': 0.27; 'header:X-Complaints-To:1': 0.28; 'implies': 0.29; 'indentation': 0.29; 'piece': 0.29; 'skip:( 50': 0.29; 'class': 0.29; 'bus': 0.30; 'not.': 0.32; 'could': 0.32; 'builds': 0.33; 'traceback': 0.33; 'url:home': 0.33; 'handle': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'skip:d 20': 0.34; "can't": 0.34; 'received:org': 0.36; 'but': 0.36; 'modules': 0.36; 'method': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'subject: (': 0.36; 'execute': 0.37; 'level': 0.37; 'two': 0.37; 'uses': 0.37; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; "you've": 0.61; 'lower': 0.61; 'show': 0.63; 'dali': 0.84; 'transmits': 0.84; 'understand,': 0.84; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: [Help] [Newbie] Require help migrating from Perl to Python 2.7 (namespaces) Date: Mon, 24 Dec 2012 00:01:27 -0500 Organization: > Bestiaria Support Staff < References: <37264cd5-8acd-416b-a808-50216f9fbfa0@googlegroups.com> <3f14f739-e660-4883-a940-c77a6092cb79@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-179-0.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1356325298 news.xs4all.nl 6883 [2001:888:2000:d::a6]:49925 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35438 On Sun, 23 Dec 2012 13:42:14 -0800 (PST), prilisauer@googlemail.com declaimed the following in gmane.comp.python.general: > Okay, I try to publish this sample, and yes it's not a working piece of code, but I try to "draw" my problem that way. As you will see, I load modules, create cursor,... in the main.py. In the lower section you see, that the modules should execute sqls. In case It could occur that two queries occur at the same time. PS: IT IS NOT A QUESTION ABOUT SQL, etc. I do not understand, how I could handle the part which is marked with Problemsection1 and Problemsection2 > #Attach Dali Driver > Dali=HomeDaliServer.Startup() > # This is a "Sample" that builds 2byte Cmd and transmits it on bus > PowerOnLamp1=Dali.send(0,0,1,80) > > ############################################################### > HomeDaliServer.py > ........ > def send (self,DaliAdress,RequestType,Request,RequestValue): You've left out all the important stuff... Python uses indentation to delimit code... The above is fully to the left, which implies it is a MODULE level function, NOT a method in a CLASS. You also do not show us the "Startup()" code, so we can't tell if that is a class or not. You do not include a traceback of the error... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/