Commit Graph

952 Commits

Author SHA1 Message Date
Jurko Gospodnetić f62200b992 bump up version information for the '0.5' release 2013-11-25 23:11:17 +01:00
Jurko Gospodnetić 2914d814df update release notes for the upcoming release 2013-11-25 23:04:33 +01:00
Jurko Gospodnetić dd29b94cf2 update todo list 2013-11-25 22:58:09 +01:00
Jurko Gospodnetić 36cef45ebc test with multiple Python releases and update HACKING.txt
Added more detailed notes on setting up the project's testing environment, as
well as what loops to jump through to get all of this working with older Python
2.4 interpreter versions we wish to support.
2013-11-25 22:28:28 +01:00
Jurko Gospodnetić 7dfe8dc8ce document the try/yield/finally Python feature not usable in Python 2.4 2013-11-25 22:25:53 +01:00
Jurko Gospodnetić ac203a901a correct HACKING.txt documentation typos 2013-11-25 21:17:31 +01:00
Jurko Gospodnetić 02aea9d012 update release notes for the upcoming release 2013-11-23 12:35:36 +01:00
Jurko Gospodnetić 4e374a8cd7 remove internal Hg files from packaged source distributions 2013-11-23 12:30:49 +01:00
Jurko Gospodnetić 1903485e3e remove unused project files
These files have been inherited from the original suds project and seem related
to the development environment used by the original developer. Since they are
no longer actively used, tested or maintained they have most likely grown stale.
2013-11-23 12:29:57 +01:00
Jurko Gospodnetić 371f050a18 update ez_setup.py script to the latest available version (setuptools 1.4) 2013-11-23 12:08:53 +01:00
Jurko Gospodnetić ad7e453047 correct word-wrapping in the main project readme 2013-11-23 11:49:58 +01:00
Jurko Gospodnetić 8c27bd3a51 clean up & update release procedure documentation a bit 2013-11-23 11:49:27 +01:00
Jurko Gospodnetić 6a122c13f7 update project version information to 0.5
This drops the requirement to have our project version information linked
directly to the original suds project.
2013-11-23 11:48:23 +01:00
Jurko Gospodnetić 730d998768 add tests for converting empty strings using XDate, XDateTime & XTime 2013-11-23 10:26:59 +01:00
Jurko Gospodnetić 4800706df5 simplify FixedOffsetTimezone name calculation
Such timezones may not have offsets with more than minute precision so we can
freely assume the offset's microseconds attribute is always 0.
2013-11-22 13:15:44 +01:00
Jurko Gospodnetić 1278822ca1 remove duplicate XDate, XDateTime & XTime test code 2013-11-22 12:25:33 +01:00
Jurko Gospodnetić d8b1c3935f update date/time related unit tests
* Cleaned up test function names.
* Tested Date, DateTime & Time instance construction from unexpected objects.
* Tested Date, DateTime & Time instance construction from datetime.date,
  datetime.datetime & datetime.time.
* Tested Date, DateTime & Time conversion to string.
2013-11-22 11:42:15 +01:00
Jurko Gospodnetić baf7ac58aa update todo list 2013-11-22 01:22:55 +01:00
Jurko Gospodnetić 3f4c0865f6 add tests making sure timezone indicators with no colon are rejected 2013-11-22 01:16:45 +01:00
Jurko Gospodnetić 897f527bd2 remove support for timezone offset specifiers in seconds
Both Python's timezone support implementation and the XSD datatype specification
('http://www.w3.org/TR/xmlschema-2', section '3.2.7.3 Timezones') state that
timezone offset specifiers contain only hour and minute information.
2013-11-22 01:06:44 +01:00
Jurko Gospodnetić d2d8db0203 remove redundant invalid DateTime timezone indicator input tests
Removed tests are already covered by the invalid Time timezone indicator tests
as that same input data is used in DateTime testing.
2013-11-22 00:21:45 +01:00
Jurko Gospodnetić efeff016ab extract datetime.tzinfo implementation tests into a separate module 2013-11-21 23:35:52 +01:00
Jurko Gospodnetić 1008c46eb6 add tests for the UtcTimezone class 2013-11-21 23:15:00 +01:00
Jurko Gospodnetić cfa37c8b99 mark private date.py module members with a leading underscore
This makes those symbols not get imported automatically into other modules when
using the 'from module import *' syntax, without having to manually maintain the
module's __all__ public symbol listing.
2013-11-21 23:01:17 +01:00
Jurko Gospodnetić fec22b9b24 fix FixedOffsetTimeone.tzname() bug with negative offsets
Such names are now no longer constructed with a double '-' prefix.
2013-11-21 22:38:18 +01:00
Jurko Gospodnetić e5c1dcdc32 update todo list 2013-11-21 03:45:31 +01:00
Jurko Gospodnetić 4597a7fa53 start documenting the upcoming suds 0.4.1 jurko 6 release 2013-11-20 14:14:22 +01:00
Jurko Gospodnetić 3fd3290edb fix DateTime & Time timezone handling
Partial step towards applying a patch sent in by 'mduggan1' [based on a ticket
from the original suds project ('http://fedorahosted.org/suds/ticket/353')].

* No more manual time adjustments due to timezones. Each DateTime & Time object
  now remembers its specified date/time value and timezone and uses that to
  decide how to serialize itself into a string.
* Suds no longer maintains any date/time values connected to the current user's
  local time zone. Such values may only be explicitly constructed by user code.
