equal
deleted
inserted
replaced
175 def initial_load(self): |
175 def initial_load(self): |
176 """We detect a bit heuristically if we are built for the first time. |
176 """We detect a bit heuristically if we are built for the first time. |
177 or from subsequent calls by the form filter or by the pagination hooks. |
177 or from subsequent calls by the form filter or by the pagination hooks. |
178 """ |
178 """ |
179 form = self._cw.form |
179 form = self._cw.form |
180 return 'fromformfilter' not in form and '__start' not in form |
180 return 'fromformfilter' not in form and '__fromnavigation' not in form |
181 |
181 |
182 def render(self, w, **kwargs): |
182 def render(self, w, **kwargs): |
183 assert self.display_filter in (None, 'top', 'bottom'), self.display_filter |
183 assert self.display_filter in (None, 'top', 'bottom'), self.display_filter |
184 if self.needs_css: |
184 if self.needs_css: |
185 self._cw.add_css(self.needs_css) |
185 self._cw.add_css(self.needs_css) |