From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.toke.dk X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from mail.toke.dk by mail.toke.dk with LMTP id gHlqBWFycl2FRgAAOr1fkg (envelope-from ) for ; Fri, 06 Sep 2019 16:51:13 +0200 Authentication-Results: mail.toke.dk; none (SPF check N/A for local connections - client-ip=77.235.54.103; helo=web6.sd.eurovps.com; envelope-from=flent-users-bounces@flent.org; receiver=) Authentication-Results: mail.toke.dk; dkim=fail reason="signature verification failed" (1024-bit key) header.d=github.com header.i=@github.com header.b=uIXXP3yM Received: from web6.sd.eurovps.com (web6.sd.eurovps.com [77.235.54.103]) by mail.toke.dk (Postfix) with ESMTPS id 0D5206627E7 for ; Fri, 6 Sep 2019 16:51:13 +0200 (CEST) Received: from [::1] (port=48040 helo=web6.sd.eurovps.com) by web6.sd.eurovps.com with esmtp (Exim 4.92) (envelope-from ) id 1i6FZw-009uw8-6D; Fri, 06 Sep 2019 17:51:12 +0300 Received: from out-3.smtp.github.com ([192.30.252.194]:53863) by web6.sd.eurovps.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i6FZp-009uq1-IM for flent-users@flent.org; Fri, 06 Sep 2019 17:51:11 +0300 Date: Fri, 06 Sep 2019 07:50:25 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1567781425; bh=VIvOpdpfXNARGq+Plidzoq/4FDvs4sYR6sw7frTecTc=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=uIXXP3yM1H4v3Oy8uEEcwbQcWsFbazvdOTlU9hFjsmwFUZIq64fQXsyNj1sdfh/Kx OUmIssLNt00YxurEwZ8d91HJBcga6j7w03T4Hn3a9js/f7+h6orywFa0NUzKZQ789y Zj/5lAr2zG3Lbd5UCjyRhQS7mdPK2rMsr7IICkbo= From: =?UTF-8?B?RGF2ZSBUw6RodA==?= To: tohojo/flent Message-ID: In-Reply-To: References: Mime-Version: 1.0 Precedence: list X-GitHub-Sender: dtaht X-GitHub-Recipient: flent-users X-GitHub-Reason: comment X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: flent-users@flent.org Subject: Re: [Flent-users] [tohojo/flent] Stable output filenames for batch runs (#179) X-BeenThere: flent-users@flent.org X-Mailman-Version: 2.1.27 List-Id: Flent discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: tohojo/flent Cc: Comment , flent-users Content-Type: multipart/mixed; boundary="===============0158408936251849004==" Errors-To: flent-users-bounces@flent.org Sender: "Flent-users" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - web6.sd.eurovps.com X-AntiAbuse: Original Domain - toke.dk X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - flent.org X-Get-Message-Sender-Via: web6.sd.eurovps.com: acl_c_authenticated_local_user: mailman/mailman X-Authenticated-Sender: web6.sd.eurovps.com: mailman@flent.org --===============0158408936251849004== Content-Type: multipart/alternative; boundary="--==_mimepart_5d72723114252_68103fa9c22cd96c10894c"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_5d72723114252_68103fa9c22cd96c10894c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pete Heist writes:=0D =0D > Currently, the output filenames for batches always include batch_time:=0D= >=0D > def gen_filename(self, settings, batch, argset, rep):=0D > filename =3D "batch-%s-%s-%s" % (=0D > settings.BATCH_NAME,=0D > batch['batch_time'],=0D > batch.get('filename_extra', "%s-%s" % (argset, rep))=0D > )=0D > return clean_path(filename)=0D >=0D > On one hand, this ensures that output filenames are unique, but on the=0D= > other hand, one can't create stable links to the output filenames that=0D= > don't change between runs, for example in a static HTML or markdown=0D > file.=0D >=0D > What I could do is add a filename_no_time or similar parameter that if=0D= > set to anything "truthy" (maybe if s in [ '1', 'true', 'yes' ]),=0D > excludes the time from the filename, then it's up to people to=0D > properly set filename_extra.=0D >=0D > Would you be ok if I do that, or do you have any other suggestions for=0D= > this?=0D =0D --no-time=0D =0D >=0D > =E2=80=94=0D > You are receiving this because you are subscribed to this thread.=0D > Reply to this email directly, view it on GitHub, or mute the thread.=0D= =0D =0D -- =0D You are receiving this because you commented.=0D Reply to this email directly or view it on GitHub:=0D https://github.com/tohojo/flent/issues/179#issuecomment-528885668= ----==_mimepart_5d72723114252_68103fa9c22cd96c10894c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pete Heist <notifications@github.com> writes:
=0D
=0D > Currently, the output filenames for batches always include batch_tim= e:
=0D >
=0D > def gen_filename(self, settings, batch, argset, rep):
=0D > filename =3D "batch-%s-%s-%s" % (
=0D > settings.BATCH_NAME,
=0D > batch['batch_time'],
=0D > batch.get('filename_extra', "%s-%s" % = (argset, rep))
=0D > )
=0D > return clean_path(filename)
=0D >
=0D > On one hand, this ensures that output filenames are unique, but on t= he
=0D > other hand, one can't create stable links to the output filename= s that
=0D > don't change between runs, for example in a static HTML or markd= own
=0D > file.
=0D >
=0D > What I could do is add a filename_no_time or similar parameter that = if
=0D > set to anything "truthy" (maybe if s in [ '1', = 9;true', 'yes' ]),
=0D > excludes the time from the filename, then it's up to people to=0D > properly set filename_extra.
=0D >
=0D > Would you be ok if I do that, or do you have any other suggestions f= or
=0D > this?
=0D
=0D --no-time
=0D
=0D >
=0D > =E2=80=94
=0D > You are receiving this because you are subscribed to this thread.=0D > Reply to this email directly, view it on GitHub, or mute the thread.=
=0D =0D =0D

&m= dash;
You are receiving this because you commented.
Reply to th= is email directly, view it on GitHub, or mute the thread.3D""

=0D = ----==_mimepart_5d72723114252_68103fa9c22cd96c10894c-- --===============0158408936251849004== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Flent-users mailing list Flent-users@flent.org http://flent.org/mailman/listinfo/flent-users_flent.org --===============0158408936251849004==--