Development: 4Suite/Ft/Lib/Uri.py
Default branch: MAIN
Bookmark a link to HEAD:
(view)
(download)
(as text)
Revision 1.109
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Mar 22 18:07:58 2008 UTC (23 months, 4 weeks ago) by jkloth
Branch:
MAIN
CVS Tags:
HEAD
Changes since 1.108: +5 -7 lines
Diff to previous 1.108
Minor optimization
Revision 1.108
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Oct 23 19:34:35 2006 UTC (3 years, 4 months ago) by jkloth
Branch:
MAIN
Branch point for:
XPATH_OPTIMIZATIONS-branch
Changes since 1.107: +3 -2
lines
Diff to previous 1.107
Merged from maintenance branch (hopefully for the last time)
Revision 1.106.2.1
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Oct 22 04:20:36 2006 UTC (3 years, 4 months ago) by jkloth
Branch:
XML1_0-maint
CVS Tags:
XML1_0-maint-merge,
XML1_0_1,
XML1_0_2
Changes since 1.106: +2 -3
lines
Diff to previous 1.106
, to next main 1.107
Work around bug in setuptools' sandboxing for easy_install.
Revision 1.107
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Aug 30 18:54:42 2006 UTC (3 years, 6 months ago) by jkloth
Branch:
MAIN
Changes since 1.106: +16 -13
lines
Diff to previous 1.106
Wrap local files the same as urllib to make the return value consistent
Revision 1.106
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Aug 11 15:53:47 2006 UTC (3 years, 7 months ago) by jkloth
Branch:
MAIN
CVS Tags:
R1_0,
XML1_0rc2,
XML1_0rc3,
XML1_0rc4
Branch point for:
XML1_0-maint
Changes since 1.105: +98 -8
lines
Diff to previous 1.105
Added support for data URLs
Added support for custom pep302 psuedo-URL
Revision 1.105
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Jun 24 07:12:44 2006 UTC (3 years, 8 months ago) by jclark
Branch:
MAIN
Changes since 1.104: +66 -54
lines
Diff to previous 1.104
Enhancements to make Ft.Lib.Uri.Relativize more robust when dealing with URIs having mid-path empty segments. Also includes additional test cases covering such cases.
Revision 1.104
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Feb 2 00:11:53 2006 UTC (4 years, 1 month ago) by jkloth
Branch:
MAIN
CVS Tags:
EASYINSTALL-prebranch,
R1_0b6
Branch point for:
EASYINSTALL-branch
Changes since 1.103: +6 -17
lines
Diff to previous 1.103
Switched to using urllib2.urlopen for retrieving URI content.
Revision 1.103
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Dec 14 01:21:01 2005 UTC (4 years, 3 months ago) by jclark
Branch:
MAIN
Changes since 1.102: +72 -9
lines
Diff to previous 1.102
Make `Relativize` return relative references in a significantly larger set of cases, and allow it to still return restricted relative references with the `subPathOnly` argument.
Revision 1.102
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Dec 11 20:36:55 2005 UTC (4 years, 3 months ago) by jclark
Branch:
MAIN
CVS Tags:
XML1_0b3
Changes since 1.101: +8 -7
lines
Diff to previous 1.101
Add `Relativize` to __all__ so that it will be incorporated into the autodox, and make the docstring more reST-friendly.
Revision 1.101
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Dec 11 20:13:34 2005 UTC (4 years, 3 months ago) by jclark
Branch:
MAIN
Changes since 1.100: +42 -1
lines
Diff to previous 1.100
Implementation and testing for Ft.Lib.Uri.Relativize, a method to produce context-sensitive relative references from absolute URIs. Also included is one minor doc fix.
Revision 1.100
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Apr 30 04:20:58 2005 UTC (4 years, 10 months ago) by mbrown
Branch:
MAIN
CVS Tags:
XML1_0b2
Changes since 1.99: +10 -9
lines
Diff to previous 1.99
removed 2 unused productions from URI grammar in regex setup;
in UriToOsPath, added encoding support that was mentioned in doc string but not implemented.
Revision 1.99
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Apr 14 18:51:23 2005 UTC (4 years, 11 months ago) by jkloth
Branch:
MAIN
CVS Tags:
R1_0b1
Changes since 1.98: +5 -5
lines
Diff to previous 1.98
Fixes for emacs python mode syntax highlighting
Revision 1.98
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Apr 6 23:12:39 2005 UTC (4 years, 11 months ago) by jkloth
Branch:
MAIN
Changes since 1.97: +11 -6
lines
Diff to previous 1.97
OPTIMIZATION: prevent unnecessary function call overhead
Revision 1.97
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Mar 26 18:50:52 2005 UTC (4 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.96: +3 -3
lines
Diff to previous 1.96
typo fix for prev checkin
Revision 1.96
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Mar 26 06:11:22 2005 UTC (4 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.95: +9 -1
lines
Diff to previous 1.95
added comment explaining an implementation detail that apparently misleads some people to think,
despite an abundance of API documentation to the contrary, that Latin-1 based interpretation of
percent-encoded octets has been hard-coded into the PercentDecode() implementation
Revision 1.95
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Mar 13 09:43:50 2005 UTC (5 years ago) by mbrown
Branch:
MAIN
Changes since 1.94: +7 -6
lines
Diff to previous 1.94
propagate OsPathToUri and UriToOsPath attemptAbsolute changes begun
by Uche, so repo inits will work again
Revision 1.94
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Mar 8 21:35:20 2005 UTC (5 years ago) by mbrown
Branch:
MAIN
Changes since 1.93: +12 -14
lines
Diff to previous 1.93
Python unicode literals are stored in bytecode as UTF-8. Prior to Py 2.3,
the UTF-8 codec would raise an exception if it found an unpaired surrogate,
thus causing an error when a compiled module is imported, if that module
contains a unicode literal like "u'\udc00'" by itself. MvL explained the
situation and offered a workaround on python-list [1], and I have implemented
a variation of it here.
[1] http://mail.python.org/pipermail/python-list/2005-March/269948.html
Revision 1.93
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Mar 7 05:58:11 2005 UTC (5 years ago) by uogbuji
Branch:
MAIN
Changes since 1.92: +25 -24
lines
Diff to previous 1.92
Make attemptAbsolute the default in Ft.Lib.Uri.OsPathToUri, etc. So that FileUrl can be deprecated
Fix test_meta_document.py and bug it uncovered
Revision 1.92
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Mar 6 08:32:32 2005 UTC (5 years ago) by mbrown
Branch:
MAIN
Changes since 1.91: +68 -23
lines
Diff to previous 1.91
PercentEncode() now uses a character iterator that is UCS-2/UCS-4 Python build-agnostic
Revision 1.91
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Mar 6 06:58:55 2005 UTC (5 years ago) by mbrown
Branch:
MAIN
Changes since 1.90: +13 -1
lines
Diff to previous 1.90
added methods to UriDict to support 'in' operator
Revision 1.90
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Mar 6 06:44:20 2005 UTC (5 years ago) by mbrown
Branch:
MAIN
Changes since 1.89: +88 -66
lines
Diff to previous 1.89
In MakeUrllibSafe(), raise helpful "IDNA unsupported" exception for Python 2.2;
Misc doc updates, including references to rfc2396bis -> RFC 3986;
1/0 -> True/False and other misc cleanup;
Added RFC 2396/2732 definitions of reserved, unreserved characters in comments for future ref/compatibility enhancements
Revision 1.89
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Jan 19 10:28:48 2005 UTC (5 years, 2 months ago) by mbrown
Branch:
MAIN
Changes since 1.88: +19 -7
lines
Diff to previous 1.88
added SplitFragment()
Revision 1.88
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Jan 7 06:28:10 2005 UTC (5 years, 2 months ago) by uogbuji
Branch:
MAIN
Changes since 1.87: +15 -1
lines
Diff to previous 1.87
Add new utility function Ft.Lib.Uri.FileUrl
RELAX NG framework improvements (and implement WXS ID and IDREF types)
Revision 1.87
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Dec 18 08:40:42 2004 UTC (5 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.86: +26 -26
lines
Diff to previous 1.86
citation of rfc2396bis "corrected"
Revision 1.86
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Oct 14 20:05:54 2004 UTC (5 years, 5 months ago) by mbrown
Branch:
MAIN
CVS Tags:
DRIVER_REFACTORING-prebranch,
R1_0a4
Branch point for:
SERVER_REFACTORING-branch
Changes since 1.85: +47 -26
lines
Diff to previous 1.85
corrections prev commit
Revision 1.85
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Oct 7 16:18:42 2004 UTC (5 years, 5 months ago) by uogbuji
Branch:
MAIN
Changes since 1.84: +2 -2
lines
Diff to previous 1.84
Updates based on submitted patches from Raphael Bossek (Debian/4Suite maintainer)
Revision 1.84
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Oct 5 04:12:36 2004 UTC (5 years, 5 months ago) by uogbuji
Branch:
MAIN
Changes since 1.83: +4 -46
lines
Diff to previous 1.83
* Move specialized resolvers to their own module
* Make first stab at fixing horrid InstallUtil dependency logic
* Ensure server core code uses a repository resolver
Revision 1.83
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Sep 20 04:44:18 2004 UTC (5 years, 5 months ago) by mbrown
Branch:
MAIN
Changes since 1.82: +7 -2
lines
Diff to previous 1.82
comment update
Revision 1.82
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Sep 7 21:24:59 2004 UTC (5 years, 6 months ago) by mbrown
Branch:
MAIN
Changes since 1.81: +16 -8
lines
Diff to previous 1.81
minor exception fixes
Revision 1.81
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Sep 3 16:05:33 2004 UTC (5 years, 6 months ago) by mbrown
Branch:
MAIN
Changes since 1.80: +2 -2
lines
Diff to previous 1.80
fixed botched indent that was affecting local file resolution in FtUriResolver
Revision 1.80
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Aug 30 23:33:20 2004 UTC (5 years, 6 months ago) by mbrown
Branch:
MAIN
Changes since 1.79: +171 -120
lines
Diff to previous 1.79
1. removed use of types module
2. replaced NormalizeEmptyComponents() with NormalizePathSegments() & NormalizePathSegmentsInUri() to reflect changes in final draft of RFC 2396bis
3. added StripFragment()
4. made UriResolverBase be strict and general-purpose, and created a new subclass,
FtUriResolver, that adds in the base URI lenience that we depend on in 4Suite.
5. in what is now FtUriResolver, normalize() was only checking that the base URI
scheme was supported, when in fact after resolving the reference to absolute form,
it is possible that the reference's scheme would prevail and not be checked. This
has been fixed. Various other spaghetti code is a little cleaner now.
6. moved FTSS_URI_SCHEME into Ft.Server forever, hopefully
7. noted more urllib bugs in comments
8. Absolutize() doc string adjusted
9. MakeUrlLibSafe() and UrlOpen() now ensure that whatever is passed to urllib
is str, not unicode, since urllib has many places where it cannot properly handle
unicode
Revision 1.79
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Aug 12 22:51:54 2004 UTC (5 years, 7 months ago) by mbrown
Branch:
MAIN
Changes since 1.78: +5 -4
lines
Diff to previous 1.78
export WINDOWS_SLASH_COMPAT
Revision 1.78
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Jul 22 11:56:34 2004 UTC (5 years, 7 months ago) by mbrown
Branch:
MAIN
Changes since 1.77: +6 -29
lines
Diff to previous 1.77
crufty comment cleanup
Revision 1.77
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Jul 22 11:46:30 2004 UTC (5 years, 7 months ago) by mbrown
Branch:
MAIN
Changes since 1.76: +117 -26
lines
Diff to previous 1.76
1. New functions to implement RFC 3151 (public ID <-> URN conversion) added.
2. PercentEncode() now supports '+' -> ' ' conversion.
3. PercentEncode() now supports customization of reserved set.
4. PercentEncode() now supports CRLF conversions.
5. Absolutize() docs section on same-doc refs corrected.
6. host name pattern used in MakeUrllibSafe() updated (affects very long hostnames)
Revision 1.76
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Jul 19 07:52:38 2004 UTC (5 years, 8 months ago) by mbrown
Branch:
MAIN
Changes since 1.75: +2 -1
lines
Diff to previous 1.75
OsPathToUri on posix was constructing 'file:/abspath' URIs rather than
'file:///abspath' when attemptAbsolute was set and the original path
was not absolute.
Revision 1.75
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Jul 17 01:49:09 2004 UTC (5 years, 8 months ago) by mbrown
Branch:
MAIN
Changes since 1.74: +9 -9
lines
Diff to previous 1.74
keeping up with RFC 2396bis:
255-char limit in reg-name is now a 'should', and a few productions were renamed
Revision 1.74
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Jul 14 03:58:09 2004 UTC (5 years, 8 months ago) by mbrown
Branch:
MAIN
Changes since 1.73: +7 -9
lines
Diff to previous 1.73
rather than use UserDict, subclass dict, which is faster (Py 2.2+ only)
Revision 1.73
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Jul 10 19:04:38 2004 UTC (5 years, 8 months ago) by mbrown
Branch:
MAIN
Changes since 1.72: +16 -6
lines
Diff to previous 1.72
urllib.urlopen() normally ignores HTTP error responses that
FancyURLopener doesn't recognize, e.g. 404 (!).
We will attempt to work around this so that an exception will be raised
in such cases.
Also updated some doc strings.
Revision 1.72
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Jun 8 20:07:30 2004 UTC (5 years, 9 months ago) by mbrown
Branch:
MAIN
Changes since 1.71: +13 -11
lines
Diff to previous 1.71
use isinstance(foo, types.bar) rather than type(foo) == types.bar
Revision 1.71
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Jun 8 10:39:48 2004 UTC (5 years, 9 months ago) by mbrown
Branch:
MAIN
Changes since 1.70: +69 -21
lines
Diff to previous 1.70
MakeUrllibSafe() now supports IDNs for Python 2.3 up;
also moved Windows ':' -> '|' path translation into MakeUrllibSafe()
and made it only apply that translation if the scheme is 'file'
Revision 1.70
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri May 21 21:53:23 2004 UTC (5 years, 9 months ago) by mbrown
Branch:
MAIN
Changes since 1.69: +3 -2
lines
Diff to previous 1.69
minor rfc 2396bis grammar update
Revision 1.69
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed May 19 15:19:55 2004 UTC (5 years, 10 months ago) by mbrown
Branch:
MAIN
Changes since 1.68: +7 -3
lines
Diff to previous 1.68
in UrlOpen, remove fragment from URL before dereferencing
Revision 1.68
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon May 17 17:20:46 2004 UTC (5 years, 10 months ago) by mbrown
Branch:
MAIN
Changes since 1.67: +2 -2
lines
Diff to previous 1.67
date of RFC 2396bis draft updated
Revision 1.67
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon May 17 16:17:21 2004 UTC (5 years, 10 months ago) by mbrown
Branch:
MAIN
Changes since 1.66: +12 -7
lines
Diff to previous 1.66
adjusted RemoveDotSegments to match RFC 2396bis draft 05
Revision 1.66
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon May 17 14:10:10 2004 UTC (5 years, 10 months ago) by mbrown
Branch:
MAIN
Changes since 1.65: +22 -13
lines
Diff to previous 1.65
keyword args in exceptions fixed up;
made handling of forward slashes in windows paths configurable;
removed extraneous module name in resolver base
Revision 1.65
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Apr 16 11:06:19 2004 UTC (5 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.64: +16 -10
lines
Diff to previous 1.64
During a repo init, external entity / XInclude dependencies are checked in XML files by parsing the XML. If the reader can't successfully read a dependency, a UriException, in which the dependency's URI *may* be found, is raised. This URI data was not being stored in the exception in an ideal manner, and thus wasn't being accessed very intelligently, either. Also, the XML was not being read reliably, since in some cases (e.g. ExtendedCommand instances) it needed to come from _getContent(), not from .contentUri, a problem that was masked until a recent change to stop ignoring unexpected parsing exceptions during dependency checkins.This is all now fixed, with various checkins.
Revision 1.64
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Apr 16 06:26:20 2004 UTC (5 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.63: +16 -6
lines
Diff to previous 1.63
added UrlOpen to replace urllib.urlopen();
fixed __all__
Revision 1.63
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Apr 12 15:20:13 2004 UTC (5 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.62: +7 -2
lines
Diff to previous 1.62
beefed up OsPathToUri code comments about the temporary hack for compatibility with previous versions of the function.
urllib had a 'convenience' feature of not differentiating between the directionality of slashes in paths on Windows, which we exploit in our code. Until we can clean up those cases, we'll just leave in a workaround here.
Revision 1.62
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Apr 12 14:35:49 2004 UTC (5 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.61: +942 -415
lines
Diff to previous 1.61
__all__ added;
order of module contents rearranged a bit;
various doc string and comment updates;
names of module-level constants are now consistently uppercase;
new function PercentEncode supercedes urllib.quote;
new function PercentDecode supercedes urllib.unquote;
new function SplitAuthority parses an authority component;
new function MakeUrllibSafe facilitates passing good URIs to urllib;
various new URI normalization functions implement RFC 2396bis sec. 6;
normalization functions incorporated into UriDict;
function _eliminateDotSegments renamed to RemoveDotSegments;
class BaseUriResolver renamed to UriResolverBase;
function _getScheme renamed to GetScheme, implementation improved;
SchemeRegistryResolver raises proper UriException now;
regex setup functions wait to set globals until done (thread safety);
on 4Suite's supported platforms (nt and posix),
- function OSPathToUri is no longer dependent on urllib.pathname2url
- function UriToOsPath is no longer dependent on urllib.url2pathname
Revision 1.61
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Mar 26 20:25:16 2004 UTC (5 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.60: +16 -6
lines
Diff to previous 1.60
updated comments re: urllib.basejoin and urlparse.urljoin issues
Revision 1.60
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Mar 26 10:11:53 2004 UTC (5 years, 11 months ago) by mbrown
Branch:
MAIN
Changes since 1.59: +17 -6
lines
Diff to previous 1.59
updated regex to match grammar in latest RFC 2396bis draft
Revision 1.59
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Mar 15 00:12:30 2004 UTC (6 years ago) by mbrown
Branch:
MAIN
Changes since 1.58: +226 -81
lines
Diff to previous 1.58
1. Documentation improved for OsPathToUri(), UriToOsPath(), BaseJoin()
2. OsPathToUri() now collapses dot segments if the path is absolute, so that
the URI can be safely used as a base URI by Absolutize()
3. OsPathToUri() now better handles NetBIOS paths on Windows
4. UriToOsPath() now better identifies NetBIOS paths on Windows
5. UriToOsPath() now better identifies the drivespec on Windows
6. UriToOsPath() now discards queries, not just fragments
7. BaseJoin() no longer relies on the buggy & outdated urllib.basejoin() for
path merging; it now uses the same algorithm as Absolutize(), which is the
RFC 2396bis algorithm. The URI working group's position is that this is
what they intended all along.
8. BaseJoin()'s operation and role clarified
Revision 1.58
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Feb 23 20:53:37 2004 UTC (6 years ago) by mbrown
Branch:
MAIN
Changes since 1.57: +2 -4
lines
Diff to previous 1.57
updated merge routine in Absolutize() to match current spec
Revision 1.57
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Feb 23 17:35:09 2004 UTC (6 years ago) by mbrown
Branch:
MAIN
Changes since 1.56: +3 -5
lines
Diff to previous 1.56
Absolutize() should never return the base URI's fragment, even when the relative reference is empty string
Revision 1.56
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Feb 21 20:50:23 2004 UTC (6 years ago) by mbrown
Branch:
MAIN
Changes since 1.55: +41 -41
lines
Diff to previous 1.55
doc string updates and IPv4address fix in validation regex
Revision 1.55
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Feb 17 03:01:46 2004 UTC (6 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.54: +6 -3
lines
Diff to previous 1.54
minor updates to the validation regex to keep up with daily changes to RFC 2396bis
Revision 1.54
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Feb 10 18:56:46 2004 UTC (6 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.53: +10 -14
lines
Diff to previous 1.53
updated validation regex to match Feb 2004 draft of RFC 2396bis (even simpler syntax)
Revision 1.53
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Feb 3 21:16:02 2004 UTC (6 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.52: +17 -17
lines
Diff to previous 1.52
slice notation is slightly faster than startswith() and endswith() calls
Revision 1.52
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Feb 1 11:00:12 2004 UTC (6 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.51: +233 -348
lines
Diff to previous 1.51
Lenient URI syntax validation patterns were removed, resulting in an API
change: MatchesUriRefSyntax() and MatchesUriSyntax() no longer take an
optional 'strict'/2nd argument.
Strict URI syntax validation patterns and various functions were updated in
accordance with RFC 2396bis (the new version of RFC 2396, which is still an
Internet-Draft). Functions affected are:
SplitUriRef()
Now returns a 5-tuple, not a 6-tuple, reflecting
the elimination of a formal distinction of an "opaque part"
(it is now just another kind of path component).
Absolutize()
Now always returns a URI string (never None), and takes 2 arguments,
not 3, reflecting a change in the way same-document references are
determined. Recognition of same-document references is shifted back
to the caller. The caller also now bears the burden of ensuring that
the base URI is one that uses hierarchical path components (so you must
not, for example, pass a URN as a base URI, because this will no longer
result in an exception, and results will perhaps not be what you want).
For predictable operation, the base URI should also not contain '.' or
'..' path segments.
_eliminateBackRefs()
Absolutize() support function replaced now by the more correct
_eliminateDotSegments()
All named groups were removed from the regular expressions for strict URI
syntax validation.
Various doc strings and comments were updated.
The unused BaseUriResolver.splitFragment() method was removed.
Error messages pertaining to document URIs and non-hierarchical base URIs
were removed.
Revision 1.51
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Dec 15 06:54:55 2003 UTC (6 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.50: +5 -3
lines
Diff to previous 1.50
elimination of '..' backrefs in a path that contains '//' was not working correctly
Revision 1.50
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Dec 4 04:12:26 2003 UTC (6 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.49: +3 -3
lines
Diff to previous 1.49
SchemeRegistryResolver documentation clarification
Revision 1.48.2.1
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Aug 4 00:33:58 2003 UTC (6 years, 7 months ago) by molson
Branch:
SERVER_OPTOMIZATIONS
Changes since 1.48: +2 -2
lines
Diff to previous 1.48
, to next main 1.49
Merged with HEAD to keep it up to date
Revision 1.49
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Jun 6 23:07:16 2003 UTC (6 years, 9 months ago) by mbrown
Branch:
MAIN
CVS Tags:
Pre-DAV-branch,
R1_0a3
Branch point for:
DAV-2003-06
Changes since 1.48: +2 -2
lines
Diff to previous 1.48
Removed extraneous import
Revision 1.48
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Mar 20 02:38:23 2003 UTC (7 years ago) by cstrong
Branch:
MAIN
CVS Tags:
R1_0a1
Branch point for:
SERVER_OPTOMIZATIONS
Changes since 1.47: +10 -3
lines
Diff to previous 1.47
unhardcode list of default supported uri schemes, add tests for schemeregistryresolver, fix test_uri breakage
Revision 1.47
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Mar 18 08:03:49 2003 UTC (7 years ago) by uogbuji
Branch:
MAIN
Changes since 1.46: +2 -2
lines
Diff to previous 1.46
Add support for multi-lne queries and variable defs in Versa query files. e.g.
QUERY all()
- rdfs:label -> *
(subsequent lines part of the same query must be indented)
Fix many bugs in Versa query file code
Rename InputSource._clone to InputSource.clone (since we insist on using it as a public method, anyway)
Minimize use of private InputSource functions a bit
Allow FtssInputSources to delegate to non-ftss schemes if certain hints are specified (esp hint="XSLT DOCUMENT FUNCTION")
Use URI resolution hints more consistently
Use uppercase for global functons in Uri module
Fix bug whereas if XSLT A imported XSLT B and the latter used extension elements, they would be ignored upon invokation of XSLT A (Thanks to molson for help on
this one)
Assorted bug fixes
Revision 1.46
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Mar 14 18:17:46 2003 UTC (7 years ago) by uogbuji
Branch:
MAIN
Changes since 1.45: +20 -20
lines
Diff to previous 1.45
Make some Ft.Lib.Uri functions meet the coding convention
Add fcore:normalize-uri
Add support for logger to extension elements
Bug fixes
Revision 1.45
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Feb 25 05:28:55 2003 UTC (7 years ago) by mbrown
Branch:
MAIN
Changes since 1.44: +5 -5
lines
Diff to previous 1.44
regex fixes
Revision 1.44
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Feb 15 12:36:24 2003 UTC (7 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.43: +8 -8
lines
Diff to previous 1.43
more PathResolve fixes
Revision 1.43
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Feb 15 12:01:35 2003 UTC (7 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.42: +13 -10
lines
Diff to previous 1.42
PathResolve() was using urllib.basejoin() on OS paths, rather than URLs.
Revision 1.42
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Jan 17 10:03:52 2003 UTC (7 years, 2 months ago) by jkloth
Branch:
MAIN
Changes since 1.41: +7 -3
lines
Diff to previous 1.41
Changed output of file scheme in BaseJoin to be consistent with the
rest of the implementations.
Revision 1.41
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Jan 14 22:55:49 2003 UTC (7 years, 2 months ago) by jkloth
Branch:
MAIN
Changes since 1.40: +9 -6
lines
Diff to previous 1.40
Added UriException for error when resolving the URI
Revision 1.40
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Jan 10 05:37:31 2003 UTC (7 years, 2 months ago) by mbrown
Branch:
MAIN
Changes since 1.39: +10 -4
lines
Diff to previous 1.39
added support for repo URI scheme in BaseUriResolver,
which FtssInputSource uses
Revision 1.39
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Dec 28 22:57:49 2002 UTC (7 years, 2 months ago) by uogbuji
Branch:
MAIN
Changes since 1.38: +31 -2
lines
Diff to previous 1.38
implement Uri.PathResolve and Uri.BaseJoin
get rid of urllib.basejoin
Revision 1.38
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Dec 16 01:11:21 2002 UTC (7 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.37: +85 -30
lines
Diff to previous 1.37
New UriDict class (a UserDict) treats URIs that start with
'file://localhost/' and those that start with 'file:///' as
identical keys.
Added new _getScheme() helper to efficiently extract the scheme
of the given absolute URI.
OsPathToUri() returns 'file:///path/to/file' now rather than
'file:/path/to/file', and several bugs/inconsistencies in the
Windows version of urllib.pathname2url() have been worked around.
BaseUriResolver.normalize() now uses absolutize() instead of
urlparse.urljoin(). It always returns an absolute (scheme-having) URI
now, never just a path, but it still accepts a schemeless 'file' URI
as input.
Revision 1.37
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Dec 11 23:35:16 2002 UTC (7 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.36: +57 -12
lines
Diff to previous 1.36
UriToOsPath() needed to work around bugs in urllib.url2pathname()
and treat 'file://localhost/' same as 'file:///'
Revision 1.36
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Nov 30 07:00:31 2002 UTC (7 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.35: +2 -3
lines
Diff to previous 1.35
corrected inaccuracy in comments
Revision 1.35
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Nov 27 12:53:17 2002 UTC (7 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.34: +7 -5
lines
Diff to previous 1.34
raise UriExceptions in absolutize()
Revision 1.34
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Nov 27 12:10:02 2002 UTC (7 years, 3 months ago) by mbrown
Branch:
MAIN
Changes since 1.33: +224 -58
lines
Diff to previous 1.33
1. absolutize() added: it provides true RFC 2396 resolution of relative
URI references to absolute form. It is intended to be used in places
where we currently call urllib.basejoin() or urlparse.urljoin(). It has
not been optimized for speed nor has it been tested in any part of 4Suite.
2. _normalizeStrictPatternGroups() commented out (might be useful someday);
3. a few more notes about 'file' scheme added.
Revision 1.33
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Nov 16 10:49:56 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.32: +20 -15
lines
Diff to previous 1.32
BaseUriResolver.normalize() was mishandling empty string URI refs
Revision 1.32
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Nov 6 15:03:12 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.31: +9 -11
lines
Diff to previous 1.31
fixed URI reference regex so '\n' doesn't match
Revision 1.31
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Nov 6 11:25:46 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.30: +4 -4
lines
Diff to previous 1.30
how'd that tab get in there
Revision 1.30
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Nov 5 22:14:28 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.29: +1 -2
lines
Diff to previous 1.29
scheme determination in SchemeUriResolver was buggy
Revision 1.29
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Nov 5 22:09:08 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.28: +3 -3
lines
Diff to previous 1.28
matchesUriRefSyntax() and matchesUriSyntax() were calling the wrong regex
init function
Revision 1.28
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Oct 23 23:53:59 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.27: +87 -86
lines
Diff to previous 1.27
Moved comments about the regular expressions to saner locations.
Moved SPLIT_URIREF_PATTERN compilation to a separate function,
which greatly speeds up the first call to splitUriRef() or isAbsolute(),
since they no longer have to compile all the validation patterns.
This also eliminates Uche's FIXME.
Revision 1.27
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Oct 23 18:10:22 2002 UTC (7 years, 4 months ago) by mbrown
Branch:
MAIN
Changes since 1.26: +4 -0
lines
Diff to previous 1.26
BaseUriResolver.normalize() doc string and comment updates
Revision 1.26
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Oct 23 05:35:48 2002 UTC (7 years, 4 months ago) by uogbuji
Branch:
MAIN
Changes since 1.25: +45 -1
lines
Diff to previous 1.25
Implement SchemeRegistryResolver
Bug fixes
Revision 1.25
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Fri Sep 13 21:09:03 2002 UTC (7 years, 6 months ago) by uogbuji
Branch:
MAIN
Branch point for:
MX_DATETIME_PORT
Changes since 1.24: +8 -0
lines
Diff to previous 1.24
Check in catalog support
Check in preliminary streamable XPointer support
Revision 1.24
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Sep 3 15:50:43 2002 UTC (7 years, 6 months ago) by molson
Branch:
MAIN
Branch point for:
R0_12_0a3
Changes since 1.23: +2 -2
lines
Diff to previous 1.23
Allows UriToOsPath to accept URIs with no schemes.
Revision 1.23
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Aug 31 22:14:54 2002 UTC (7 years, 6 months ago) by uogbuji
Branch:
MAIN
Changes since 1.22: +16 -0
lines
Diff to previous 1.22
Add Ft.Lib.Uri.UriToOsPath
Fixes
Revision 1.22
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Aug 14 04:49:08 2002 UTC (7 years, 7 months ago) by molson
Branch:
MAIN
CVS Tags:
STREAMXPTR_prebranch
Branch point for:
STREAMXPTR_branch
Changes since 1.21: +1 -1
lines
Diff to previous 1.21
Fixed so local files are opened binary
Revision 1.21
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Aug 7 18:07:12 2002 UTC (7 years, 7 months ago) by molson
Branch:
MAIN
Changes since 1.20: +5 -0
lines
Diff to previous 1.20
Work on the Lib test suite. Added ability to ignore funcions in coverage tests
Revision 1.20
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Aug 3 19:48:36 2002 UTC (7 years, 7 months ago) by mbrown
Branch:
MAIN
Changes since 1.19: +15 -6
lines
Diff to previous 1.19
matchesUriSyntax() was using wrong patterns;
added isAbsolute() convenience function;
minor doc edits
Revision 1.19
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Jun 17 17:29:50 2002 UTC (7 years, 9 months ago) by molson
Branch:
MAIN
CVS Tags:
EXPAT-1-95-4-merged,
EXPAT-1-95-4-prebranch,
LOCAL_EXT_FUNCTIONS,
PRE-DOMAIN-SCOPE-RENAME
Branch point for:
EXPAT-1-95-4-branch
Changes since 1.18: +1 -1
lines
Diff to previous 1.18
Fixed bug in absolute path resolution
Revision 1.18
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Jun 12 18:36:51 2002 UTC (7 years, 9 months ago) by mbrown
Branch:
MAIN
Changes since 1.17: +3 -1
lines
Diff to previous 1.17
patch from Alexander Smishlajev for splitUriRef() to better handle an
opaque part without a fragment
Revision 1.17
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Jun 11 10:32:46 2002 UTC (7 years, 9 months ago) by mbrown
Branch:
MAIN
Changes since 1.16: +25 -12
lines
Diff to previous 1.16
typo fix in InputSource comments;
Uri resolver normalize() updated to handle None or empty-string base URI;
test suite updates to generate proper base URIs for InputSource creation
Revision 1.16
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Jun 3 01:00:59 2002 UTC (7 years, 9 months ago) by uogbuji
Branch:
MAIN
Changes since 1.15: +11 -6
lines
Diff to previous 1.15
Clean-ups to URI handling
grammer -> grammar
Support \" and \' in Versa strings
Pass through exceptions with Versa extensions
etc.
Revision 1.15
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun May 12 20:15:59 2002 UTC (7 years, 10 months ago) by uogbuji
Branch:
MAIN
CVS Tags:
EXPAT-1-95-2-prebranch
Branch point for:
EXPAT-1-95-2-branch
Changes since 1.14: +5 -3
lines
Diff to previous 1.14
Fixes to Uri.OsPathToUri
Revision 1.14
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat May 11 16:29:04 2002 UTC (7 years, 10 months ago) by uogbuji
Branch:
MAIN
Changes since 1.13: +17 -0
lines
Diff to previous 1.13
Add Ft.Lib.Uri.OsPathToUri
Fix stylesheet include paths and add test
Pass through typeerrors in Versa function calls if they are not caused by the immediate invokation
Revision 1.13
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue May 7 04:54:14 2002 UTC (7 years, 10 months ago) by molson
Branch:
MAIN
Changes since 1.12: +90 -67
lines
Diff to previous 1.12
Updated to compile regular expressions on demand
Revision 1.12
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Tue Feb 19 00:12:14 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
CVS Tags:
DUMP_OBJECTTYPE_ALLOWED-prebranch,
PSYCOPG-branch-merged,
PSYCOPG-branch-premerge,
PSYCOPG-prebranch,
R0_12_0a2,
chime-windows-safe
Branch point for:
DUMP_OBJECTTYPE_ALLOWED-branch,
INPUT_SOURCE,
PSYCOPG-branch
Changes since 1.11: +36 -27
lines
Diff to previous 1.11
added IPv6 support to strict regexes, as per RFC 2732
replaced 'portable' versions of strict regexes with instructions on how to
create them if you need them, and issues to be aware of
Revision 1.11
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Feb 18 17:26:08 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.10: +1 -1
lines
Diff to previous 1.10
silly error
Revision 1.10
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Feb 18 16:35:21 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.9: +4 -5
lines
Diff to previous 1.9
slight optimization in strict regexes ('port' group was redundant)
Revision 1.9
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Feb 18 00:17:35 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.8: +1 -1
lines
Diff to previous 1.8
in splitUriRef(), needed to separate opaque part from fragment
Revision 1.8
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Feb 17 23:56:27 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.7: +25 -6
lines
Diff to previous 1.7
Changed splitUriRef() to work with URI references that have an opaque part,
e.g. URNs
Revision 1.7
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Feb 17 22:52:57 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.6: +19 -0
lines
Diff to previous 1.6
added splitUriRef()
Revision 1.6
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sun Feb 17 21:49:51 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.5: +74 -17
lines
Diff to previous 1.5
corrected dup group name errors in strict regexes;
added _normalizeStrictPatternGroups function to clean up a match groupdict;
other minor fixes in strict regexes
Revision 1.5
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Feb 16 14:12:53 2002 UTC (8 years, 1 month ago) by mbrown
Branch:
MAIN
Changes since 1.4: +203 -93
lines
Diff to previous 1.4
added regexes & functions for lenient and strict URI validation;
added documentation strings to BaseUriResolver
Revision 1.4
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Thu Dec 27 20:25:52 2001 UTC (8 years, 2 months ago) by mbrown
Branch:
MAIN
Changes since 1.3: +6 -5
lines
Diff to previous 1.3
made adjustments to imports in response to pychecker diagnosis of each .py
file in the source tree on 25 dec 2001. over 120 files are in this checkin.
the majority of the changes are removal of extraneous imports. in some
cases, missing imports were added, or the order of imports changed due to
circularity. a few minor fixes mostly related to error handling are
also a part of this update. a change to Ft/Lib/DistExt/pydoc.py is the
addition of a commented-out print in an exception handling block. uncomment
it to see import errors that xmldoc obscures.
Revision 1.3
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Mon Nov 19 07:29:42 2001 UTC (8 years, 4 months ago) by uogbuji
Branch:
MAIN
Branch point for:
CDOMLETTE_2_GOLD
Changes since 1.2: +4 -0
lines
Diff to previous 1.2
cDomlette gets entity handling and XInclude
cDomlette becomes default wherever possible (e.g. need to subclass, need
for validation or need for mutation prevent)
Version -> 0.12.0a1
Revision 1.2
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Wed Sep 19 01:37:54 2001 UTC (8 years, 6 months ago) by jkloth
Branch:
MAIN
Branch point for:
T4SS-Drivers
Changes since 1.1: +1 -1
lines
Diff to previous 1.1
Generatation of documents now working
Revision 1.1
-
(view)
(download)
(as text)
(annotate)
- [select for diffs]
Sat Sep 15 07:29:37 2001 UTC (8 years, 6 months ago) by molson
Branch:
MAIN
Moved many things
This form allows you to request diffs between any two revisions of
a file. You may select a symbolic revision name using the selection
box or you may type in a numeric name using the type-in text box.