Move common code for mngmt commands to webproject
Move cyclades functions that are useful for all managament commands, likepprint_table or parse_filters, to snf-webproject.
Add ListCommand to be used for all *-list commands
Create a generic ListCommand to be user for all *-list managementcommands. ListCommand handles must tasks that are common to allmanagement commands, like retrieving objects from db, filteringresults and formating output to a pretty table, json or csv....
Change default TEMPLATE_DIRS setting
Refs #3363
/var/lib/* is commonly used to store application generated data and notas a place to configure installed software.
For every Synnefo app, the administrator is free to install a modifiedcopy of a template under /etc/synnefo/templates....
Rewrite logging settings
Check subcommand for encoding stdout
Dummy check, forced by bug in builtin `isatty` method:https://bugzilla.redhat.com/show_bug.cgi?id=841152
Fix bug in encoding stdout
Propagate attribute access to original sys.stdout. Also fix corner case wheresys.stdout does not have encoding attribute.
Fix typo
Avoid the use of sys__stdout__
Fix UnicodeError when writing to sys.stdout
Due to a bug the was fixed in Python-2.7, in Python-2.6 unicode stringsthat are written to sys.stdout (using sys.stdout.write) are notconverted to bytestrings using the file.encoding. Insteadsys.stdout.encoding is set to None, and the default encoding is used. We...
Minor changes
View revisions
Also available in: Atom