Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend pithos backend for administrative use #3

Open
papagian opened this issue Jun 27, 2014 · 0 comments
Open

Extend pithos backend for administrative use #3

papagian opened this issue Jun 27, 2014 · 0 comments

Comments

@papagian
Copy link
Owner

Currently the pithos backend provides information only for the objects the requesting user has access to.
However, administration interfaces need to query the pithos backend for all the objects regardless of the object permissions.
Provide such a new method.
Since the number of the objects can be enormous, make sure that this method provides some kind of pagination.

papagian pushed a commit that referenced this issue Aug 7, 2014
Design doc for the implementation of a logging mechanism for the
Synnefo's management commands.

Ref #3: Log all stdout/stderr for snf-manage invocations
papagian pushed a commit that referenced this issue Aug 7, 2014
From Django's documentation:
  When you are using management commands and wish to provide console
  output, you should write to self.stdout and self.stderr, instead of
  printing to stdout and stderr directly.

This patch fixes the managements commands to use the proper
stdout/stderr objects.

Ref #3: Log all stdout/stderr for snf-manage invocations
papagian pushed a commit that referenced this issue Aug 7, 2014
Instead of django's BaseCommand class, use out SynnefoCommand which
takes care of logging the command and its output.

Ref #3: Log all stdout/stderr for snf-manage invocations
papagian pushed a commit that referenced this issue Aug 7, 2014
When StreamHandler writes a formatted log message to its stream, it adds
a newline terminator. This behavior is inherited by FileHandler and the
other classes which derive from it (such as the rotating file handlers).

Starting with Python 3.2, the message terminator will be configurable.
This has been done by adding a terminator attribute to StreamHandler,
which when emitting an event now writes the formatted message to its
stream first, and then writes the terminator. If you don't want newline
termination for a handler, just set the handler instance's terminator
attribute to the empty string.

This class implements python's 3.2 StreamHandler.

Ref #3: Log all stdout/stderr for snf-manage invocations
papagian pushed a commit that referenced this issue Aug 7, 2014
'LOG_DIR' is the directory where log files are saved and is going to be
used to determine where to store the management commands' output.

Ref #3: Log all stdout/stderr for snf-manage invocations
papagian pushed a commit that referenced this issue Aug 7, 2014
Create 'SynnefoOutputWrapper' which replaces Django's 'OutputWrapper'
and logs the command and its output in a file.

Ref #3: Log all stdout/stderr for snf-manage invocations
papagian pushed a commit that referenced this issue Aug 7, 2014
Add an entry to the Changelog about the 'Logging mechanism for Synnefo
management commands'.

Closes #3: Log all stdout/stderr for snf-manage invocations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant