Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.061 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'renaming': 0.16; 'tying': 0.16; 'mon,': 0.16; 'jan': 0.18; 'changes': 0.20; 'file.': 0.20; 'lets': 0.22; 'least': 0.25; 'done.': 0.27; 'options': 0.27; 'fixed': 0.28; 'header:X-Complaints-To:1': 0.28; 'hash': 0.29; 'identifies': 0.29; '(and': 0.32; 'file': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'but': 0.36; 'method': 0.36; 'useful': 0.36; 'anything': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'page': 0.38; 'advice': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'your': 0.60; 'most': 0.61; 'identify': 0.61; 'free': 0.61; 'different': 0.63; 'more': 0.63; 'subject: & ': 0.67; '2013': 0.84; 'dennis': 0.91; 'tied': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Uniquely identifying each & every html template Date: Tue, 22 Jan 2013 16:08:57 -0500 Organization: > Bestiaria Support Staff < References: <5dd4babd-716d-4542-ad36-e6a841b73ec3@googlegroups.com> <03581a24-9330-4019-bde9-61a607000d3d@googlegroups.com> <187d77e0-e948-46bf-acc5-668c446cf3aa@googlegroups.com> <179d586e-1fa7-4b2e-8ef2-25b99bf46116@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-99-200.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358888956 news.xs4all.nl 6881 [2001:888:2000:d::a6]:37686 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37349 On Mon, 21 Jan 2013 22:49:31 -0800 (PST), Ferrous Cranus declaimed the following in gmane.comp.python.general: > You are right, it cannot be done. > > So i have 2 options . > > Either identify an .html file from its "filepath" or from its "hash". > > Which method do you advice me to utilize? The hash identifies based upon the file contents -- any edit to the file will result in a different hash (and if the hash system isn't large enough, you may even encounter collisions where two or more files have the same hash). However, moving or renaming the file should still produce the same hash. Path/name at least lets the file contents be edited. Anything that changes the path/name will be seen as a new file. Which condition is most useful to your needs: allowing free content edits while keeping the counter tied to the end URL; or tying the counter to a fixed page but letting the URL to that page change. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/