MiscUtils version 1.1 released on 08/03/11
DateParser
module for parsing strings to datetime
values using python-dateutil, mxDateTime or strptime.Funcs.localTimeDelta
function to support setting
cookie expiration as datetime without timezone.DataTable
. Now using only native
datetime classes instead of mxDateTime.positive_id
function to positiveId
,
using the Webware naming convention.asclocaltime
function has been from
WebKit.Common
to MiscUtils
.pickleVersion
parameter to
pickleProtocol
since it's referred to as "protocol" in the
pickle docs. If not specified, we always use the highest format available
(i.e. 2 instead of 1 as before).BasicDateTime
, pydoc
and inspect
.NamedValueAccess
"magic" was disposed since it has
never been well documented and hardly anyone understood and used it.
It also made things difficult to maintain, and the key bindings had already
caused problems with garbage collection in the past which had been very hard
to find. And now that properties and new-style classes exist, this whole
approach can be considered outmoded. So the NamedValueAccess
mix-in and wrapper classes and the UserDict
monkey-patch are
gone now. However, the valueForKey
and valueForName
functions are still available and can be useful in some cases (for instance
for evaluating the ActivityLogColumns
).