Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16543

Re: Passing along cmd.Cmd completion to contained class

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news-transit.tcx.org.uk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <miki.tebeka@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'reply- to:addr:comp.lang.python': 0.09; 'state)': 0.09; 'to:addr:comp.lang.python': 0.09; 'def': 0.13; 'from:addr:miki.tebeka': 0.16; 'from:name:miki tebeka': 0.16; 'cc:addr:python-list': 0.16; 'maybe': 0.21; 'header:In-Reply- To:1': 0.22; 'cc:2**0': 0.24; 'received:209.85.220': 0.27; 'cc:addr:python.org': 0.29; 'header:User-Agent:1': 0.33; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'reply-to:addr:googlegroups.com': 0.74
Newsgroups comp.lang.python
Date Fri, 2 Dec 2011 07:01:40 -0800 (PST)
In-Reply-To <mailman.3214.1322798548.27778.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=75.84.253.172; posting-account=uo-8fwoAAACKsFzFX78JHudx1V7WDXZ0
References <mailman.3214.1322798548.27778.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
MIME-Version 1.0
Subject Re: Passing along cmd.Cmd completion to contained class
From Miki Tebeka <miki.tebeka@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc Python <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To comp.lang.python@googlegroups.com
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.3222.1322838104.27778.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1322838104 news.xs4all.nl 6854 [2001:888:2000:d::a6]:40885
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:16543

Show key headers only | View raw


This is not tested, but maybe it'll work :)

def complete(self, text, state):
    if text.startswith('config):
        return self.config.complete(text, state)
    return Cmd.complete(self, text, state)

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Passing along cmd.Cmd completion to contained class Tim Chase <python.list@tim.thechases.com> - 2011-12-01 22:02 -0600
  Re: Passing along cmd.Cmd completion to contained class Miki Tebeka <miki.tebeka@gmail.com> - 2011-12-02 07:01 -0800
  Re: Passing along cmd.Cmd completion to contained class Miki Tebeka <miki.tebeka@gmail.com> - 2011-12-02 07:01 -0800

csiph-web