Commit Graph

771 Commits

Author SHA1 Message Date
Jurko Gospodnetić 6809509b80 Final changes for the forked project's '0.4.1 jurko 3' release.
Documented the release. Updated version information. Updated todo list.
2011-12-26 18:46:25 +01:00
Jurko Gospodnetić 5a2c6ea3cb Code cleanup - removed several unnecessary imports. Updated todo list. 2011-12-26 18:33:07 +01:00
Jurko Gospodnetić 4a0b406cf5 Fixed a suds.xsd.sxbasic.SchemaObject resolve() invalid cached value bug.
When called with parameter nobuiltin=True on a node whose type is a builtin, the
original implementation cached the builtin type as the result so a repeated
resolve() call returned an incorrect value.

Added related test case. Refactored the resolve() implementation into an
external function dealing with result caching and in internal worker function
doing the actual type resolution. Updated todo list.
2011-12-26 18:14:57 +01:00
Jurko Gospodnetić 0ae85957e5 Refactored suds.xsd.sxbasic.TypedContent.resolve() to avoid recursion.
There is no need for a recursive implementation here since a node can reference
an external type node but there is no way using WSDL to then make that type node
actually be a reference to a different type node.

Added more resolve() related test cases and refactored existing ones. Updated
todo list.
2011-12-26 17:46:38 +01:00
Jurko Gospodnetić 8988c1081f Better documented SchemaObject class tree resolve() functions. 2011-12-26 17:32:07 +01:00
Jurko Gospodnetić ad123e35ad Refactored SchemaObject resolve() result caching.
Base SchemaObject class held the resolve 'cache' object but it was never used
except in the TypedContent subclass. Support for such caching now implemented
directly in the TypedContent subclass. Renamed the cache object to resolve_cache
to make it more 'grep friendly'.

Updated todo list.
2011-12-26 17:29:45 +01:00
Jurko Gospodnetić 75f72ee401 Code cleanup - inlined suds.wsdl.Types.create().
This function was used only once, undocumented and it is unclear when it should
be used and when the regular suds.wsdl.Types constructor should be used
directly.
2011-12-25 23:54:45 +01:00
Jurko Gospodnetić 36ad75e2fa Removed an unused suds.wsdl.WObject.__init__() 'definitions' parameter. 2011-12-25 23:54:45 +01:00
Jurko Gospodnetić 7e7aa81680 Minor stylistic changes.
* Trimmed trailing spaces.
  * Trimmed duplicate spaces after '='.
  * Comment typo corrections.
  * Standardized referring to acronyms using all-capital letters, e.g. 'SOAP',
    'URL', 'WSDL' & 'XML'.
  * Improved class & function description docstrings.
  * Indentation corrections.
  * Removed redundant trailing tuple definition commas.
2011-12-25 13:31:08 +01:00
Jurko Gospodnetić 1183cc5512 Updated HACKING.txt - listed useful external documentation links.
Minor stylistic changes.
2011-12-26 17:24:28 +01:00
Jurko Gospodnetić b16f35bb38 Stylistic README.txt change - consistently list URLs without quotes. 2011-12-26 01:37:11 +01:00
Jurko Gospodnetić 423c81e6f0 Fixed converting non-empty suds.sudsobject.Metadata to string.
Before this failed because the printing code too eagerly attempted to access
the object's __metadata__ member, actually needed only for printing out
suds.sudsobject.Facade objects. Bug initially introduced in the original 'suds'
project Subversion repository trunk revision 639.

  Added related test code. Updated todo list.
