tx
18 years agoMissing Decimal import.
Frederic Jolliton [Sat, 10 Sep 2005 23:41:19 +0000 (23:41 +0000)]
Missing Decimal import.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-17

18 years agoSequence can now be compared with a single item.
Frederic Jolliton [Sat, 10 Sep 2005 23:40:22 +0000 (23:40 +0000)]
Sequence can now be compared with a single item.

 * Update Sequence's __eq__ operator to allow comparison with a single
   item (in which case, True is returned if Sequence is of length 1 and
   its only item is equal to the specified item.)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-16

18 years agoAdded 'parse' function to XPath prompt.
Frederic Jolliton [Sat, 10 Sep 2005 23:28:27 +0000 (23:28 +0000)]
Added 'parse' function to XPath prompt.

 * Added 'parse' function that can parse a HTML (or XML) document and
   return the corresponding document.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-15

18 years agoTags now allow nested tuple/list, including iterators, to create nodes.
Frederic Jolliton [Sat, 10 Sep 2005 23:26:48 +0000 (23:26 +0000)]
Tags now allow nested tuple/list, including iterators, to create nodes.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-14

18 years agoEnhanced encoding detection when parsing HTML (or XML) document.
Frederic Jolliton [Thu, 8 Sep 2005 03:16:59 +0000 (03:16 +0000)]
Enhanced encoding detection when parsing HTML (or XML) document.

 * Enchanced encoding detection algorithm, to check BOM, XML declaration
   and "http-equiv" meta element. Moved to misc module.

 * Fixed bug in guessXmlCharacterEncoding when passing an Unicode string
   (skip offset was missing from the return value.)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-13

18 years agoEnsure wrappers function name are set with a non-unicode string.
Frederic Jolliton [Wed, 7 Sep 2005 23:25:14 +0000 (23:25 +0000)]
Ensure wrappers function name are set with a non-unicode string.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-12

18 years agoFixed prompt to correctly handle 8bits input.
Frederic Jolliton [Wed, 7 Sep 2005 23:22:47 +0000 (23:22 +0000)]
Fixed prompt to correctly handle 8bits input.

 * Fixed prompt to correctly handle 8bits input, such as when using
   Unicode terminal.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-11

18 years agoAdded fn:contains and fn:ends-with. Optimized fn:starts-with.
Frederic Jolliton [Wed, 7 Sep 2005 23:20:23 +0000 (23:20 +0000)]
Added fn:contains and fn:ends-with. Optimized fn:starts-with.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-10

18 years agoAdded fn:starts-with function.
Frederic Jolliton [Wed, 7 Sep 2005 21:45:23 +0000 (21:45 +0000)]
Added fn:starts-with function.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-9

18 years agoFixed attribute parsing to tolerate more bad stuff (from Google..)
Frederic Jolliton [Wed, 7 Sep 2005 21:44:20 +0000 (21:44 +0000)]
Fixed attribute parsing to tolerate more bad stuff (from Google..)

 * Fixed attribute parsing to tolerate some bad formated value
   (such as those who contains '=' character without even being
   quoted properly.)

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-8

18 years agoHandle ^C from prompt.
Frederic Jolliton [Wed, 7 Sep 2005 16:31:10 +0000 (16:31 +0000)]
Handle ^C from prompt.

git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-7

18 years agoFixed <script>/<style> element parsing.
Frederic Jolliton [Wed, 7 Sep 2005 16:27:51 +0000 (16:27 +0000)]
Fixed <script>/<style> element parsing.

 * Fixed HTML parser to wait correct ending tag for <script> and <style>
   element (previously we were stopping at the first "</" found.)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-6

18 years agotx-prompt: Fake UserAgent by default + allow to change UserAgent at runtime.
Frederic Jolliton [Wed, 7 Sep 2005 15:53:11 +0000 (15:53 +0000)]
tx-prompt: Fake UserAgent by default + allow to change UserAgent at runtime.

 * Default UserAgent (so that testing with Google and some other sites
   works.)

 * Allow to change UserAgent at runtime by updating $ua variable.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-5

18 years agoUpdated install script to generate symbolic link.
Frederic Jolliton [Wed, 7 Sep 2005 15:46:30 +0000 (15:46 +0000)]
Updated install script to generate symbolic link.

 * Updated install script to generate symbolic link when specified in
   install_conf.py.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-4

18 years agoFixed HTML parsing when several attributes have the same name.
Frederic Jolliton [Wed, 7 Sep 2005 15:45:19 +0000 (15:45 +0000)]
Fixed HTML parsing when several attributes have the same name.

 * Fixed HTML parsing by allowing several attributes with same name.
   Only the first of such set is kept.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-3

18 years agoFix attributes with no value following '='.
Frederic Jolliton [Wed, 7 Sep 2005 15:43:05 +0000 (15:43 +0000)]
Fix attributes with no value following '='.

 * Fixed attributes parsing by allowing empty value after =.
   We return '' (empty string) instead of None previously.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-2

18 years agoFix optimization when looking for attributes with any name ('*').
Frederic Jolliton [Wed, 7 Sep 2005 13:52:06 +0000 (13:52 +0000)]
Fix optimization when looking for attributes with any name ('*').

 * Fixed extDescendantAttribute function to handle correctly attribute
   name '*'.
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--patch-1

18 years agoinitial import frederic@jolliton.com--2005-main,tx--main--0.1--base-0
Frederic Jolliton [Wed, 7 Sep 2005 13:23:34 +0000 (13:23 +0000)]
initial import

(automatically generated log message)
git-archimport-id: frederic@jolliton.com--2005-main/tx--main--0.1--base-0