- 23 Mar, 2001 6 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
trigger it (other errors are not caught). TALESError() takes up to three args: msg, position, info, where msg is the message string, position is a (lineno, offset) tuple, and info is the exception info tuple (type, value, traceback) from sys.exc_info(). Both default to tuples with all None values. You can choose to subclass this exception of course. - Require explicit </endtag> for <starttags> that have TAL or METAL attributes. (Note that this detected a bug in the first example on http://dev.zope.org/Wikis/DevSite/Projects/ZPT/RenderErrorHandlingStrategies; the <span> wasn't closed.
-
Chris McDonough authored
-
Guido van Rossum authored
exception+traceback around. This is raised by evaluate(). Fix evaluate() to support string:, path:, not:, and exists:. For compatibility it still recognizes str: as an alias for string:, and var:, global: and local: as aliases for path:.
-
Evan Simpson authored
-
- 22 Mar, 2001 12 commits
-
-
Evan Simpson authored
-
Chris McDonough authored
-
Chris McDonough authored
-
Chris McDonough authored
-
Evan Simpson authored
-
Evan Simpson authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
goahead(). This rejects most invalid constructs: a lone & or < without proper syntax following it is now an error. Even at EOF.
-
Guido van Rossum authored
-
Chris McDonough authored
Added logic to use the value of 'textindex_operator' as passed in the request to determine which query operator to use (and, near, andnot, or). Valid values to pass in to textindex_operator are 'and', 'or', 'near', and 'andnot' (capitalization is ignored). This is a near-term workaround for the inability to specify a default text index query operator on a per-index basis. It provides the ability to override the currently module-defined default 'Or' operator for textindexes on a per-search basis. An example of the utility of textindex_operator used with a ZCatalog instance: zcatalog.searchResults(PrincipiaSearchSource='foo', textindex_operator='and')
-
Karl Anderson authored
-
- 21 Mar, 2001 19 commits
-
-
Guido van Rossum authored
these are really complaints about the intgrity of our own code. HTMLParseError should be raised only for invalid input. (Should we turn more unrecognized constructs into exceptions, e.g. '&' not followed by an entity or character reference?) Also added an 'r' prefix to a regex string containing a backslash.
-
Guido van Rossum authored
- NestingError derives from HTMLParseError, and is hence simplified. - Thread the input position through all the code generation routines; all compile-time exceptions now possess lineno and offset. - Restructured the code that inserts implied end-tags, and made it generate output that is the same as the input more often. This was the hardest to get right, and I expect to be working more on it.
-
Chris McDonough authored
-
Guido van Rossum authored
<foo></foo>. (This fails until the next checkins.)
-
Guido van Rossum authored
Add test for finish_startendtag(). Style nits: Add blank lines between class header and first method definition. Move _parse_error() to earlier in the class.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
as that of TALError. Add finish_startendtag(), which works like finish_starttag() but is called instead of that for tags of the form <foo.../>. The default implementation simply calls finish_starttag(), so the interface is still compatible. Changed comments indicating that finish_*tag() are Overridable methods. Got rid of the documented and implemented return value of finish_starttag() -- it wasn't used.
-
Jim Fulton authored
2.2. Unfortunately, there are old products (Confera) that depend on it. One brokenness is that this module depends on 'query' from Lexicon that isn't there anymore. Worse, the new 'query' in UnTextIndex is not compatible. I've copied the old 'query' from an old version of Lexicon here to try to make things better.
-
Jim Fulton authored
It should really be possible to pass in special word characters.
-
Jim Fulton authored
depends on a pre-catalog architecture and the post-catalog architecture isn't fully cooked. To get positions, we need to either store the positions during indexing, which is way too expensive, or we need to be able to get to the original text when searching, which we can't do. For now we'll return something bogus, which will make 'near' searches behave effectively as 'and' searches.
-
Jim Fulton authored
-
Chris McDonough authored
-
Chris McDonough authored
-
- 20 Mar, 2001 3 commits
-
-
Amos Latteier authored
-
Amos Latteier authored
-
Amos Latteier authored
-