2011-12-25 13:16:44 +01:00
Jurko Gospodnetić b162ee7e24 Made 'suds.xsd.xsbasic.Enumeration' string list the enumeration value.
Added related test. Updated todo list.
2011-12-25 02:35:51 +01:00
Jurko Gospodnetić 77eea69875 Avoided a trailing comma when preparing a function parameter listing string.
Added related tests. Updated todo list.
2011-12-25 01:10:49 +01:00
Jurko Gospodnetić 10954620c3 Avoided the 'with' statement in test code to make it Python 2.4 compatible.
Updated related HACKING.txt development notes.
2011-12-25 01:08:18 +01:00
Jurko Gospodnetić 8ab1d055f5 Made the long_description project metadata more detailed. 2011-12-25 00:13:48 +01:00
Jurko Gospodnetić 4bb9a6f9e8 Minor stylistic README.txt line-wrapping change. 2011-12-25 00:06:22 +01:00
Jurko Gospodnetić ca36f4fa7e Bumped up version information for the next planned release development. 2011-12-25 00:02:09 +01:00
Jurko Gospodnetić 968882f3f6 Added tag release-0.4.1 jurko 2 for changeset 11b3a51ecd82 2011-12-24 23:52:57 +01:00
Jurko Gospodnetić 8ee31adeba Final changes for the forked project's '0.4.1 jurko 2' release.
Documented the release. Updated version information.
2011-12-24 23:52:17 +01:00
Jurko Gospodnetić f95d0bc3ab Updated release procedure documentation to include preparing release notes. 2011-12-24 23:46:32 +01:00
Jurko Gospodnetić 61e9ec70eb Fix a suds.client.Client to-string conversion bug.
Changed the way suds.client.Client to-string conversion outputs build info. This
fixes a bug in the original '0.4.1 jurko 1' forked project release causing
printing out a suds.client.Client object to raise an exception due to the code
in question making some undocumented assumptions on how the build information
string should be formatted. Added a related test. Updated todo list.
2011-12-24 23:43:23 +01:00
Jurko Gospodnetić cb0941342c Internal test_suds.py module cleanup (private function naming correction). 2011-12-24 22:58:12 +01:00
Jurko Gospodnetić 837e8d3dce Corrected incorrectly documented release date for version '0.4.1 jurko 1'. 2011-12-24 22:47:04 +01:00
Jurko Gospodnetić 588191122c Bumped up version information for the next planned release development. 2011-12-24 22:41:55 +01:00
Jurko Gospodnetić 61adb2cfcd Added tag release-0.4.1 jurko 1 for changeset 81868f6f5bad 2011-12-24 22:11:38 +01:00
Jurko Gospodnetić 592af43d2f Final changes for the forked project's '0.4.1 jurko 1' release. 2011-12-24 22:10:53 +01:00
Jurko Gospodnetić 1b774a0c2c Added additional 'sequence inside a choice' tests. Updated todo list. 2011-12-24 22:00:06 +01:00
Jurko Gospodnetić 571424f78b Cleanup before the initial forked project release.
* Renamed internal HACKING, LICENSE, README & TODO documentation files to use
  the .txt extension and thus be easier to use on Windows.
* Renamed the forked project name to 'suds_jurko' to differentiate it from the
  original 'suds' project on PyPI.
* Added a MANIFEST.in project configuration file listing the forked project's
  source distribution content (needed since we are using the Mercurial version
  control system and our installation packager does not know how to
  automatically collect 'all files under Mercurial version control' the way it
  does for CVS or SVN).
* Improved project documentation.
    * More detailed 'setup.py' usage documentation notes (HACKING.txt).
    * Documented the forked project's release procedure (HACKING.txt).
    * Documented the forked project's release download locations (README.txt).
    * Documented the forked project's installation procedure (README.txt).
* Preparing source distributions ('setup.py sdist') now configured to be use the
  .tar.bz2 format by default as it takes the least space.
* Updated the forked project's meta data used when preparing distribution
  packages (description, long_description, keywords, url, download_url, ...).
