From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 386EF1381F3 for ; Fri, 16 Aug 2013 10:43:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CA4F1E0CF8; Fri, 16 Aug 2013 10:43:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70859E0CF8 for ; Fri, 16 Aug 2013 10:43:13 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C06F33ECB2 for ; Fri, 16 Aug 2013 10:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id CC4A7E468F for ; Fri, 16 Aug 2013 10:43:10 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1376648338.818bfa863c7da84c37fc45871c84c5dbe67ac9af.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/argparser.py X-VCS-Directories: roverlay/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 818bfa863c7da84c37fc45871c84c5dbe67ac9af X-VCS-Branch: master Date: Fri, 16 Aug 2013 10:43:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 887289da-1012-46f4-812c-afaeacb814fd X-Archives-Hash: 8cf3221ac92f69dcf0069bbbcfe5ac59 commit: 818bfa863c7da84c37fc45871c84c5dbe67ac9af Author: André Erdmann mailerd de> AuthorDate: Fri Aug 16 10:18:58 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Aug 16 10:18:58 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=818bfa86 roverlay/argparser, status scritp: add 'html' mode Similar to the 'cgi' mode, but doesn't print the "Content-Type: ..." header. --- roverlay/argparser.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roverlay/argparser.py b/roverlay/argparser.py index a01d1c9..7b7d9e9 100644 --- a/roverlay/argparser.py +++ b/roverlay/argparser.py @@ -544,7 +544,7 @@ class RoverlayStatusArgumentParser ( RoverlayArgumentParser ): } DEFAULT_COMMAND = 'status' - MODES = frozenset ({ 'cgi', 'cli' }) + MODES = ( 'cli', 'cgi', 'html', ) DEFAULT_MODE = 'cli' def setup_script_mode ( self ): @@ -588,11 +588,18 @@ class RoverlayStatusArgumentParser ( RoverlayArgumentParser ): ) arg ( - '--cgi-content-type', dest='cgi_content_type', default="text/html", + '-T', '--cgi-content-type', dest='cgi_content_type', + default="text/html", flags=self.ARG_WITH_DEFAULT, metavar='', help='cgi content type', ) +## arg ( +## '-o', '--template-options', dest='template_options', +## metavar='