summaryrefslogtreecommitdiff
path: root/sphinx/directives
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-17 19:46:47 +0100
committerGeorg Brandl <georg@python.org>2010-01-17 19:46:47 +0100
commitebd20216bec36fb606c88faa0706e53bdeffc99f (patch)
tree8e36cb6eb055def6dfddf516cf6ef32a141e4285 /sphinx/directives
parent06ac8761db28cae55965b2c177ed77cbea1e817a (diff)
downloadsphinx-ebd20216bec36fb606c88faa0706e53bdeffc99f.tar.gz
Rename doc_read_data to temp_data, which reflects better what it does.
Diffstat (limited to 'sphinx/directives')
-rw-r--r--sphinx/directives/__init__.py6
-rw-r--r--sphinx/directives/other.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/directives/__init__.py b/sphinx/directives/__init__.py
index 134aaf54..41b1357c 100644
--- a/sphinx/directives/__init__.py
+++ b/sphinx/directives/__init__.py
@@ -132,12 +132,12 @@ class ObjectDescription(Directive):
node.append(contentnode)
if self.names:
# needed for association of version{added,changed} directives
- self.env.doc_read_data['object'] = self.names[0]
+ self.env.temp_data['object'] = self.names[0]
self.before_content()
self.state.nested_parse(self.content, self.content_offset, contentnode)
#self.handle_doc_fields(contentnode)
DocFieldTransformer(self).transform_all(contentnode)
- self.env.doc_read_data['object'] = None
+ self.env.temp_data['object'] = None
self.after_content()
return [self.indexnode, node]
@@ -159,7 +159,7 @@ class DefaultDomain(Directive):
def run(self):
env = self.state.document.settings.env
domain_name = self.arguments[0]
- env.doc_read_data['default_domain'] = env.domains.get(domain_name)
+ env.temp_data['default_domain'] = env.domains.get(domain_name)
directives.register_directive('default-domain', DefaultDomain)
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py
index ef23a32d..c71f9afe 100644
--- a/sphinx/directives/other.py
+++ b/sphinx/directives/other.py
@@ -212,10 +212,10 @@ class VersionChange(Directive):
ret = [node]
env = self.state.document.settings.env
env.versionchanges.setdefault(node['version'], []).append(
- (node['type'], env.doc_read_data['docname'], self.lineno,
+ (node['type'], env.temp_data['docname'], self.lineno,
# XXX: python domain specific
- env.doc_read_data.get('py:module'),
- env.doc_read_data.get('object'),
+ env.temp_data.get('py:module'),
+ env.temp_data.get('object'),
node.astext()))
return ret