Changeset 10535 for dotorg/trunk_fixed/docutils/docutils
- Timestamp:
- 02/04/2008 05:52:40 PM (10 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
dotorg/trunk_fixed/docutils/docutils/transforms/beps.py
r10307 r10535 33 33 default_priority = 360 34 34 35 # NOTE: There is no bep_base_url. The base of the BEP directory is specified with pep_base_url 36 # because changing this requires modifying the rst repository. This value can be changed with the pep-base-url 37 # argument. For now, I don't want to modify restructured text parsing code. It means we cannot currently 38 # disambiguate between peps and beps for specifying the base url. 35 39 bep_url = 'bep-%04d' 36 40 bep_cvs_url = ('https://svn.bittorrent.com/trac.cgi/browser/dotorg/trunk/html/beps/bep_%04d.rst') 37 //bep_cvs_url = ('http://svn.bittorrent.com/view/*checkout*'38 //'/peps/trunk/bep-%04d.txt')41 #bep_cvs_url = ('http://svn.bittorrent.com/view/*checkout*' 42 # '/peps/trunk/bep-%04d.txt') 39 43 rcs_keyword_substitutions = ( 40 44 (re.compile(r'\$' r'RCSfile: (.+),v \$$', re.IGNORECASE), r'\1'), … … 120 124 newbody.append(nodes.reference( 121 125 refbep, refbep, 122 refuri=(self.document.settings. bep_base_url126 refuri=(self.document.settings.pep_base_url 123 127 + self.bep_url % bepno))) 124 128 newbody.append(space) … … 131 135 elif name == 'content-type': 132 136 bep_type = para.astext() 133 uri = self.document.settings. bep_base_url + self.bep_url % 12137 uri = self.document.settings.pep_base_url + self.bep_url % 12 134 138 para[:] = [nodes.reference('', bep_type, refuri=uri)] 135 139 elif name == 'version' and len(body): … … 269 273 try: 270 274 bep = int(text) 271 ref = (self.document.settings. bep_base_url275 ref = (self.document.settings.pep_base_url 272 276 + self.bep_url % bep) 273 277 p[0] = nodes.reference(text, text, refuri=ref)