/bzr-feed

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/bzr-feed/

« back to all changes in this revision

Viewing changes to bzr-feed.py

  • Committer: Jacques Distler
  • Date: 2007-03-11 19:05:13 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: distler@golem.ph.utexas.edu-20070311190513-7vipsm9mkpvmta3x
This is a better URL scheme.

Show diffs side-by-side

added added

removed removed

32
32
        print "  <title>" + self._e(self.branch._get_nick()) + "</title>"
33
33
        print "  <id>" + self._e(self.feedid) + "</id>"
34
34
        print "  <link href='" + self._e(self.baseuri) + "/'/>"
35
 
        print "  <link rel='self' type='application/atom+xml' href='" + self._e(self.baseuri) + "/" + os.path.basename(os.environ['REQUEST_URI']) + "'/>"
 
35
#        print "  <link rel='self' type='application/atom+xml' href='" + self._e(self.baseuri) + "/" + os.path.basename(os.environ['REQUEST_URI']) + "'/>"
 
36
        print "  <link rel='self' type='application/atom+xml' href='"  + os.environ['REQUEST_URI'] + "'/>"
36
37
        print "  <updated>" + self._e(time.strftime("%Y-%m-%dT%H:%M:%SZ",time.gmtime(updated))) + "</updated>"
37
38
 
38
39
    def __del__(self):
116
117
if os.path.basename(os.path.dirname(os.environ['REQUEST_URI'])) == dir:
117
118
    baseuri += os.path.dirname(os.environ['REQUEST_URI'])
118
119
else:
119
 
    baseuri += re.sub(r'/\w+\.\w+$', '', os.environ['REQUEST_URI'])
 
120
    baseuri += re.sub(r'\.\w+$', '', os.environ['REQUEST_URI'])
120
121
 
121
122
if os.environ.get('SCRIPT_NAME',None):
122
123
    print "Last-Modified: " + time.ctime(last_rev.timestamp) + " GMT"