Home | History | Annotate | Download | only in markdown

Lines Matching full:location

122     def index_for_location(self, location):
123 """ Return index or None for a given location. """
124 if location == '_begin':
126 elif location == '_end':
128 elif location.startswith('<') or location.startswith('>'):
129 i = self.index(location[1:])
130 if location.startswith('>'):
137 raise ValueError('Not a valid location: "%s". Location key '
138 'must start with a ">" or "<".' % location)
141 def add(self, key, value, location):
142 """ Insert by key location. """
143 i = self.index_for_location(location)
149 def link(self, key, location):
150 """ Change location of an existing item. """
153 i = self.index_for_location(location)