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 qtEaH/pdcl3BDAAAOr1fkg (envelope-from ) for ; Fri, 06 Sep 2019 15:24:10 +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=19BadFfu Received: from web6.sd.eurovps.com (web6.sd.eurovps.com [77.235.54.103]) by mail.toke.dk (Postfix) with ESMTPS id 57046662749 for ; Fri, 6 Sep 2019 15:24:08 +0200 (CEST) Received: from [::1] (port=43194 helo=web6.sd.eurovps.com) by web6.sd.eurovps.com with esmtp (Exim 4.92) (envelope-from ) id 1i6EDe-009kI8-MY; Fri, 06 Sep 2019 16:24:06 +0300 Received: from out-6.smtp.github.com ([192.30.252.197]:57621) by web6.sd.eurovps.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1i6EDW-009kCB-3d for flent-users@flent.org; Fri, 06 Sep 2019 16:24:03 +0300 Date: Fri, 06 Sep 2019 06:23:17 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1567776197; bh=4MDKGaFfV290C18KQn1T0NCrUTliU7wMeu7erJjeHXU=; h=Date:From:Reply-To:To:Cc:Subject:List-ID:List-Archive:List-Post: List-Unsubscribe:From; b=19BadFfuXYtym9x/lvhBAZlolWAz80xepb9kiy7tGJ7JeeCqxoAqyJC2EcA+cel7i C20HRQBIBdjCGq9VV0/qbKTjEwO1GGvAMh2raYS0aVE7iPqGOEno4rm3LbWahFlTmH 2a8d/uSZ4wZjsNxWgdpgN7a03KCbobrm1yeWyNJw= From: Pete Heist To: tohojo/flent Message-ID: Mime-Version: 1.0 Precedence: list X-GitHub-Sender: heistp X-GitHub-Recipient: flent-users X-GitHub-Reason: subscribed X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: flent-users@flent.org Subject: [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: Subscribed Content-Type: multipart/mixed; boundary="===============6660735599608105600==" 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 --===============6660735599608105600== Content-Type: multipart/alternative; boundary="--==_mimepart_5d725dc536bbf_65b3fc4be8cd9681419c9"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_5d725dc536bbf_65b3fc4be8cd9681419c9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Currently, the output filenames for batches always include `batch_time`: ``` def gen_filename(self, settings, batch, argset, rep): filename = "batch-%s-%s-%s" % ( settings.BATCH_NAME, batch['batch_time'], batch.get('filename_extra', "%s-%s" % (argset, rep)) ) return clean_path(filename) ``` On one hand, this ensures that output filenames are unique, but on the other hand, one can't create stable links to the output filenames that don't change between runs, for example in a static HTML or markdown file. What I could do is add a `filename_no_time` or similar parameter that if set to anything "truthy" (maybe if s in [ '1', 'true', 'yes' ]), excludes the time from the filename, then it's up to people to properly set `filename_extra`. Would you be ok if I do that, or do you have any other suggestions for this? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/tohojo/flent/issues/179 ----==_mimepart_5d725dc536bbf_65b3fc4be8cd9681419c9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Currently, the output filenames for batches always include batch_time:

    def gen_filename(self, settings, batch, argset, rep):
        filename = "batch-%s-%s-%s" % (
            settings.BATCH_NAME,
            batch['batch_time'],
            batch.get('filename_extra', "%s-%s" % (argset, rep))
        )
        return clean_path(filename)

On one hand, this ensures that output filenames are unique, but on the other hand, one can't create stable links to the output filenames that don't change between runs, for example in a static HTML or markdown file.

What I could do is add a filename_no_time or similar parameter that if set to anything "truthy" (maybe if s in [ '1', 'true', 'yes' ]), excludes the time from the filename, then it's up to people to properly set filename_extra.

Would you be ok if I do that, or do you have any other suggestions for this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5d725dc536bbf_65b3fc4be8cd9681419c9-- --===============6660735599608105600== 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 --===============6660735599608105600==--