# MiscUtils 0.8 Release Notes

Version 0.8
Webware for Python 0.8

- New PickleCache module which is now used by DataTable and MiddleKit.Core.Model in order to load files more quickly. See the doc string for details.

New functions in MiscUtils.Funcs

localIP(remote=('www.yahoo.com', 80), useCache=1)
  Returns your local IP address, hopefully as seen by the Internet. It comes with caveats, so read the doc string.
mktemp(suffix="", dir=None)
  Alternative to tempfile.mktemp that allows a custom directory to be passed without requiring any module level variables to be clobbered.
valueForString(s)
  For a given string, returns the most appropriate Pythonic value such as None, a long, an int, a list, etc.
wordWrap(s, width=78)
  Returns a version of the string word wrapped to the given width.

New functions in Configurable

commandLineSetting(configName, settingName, default=NoDefault)
  Accesses the values of settings passed through addCommandLineSetting. Typically, you would use it by calling AppServer like `./AppServer --Context.Root=/WK` -- where `Context` is not necessarily the name of a configurable class. Other classes can use this setting to retrieve `"/WK"`, like `Configurable.commandLineSetting("Context", "Root")`.