<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/taskflow.git/taskflow/utils/misc.py, branch 0.7.1</title>
<subtitle>opendev.org: openstack/taskflow.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/'/>
<entry>
<title>Use monotonic time when/if available</title>
<updated>2015-01-27T18:14:40+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2014-12-27T15:12:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=80888c638cc4170ab83d168741743532e2bb5d9f'/>
<id>80888c638cc4170ab83d168741743532e2bb5d9f</id>
<content type='text'>
Instead of using a time that can change depending on ntpd
or other time adjustments use a monotonically increasing
time if it's available from the underlying python library
to avoid these types of time-shifts problems in the first
place.

Change-Id: Ib775a44026b9828536c905a1ed41f527358c0d39
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using a time that can change depending on ntpd
or other time adjustments use a monotonically increasing
time if it's available from the underlying python library
to avoid these types of time-shifts problems in the first
place.

Change-Id: Ib775a44026b9828536c905a1ed41f527358c0d39
</pre>
</div>
</content>
</entry>
<entry>
<title>Make all/most usage of type errors follow a similar pattern</title>
<updated>2015-01-24T02:25:01+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2015-01-24T02:05:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=e417914d49458a4f0fd231497f6a4c1200cfecb2'/>
<id>e417914d49458a4f0fd231497f6a4c1200cfecb2</id>
<content type='text'>
To make it easy to add new type errors and to make the existing
ones have a common string pattern adjust the current type errors
to contain at least the following string format: '%s' (%s) where
these two places will be filled in with the object of the wrong
type and the type of that object. This information is useful when
analyzing the exception (by the user) to know exactly what they
passed in and what type it was.

This convention is not maintained where it would interpolate large
text blobs (such as in binary encoding/decoding and json decoding).

Change-Id: Id84b0e7ce684a543cc407b15016e77804e6f03ed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To make it easy to add new type errors and to make the existing
ones have a common string pattern adjust the current type errors
to contain at least the following string format: '%s' (%s) where
these two places will be filled in with the object of the wrong
type and the type of that object. This information is useful when
analyzing the exception (by the user) to know exactly what they
passed in and what type it was.

This convention is not maintained where it would interpolate large
text blobs (such as in binary encoding/decoding and json decoding).

Change-Id: Id84b0e7ce684a543cc407b15016e77804e6f03ed
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Switch to using 'oslo_serialization' vs 'oslo.serialization'"</title>
<updated>2015-01-23T20:49:55+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-01-23T20:49:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=e9c250af57b66285a9e212436f046ae2698c2951'/>
<id>e9c250af57b66285a9e212436f046ae2698c2951</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use a class provided logger before falling back to module</title>
<updated>2015-01-22T22:55:29+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2015-01-22T01:07:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=5773fb09e68030acbd318e45f795de4a6a37caee'/>
<id>5773fb09e68030acbd318e45f795de4a6a37caee</id>
<content type='text'>
If a subclass overrides the logging listeners and provides
a class specific logger (under the attribute named _LOGGER)
try to use that before using the taskflow specific logging
module (and only use this one as a last resort).

This allows subclasses to easily override the default logger
without having to continually pass in a constructor argument
to do the same.

Change-Id: I91fea3db6cdd1dfb39963ff9589fd530fe087278
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a subclass overrides the logging listeners and provides
a class specific logger (under the attribute named _LOGGER)
try to use that before using the taskflow specific logging
module (and only use this one as a last resort).

This allows subclasses to easily override the default logger
without having to continually pass in a constructor argument
to do the same.

Change-Id: I91fea3db6cdd1dfb39963ff9589fd530fe087278
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch to using 'oslo_serialization' vs 'oslo.serialization'</title>
<updated>2015-01-15T07:56:37+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2015-01-11T04:36:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=2280f9a7485e5a403a4307dd1f3aeb3ace1e99f9'/>
<id>2280f9a7485e5a403a4307dd1f3aeb3ace1e99f9</id>
<content type='text'>
Prefer the non-deprecated 'oslo_serialization' instead of
the namespaced 'oslo.serialization' wherever it was previously
used.

Change-Id: I652cf0b56e28d727c59fe0c060949bb2bd920d11
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prefer the non-deprecated 'oslo_serialization' instead of
the namespaced 'oslo.serialization' wherever it was previously
used.

Change-Id: I652cf0b56e28d727c59fe0c060949bb2bd920d11
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch to using 'oslo_utils' vs 'oslo.utils'</title>
<updated>2015-01-15T07:56:11+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2015-01-11T04:34:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=d748db934a0348da3f1f5b86e61e0b5ca9d2b69a'/>
<id>d748db934a0348da3f1f5b86e61e0b5ca9d2b69a</id>
<content type='text'>
Prefer the non-deprecated 'oslo_utils' instead of
the namespaced 'oslo.utils' wherever it was previously
used.

Change-Id: I9a78150ef5266e1ff22147278162fe3cfe1b2e3f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prefer the non-deprecated 'oslo_utils' instead of
the namespaced 'oslo.utils' wherever it was previously
used.

Change-Id: I9a78150ef5266e1ff22147278162fe3cfe1b2e3f
</pre>
</div>
</content>
</entry>
<entry>
<title>Use platform neutral line separator(s)</title>
<updated>2015-01-13T04:33:51+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2015-01-11T21:03:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=42a665d06f5a75672417a28375ca4e1988365aa8'/>
<id>42a665d06f5a75672417a28375ca4e1988365aa8</id>
<content type='text'>
To at least try to support things like windows it's better
if we can make an attempt to use the platform neutral
characters for line separator(s) where appropriate.

Change-Id: Icc533ed4d4c94f461b7f19600b74146221f17b18
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To at least try to support things like windows it's better
if we can make an attempt to use the platform neutral
characters for line separator(s) where appropriate.

Change-Id: Icc533ed4d4c94f461b7f19600b74146221f17b18
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove need to inherit/adjust netutils split</title>
<updated>2015-01-05T23:06:22+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2015-01-05T23:05:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=69449ae301fd411722021b47197d0a7eda335cf7'/>
<id>69449ae301fd411722021b47197d0a7eda335cf7</id>
<content type='text'>
The code we had for adjusting the netutils urlsplit
function to add in a params method/property is no
longer needed as that functionality is now pushed into
the oslo.utils repo/package where it can be maintained
there in a more proper manner instead; so we can now
remove our adjustment code and just use the upstream
code instead.

Change-Id: I5ca05c0ac6a6221157a737ba20814cfd63adf51e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code we had for adjusting the netutils urlsplit
function to add in a params method/property is no
longer needed as that functionality is now pushed into
the oslo.utils repo/package where it can be maintained
there in a more proper manner instead; so we can now
remove our adjustment code and just use the upstream
code instead.

Change-Id: I5ca05c0ac6a6221157a737ba20814cfd63adf51e
</pre>
</div>
</content>
</entry>
<entry>
<title>Move over to using oslo.utils [reflection, uuidutils]</title>
<updated>2014-12-18T21:55:41+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@yahoo-inc.com</email>
</author>
<published>2014-12-09T02:58:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=4e514f41e57983e728db9025126df6f791a2594a'/>
<id>4e514f41e57983e728db9025126df6f791a2594a</id>
<content type='text'>
The reflection module is now part of oslo.utils so we should
remove our local version and use that version instead; this
also goes for the uuidutils module which is now part of
oslo.utils as well so we no longer need our local version
copied from the incubator...

Note that one reflection method `find_subclasses` which was to
specific to taskflow is now moved to the misc utility module
instead of its prior home in the reflection module.

Change-Id: I069881c80b0b2916cc0c414992b80171f7eeb79f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reflection module is now part of oslo.utils so we should
remove our local version and use that version instead; this
also goes for the uuidutils module which is now part of
oslo.utils as well so we no longer need our local version
copied from the incubator...

Note that one reflection method `find_subclasses` which was to
specific to taskflow is now moved to the misc utility module
instead of its prior home in the reflection module.

Change-Id: I069881c80b0b2916cc0c414992b80171f7eeb79f
</pre>
</div>
</content>
</entry>
<entry>
<title>Use a tiny clamp helper to clamp the 'on_progress' value</title>
<updated>2014-12-14T01:13:07+00:00</updated>
<author>
<name>Joshua Harlow</name>
<email>harlowja@gmail.com</email>
</author>
<published>2014-12-13T07:03:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/taskflow.git/commit/?id=cdfd8ece61c3340a3de73005ea7b44d0383223fd'/>
<id>cdfd8ece61c3340a3de73005ea7b44d0383223fd</id>
<content type='text'>
Add a misc.clamp function that will clamp a value to a given
range (it can also call a callback if clamping occurs). Use it
to clamp the progress value that was previously clamped with
a set of customized logic that can now be replaced with a more
generalized logic that can be shared.

Change-Id: I8369dbb61f73a60932d9e15c8b4d06db249ea38e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a misc.clamp function that will clamp a value to a given
range (it can also call a callback if clamping occurs). Use it
to clamp the progress value that was previously clamped with
a set of customized logic that can now be replaced with a more
generalized logic that can be shared.

Change-Id: I8369dbb61f73a60932d9e15c8b4d06db249ea38e
</pre>
</div>
</content>
</entry>
</feed>