* Minute and second values greater than 59 are now rejected as invalid.
* More detailed timezone specification format checking - the total timezone UTC
  offset must not be greater than 1 day (in absolute). This is needed because
  otherwise tzinfo.
* Timezone class removed and replaced with FixedOffsetTimezone, LocalTimezone &
  UtcTimezone. Any other datetime.tzinfo implementation should be usable as
  well, e.g. those from the pytz package.
* Updated relates unit tests - now all date/time related tests pass.

Date/time related unit tests still need to be made more extensive.
2013-11-21 03:45:31 +01:00
Jurko Gospodnetić c75aba4f08 name all suds Date, DateTime & Time value members 'value'
Partial step towards applying a patch sent in by 'mduggan1' [based on a ticket
from the original suds project ('http://fedorahosted.org/suds/ticket/353')].

Naming different is no longer necessary now that we refactored the DateTime
class so it is no longer derived from Date & Time classes and so no longer hold
redundant partial values stored in its members inherited from those classes.
2013-11-20 18:13:47 +01:00
Jurko Gospodnetić c64667421c improve string parsing in suds Date, DateTime & Time classes
Partial step towards applying a patch sent in by 'mduggan1' [based on a ticket
from the original suds project ('http://fedorahosted.org/suds/ticket/353')].

* Improves several exception description messages.
* Corrects several related unit tests.
* Corrects fractional second parsing.
* Corrects rounding fractional second information to microseconds to make it fit
into the Python datetime.datetime/time implementation.
* Still retains the original buggy timezone handling implementation.
* Adds an UTF-8 BOM for this source file.
* Minor stylistic changes.
2013-11-20 16:23:33 +01:00
Jurko Gospodnetić 5b0081b0ff store datetime.date in Date objects when given datetime.datetime
Fixes a test where such a Date object was getting converted to a string as if it
were a DateTime instance.
2013-11-20 15:16:58 +01:00
Jurko Gospodnetić 41e8a291b8 add date/time string parsing tests for Date, DateTime & Time classes
Added tests are definitely not perfect and will need further corrections,
especially related to timezone indicator parsing, but should work great as an
active tool for guiding further date/time/timezone handling fixes we have
planned.
2013-11-19 14:34:59 +01:00
Jurko Gospodnetić 15f039ae4c clean up date/time test code 2013-11-19 10:51:18 +01:00
Jurko Gospodnetić 810bcdd406 mark XDate/XFloat/....translate() methods static
This simplifies current date/time test code as it no longer needs to construct
mock XDate, XDateTime & XTime objects.

None of these methods was using its self parameter anyway and this change does
not affect existing callers.
2013-11-19 10:28:19 +01:00
Jurko Gospodnetić 3b1d7da736 remove redundant date/time value component getters
Partial step towards applying a patch sent in by 'mduggan1' [based on a ticket
from the original suds project ('http://fedorahosted.org/suds/ticket/353')].

Removed getters were never used in suds code and were implemented as simple
forwarders to matching getters on the underlying Python date/time value.
2013-11-18 22:10:51 +01:00
Jurko Gospodnetić 452e31ae9c clean up suds date/time implementation code
Partial step towards applying a patch sent in by 'mduggan1' [based on a ticket
from the original suds project ('http://fedorahosted.org/suds/ticket/353')].

* Several comment typos corrected.
* Some of the coding idioms changed.
* Clean up suds package imports.
2013-11-18 21:57:58 +01:00
Jurko Gospodnetić 98b094d200 fix date/time to string transformation bugs
Fixes several date/time related unit test failures.
2013-11-18 20:13:43 +01:00
Jurko Gospodnetić ff23d167b9 update todo list 2013-11-18 20:11:25 +01:00
Jurko Gospodnetić dd109650df add new date/time to string transformation tests
Several of the new tests fail with the current date/time support implementation.

Buggy features detected based on fixes found in a patch sent in by 'mduggan1'
[based on a ticket from the original suds project
('https://fedorahosted.org/suds/ticket/353')].
2013-11-18 20:11:10 +01:00
Jurko Gospodnetić 7979094b89 clean up code & comments 2013-11-18 14:51:42 +01:00
Jurko Gospodnetić 1f7931f161 update todo list 2013-11-12 14:45:04 +01:00
Jurko Gospodnetić 06733ee58f update todo list 2013-11-11 17:36:48 +01:00
Jurko Gospodnetić af78ce9ad8 update todo list 2013-11-11 16:36:39 +01:00
Jurko Gospodnetić 222b034003 Bumped up version information for the next planned release development. 2013-11-11 16:34:28 +01:00
Jurko Gospodnetić 70c85295ae Added tag release-0.4.1 jurko 5 for changeset e897fc8cec4a 2013-11-11 15:58:48 +01:00
Jurko Gospodnetić 97359b62c8 Updated todo list. 2013-11-11 15:51:54 +01:00
Jurko Gospodnetić b4ff1cdbde Bumped up version information for the '0.4.1 jurko 5' release. 2013-11-11 15:49:33 +01:00
Jurko Gospodnetić afdb0faca6 Updated release notes for the upcoming 0.4.1 jurko 5 release. 2013-11-11 15:48:31 +01:00
Jurko Gospodnetić 870a067031 Improved displayed README.rst text layout on bitbucket.org. Corrected several
incorrectly formatted web links that did not get correctly rezognized as such by
bitbucket's rst processor.
2013-11-11 15:08:24 +01:00
Jurko Gospodnetić 1c67fa7b53 Converted Windows (CR/LF) to Unix (LF) style end-of-line markers. 2013-11-11 14:45:53 +01:00