* Project's built distribution no longer contains test.* subpackages.
* Updated todo list.
2011-12-24 12:35:41 +01:00
Jurko Gospodnetić 3d08084e0d Cleaned up the project's setup.cfg file - comments & minor stylistic changes. 2011-12-24 11:39:01 +01:00
Jurko Gospodnetić da3862e6be Typo corrections & other minor stylistic comment changes. Updated todo list. 2011-12-21 19:55:25 +01:00
Jurko Gospodnetić b533f784a2 Removed suds/xsd/__init__.py module docstring comment duplicated from schema.py. 2011-12-21 18:59:10 +01:00
Jurko Gospodnetić b512da49b5 Documented the forked project's source location. Updated todo list. 2011-12-21 18:53:14 +01:00
Jurko Gospodnetić f6604376b5 Added an initial TODO list for the forked project. 2011-12-21 18:40:50 +01:00
Jurko Gospodnetić a92fd3a4da Added development related documentation - HACKING. 2011-12-21 12:35:51 +01:00
Jurko Gospodnetić 34e625a602 Documented the upcoming initial forked project '0.4.1 jurko 1' release. 2011-12-21 00:15:34 +01:00
Jurko Gospodnetić 154ad5b0c1 Cleaned up the forked project's README file.
Noted the forked project's purpose. Standardized all documented release dates to
use the YYYY-MM-DD date formatting. Minor stylistic changes.
2011-12-21 00:10:48 +01:00
Jurko Gospodnetić 44a6c8247b Updated the forked project's version information. 2011-12-21 00:03:51 +01:00
Jurko Gospodnetić 7440bc65e2 Minor stylistic version.py module comment change. 2011-12-20 23:09:57 +01:00
Jurko Gospodnetić 8e99ced5cb Merge Python 3 support patches back to the trunk.
Python 3 support based on patches integrated from a Hg patch queue maintained by
Bernhard Leiner at 'https://bitbucket.org/bernh/suds-python-3-patches'. Last
collected patch series commit: '96ffba978d5c74df28846b4273252cf1f94f7c78'.
2011-12-20 16:54:49 +01:00
Jurko Gospodnetić aca9bb4cd3 Fix converting binary SOAP Request & Reply data to strings.
Request & Reply 'message' member contains binary & not unicode-string data. When
a string is needed (e.g. when logging SOAP request or reply content) we now use
Python's internal and non-ambiguous representation for this data.

Optionally, we could 'assume the data is actually an utf-8 encoded unicode
string', decode it and get a bit nicer string output, i.e. without the "b''"
wrapper and without having non-ASCII characters displayed as escaped hexadecimal
character codes, but that would require much more detailed usage research to
make sure our assumption holds.
2011-12-20 15:51:48 +01:00
Jurko Gospodnetić 9c27933e9d HTTPMessage class related changes needed for Python 3 support. 2011-12-20 15:51:37 +01:00
Jurko Gospodnetić 6c61aefc89 Encoding related changes needed for Python 3 support. 2011-12-20 15:49:35 +01:00
Jurko Gospodnetić 944176812e Use key instead of cmp function.
cmp functions for sorting are deprecated and have been dropped in Python 3.
Defining a key function is an alternative available since Python 2.4.
2011-12-20 15:49:35 +01:00
Jurko Gospodnetić 80e6e191e1 Split absolute and relative imports into separate import statements.
This is needed for the lib2to3 Python 2 to 3 conversion to correctly recognize
old-style relative imports and adjust their syntax for Python 3.
2011-12-20 15:49:35 +01:00
Jurko Gospodnetić fe2ccea6e8 Remove usage of the deprecated module 'new'.
The 'new' module has been deprecated since Python 2.6; the built-in function
'type' can be used instead of 'new.classobj'.
2011-12-20 15:49:35 +01:00
Jurko Gospodnetić dedc4d0de4 urllib/urllib2 library version data location changed between Python 2 & 3.
We teach Python's lib2to3 urllib fixer to correctly recognize the
'urllib2.__version__' data member usage and update it to
'urllib.request.__version__'.
2011-12-20 15:49:35 +01:00
Jurko Gospodnetić 8aabcf236e Fix urllib2 importing.
2to3 is able to convert urllib2 and urllib to the new unified urllib library
just fine but not if urllib is imported under a different name (u2).
2011-12-20 15:49:35 +01:00
Jurko Gospodnetić 4b63f7c9a7 Replace all __str__ methods by UnicodeMixin class. 2011-12-20 15:49:35 +01:00
Jurko Gospodnetić 7f0a0fe922 Use 2to3 fixers when building via 'setup.py'.
This adds a dependency on the Python 3 version of setuptools when running under
Python 3. This should not be a problem since the Python 2 version also depends
on setuptools.
2011-12-20 15:49:34 +01:00