Return-Path: Delivered-To: apmail-incubator-libcloud-archive@minotaur.apache.org Received: (qmail 312 invoked from network); 15 Dec 2009 23:08:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Dec 2009 23:08:32 -0000 Received: (qmail 77368 invoked by uid 500); 15 Dec 2009 23:08:32 -0000 Delivered-To: apmail-incubator-libcloud-archive@incubator.apache.org Received: (qmail 77333 invoked by uid 500); 15 Dec 2009 23:08:32 -0000 Mailing-List: contact libcloud-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: libcloud@incubator.apache.org Delivered-To: mailing list libcloud@incubator.apache.org Received: (qmail 77321 invoked by uid 99); 15 Dec 2009 23:08:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 23:08:32 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ianbicking@gmail.com designates 209.85.218.210 as permitted sender) Received: from [209.85.218.210] (HELO mail-bw0-f210.google.com) (209.85.218.210) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2009 23:08:29 +0000 Received: by bwz2 with SMTP id 2so379469bwz.20 for ; Tue, 15 Dec 2009 15:08:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=14kTbWFGnYW/p9L9mUkRN/l1MME6vikfLLml/SsEKig=; b=fjWZBtlYzztS+Lm2AraX3hHkdaeUm1QvgaG1ACKzmZocQzt4QS1PSR1akCJdPLO6pB PsFZbQSW/QY6y8+1/J+quQ33iXEN7syYy6xeFL9nH9wFXC52TPE6nbgnLgyhKDSmbkwr SDmVipqbFB1zNUKOwd+EXhS6In2iPYAvuA+zI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=K+BjFDd0zq3ftil4RkmWmuAoiMaCMzHGM2SEaqnniEp9k2bRpFk5oER5ifipZNLZtX X6zKjxTe+zorVLzltWOND5R66LK2gxGpFfSZgmCGyMOSEQpU/HJynqHV6keQ9C8Ywjqi DmDMNrPpebREJa2vQBT3NhLhrE/Kc5+Rbdfn4= MIME-Version: 1.0 Received: by 10.204.27.14 with SMTP id g14mr99784bkc.127.1260918488223; Tue, 15 Dec 2009 15:08:08 -0800 (PST) In-Reply-To: <4239a4320912151444n1be2ca1fx267eb5ffa7297964@mail.gmail.com> References: <726bb13d0912151311l14face75ofcb03b1f0c273ac0@mail.gmail.com> <4239a4320912151444n1be2ca1fx267eb5ffa7297964@mail.gmail.com> From: Ian Bicking Date: Tue, 15 Dec 2009 17:07:48 -0600 Message-ID: To: libcloud@incubator.apache.org Content-Type: multipart/alternative; boundary=000325557b2294d00b047acc7694 Subject: Re: [libcloud] Proposal: remove zope interfaces from libcloud. --000325557b2294d00b047acc7694 Content-Type: text/plain; charset=UTF-8 On Tue, Dec 15, 2009 at 4:44 PM, Paul Querna wrote: > > Second, you could have a simple reflection API, like: > > > > def drivers(): > > """Returns a list of drivers (by name)""" > > return [ > > os.path.splitext(name)[0] > > for name in os.listdir(os.path.join(os.path.dirname(__file__), > > 'drivers'))) > > if name.endswith('.py') and name != '__init__.py'] > > > Would this interface work on google app engine or similiar > enviroments? I ddin't think things like os.listdir etc would be > expected to work? > It will work fine; you can read files on app engine, you just can't write them. Any environment that supports templates will support these kind of operations, as templates are often shipped similar to this. -- Ian Bicking | http://blog.ianbicking.org | http://topplabs.org/civichacker --000325557b2294d00b047acc7694--