Added python2.7 compatibility for debian
Do not require epydoc at runtime

It's a little excessive to require the entire epydoc package so that
configshell can output italic/bold help text. If it's present, use it,
but otherwise just print plaintext.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fixes agrover "Do not require epydoc" patch

* Rewrote markup deletion code to be generic and cleaner
* Fixed console.py
  . epydoc was still imported unconditionaly!
  . try/except an epydoc call left behind
* Fixed packaging files
  . Removed epydoc requirement for RPM
  . Moved python-epydoc from Depends: to Suggests: for .deb
Fix helptext - shell may not be interactive

If invoked with run_cmdline instead of run_interactive, the shell may not
be interactive, in which case the helptext would be misleading.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fix get_command_syntax bug

It was returning the same value for multiple default params (since index
was not being incremented).

Signed-off-by: Andy Grover <agrover@redhat.com>
Allow mixed-case values for true/false

Signed-off-by: Andy Grover <agrover@redhat.com>
Don't use readline unless isatty

Importing readline emits escape sequences to stdout. We want to avoid this
when output is not to a tty.

Signed-off-by: Andy Grover <agrover@redhat.com>
Do not print color escape codes if stdout is not a tty

Signed-off-by: Andy Grover <agrover@redhat.com>
Remove unused list_group_params arguments

"param" and "type" are never used, so they can be removed.

Signed-off-by: Andy Grover <agrover@redhat.com>
Fixes list_group_params doc

* Reflects cleanup to list_group_params made by agrover patch
  fcba44eb442fd26bfb4749c38994657cb6c02796
Only return dict keys from list_config_groups

That's all anyone is looking at.

Signed-off-by: Andy Grover <agrover@redhat.com>
Make log warning color yellow

It seems to be brownish, but whatever, it's better than blue, which is
also used for debug level.

Signed-off-by: Andy Grover <agrover@redhat.com>
Improve ConfigNode._render_tree sorting

* This a stash of four patches by Andy Grover <agrover@redhat.com>
  . Lambda not needed
	359e3a498456a5822b9b41d88e004fb6c625bcc4
  . Improve comment
	263459706e405d411ba38160dd68ef133243ac0a
  . Fix sort again
	10ac93aacf7135ec0f5dda603790bcf51a7dde8d
  . Sort first by ending number, if present
	 f712d46ccaabcf7c9815da7a46dc0f5022222545
Fix debug log date format to YYYY-MM-DD

Signed-off-by: Andy Grover <agrover@redhat.com>
Avoid exception when arrowing down past end of list

I have a feeling that urwid has a more elegant way to handle scrolling
behavior, but it wasn't very obvious, so this works.

Signed-off-by: Andy Grover <agrover@redhat.com>