<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 06/10/2014 05:07 PM, Petr Viktorin wrote:<br>
<blockquote cite="mid:53971F35.5090006@redhat.com" type="cite">On
06/10/2014 10:13 AM, Tomas Babej wrote:
<br>
<blockquote type="cite">Thank you for the detailed review.
Responses to all the issues found are
<br>
inline:
<br>
</blockquote>
<br>
I'm calling it a day now, but here are initial comments from
reading the patches.
<br>
<br>
<blockquote type="cite">On 06/06/2014 01:04 PM, Petr Viktorin
wrote:
<br>
<blockquote type="cite">On 06/05/2014 03:14 PM, Petr Viktorin
wrote:
<br>
<blockquote type="cite">On 06/04/2014 11:42 AM, Tomas Babej
wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
the following set of patches implements the ticket:
<br>
<br>
<a class="moz-txt-link-freetext" href="https://fedorahosted.org/freeipa/ticket/4052">https://fedorahosted.org/freeipa/ticket/4052</a>
<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
[...]
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<br>
0202: OK
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">0203:
<br>
<br>
It would be nice to have the Services' __init__s take an
optional `api`
<br>
argument, and then use `self.api` everywhere. I'm certain
we'd
<br>
appreciate it in the future.
<br>
<br>
</blockquote>
</blockquote>
<br>
Added.
<br>
</blockquote>
<br>
Nice! Just one more thing.
<br>
I don't think it's good practice to pass additional *args to
superclasses, unless it's really some sequence of items.
<br>
In this case you should use always name the arguments to prevent
surprises, so **kwargs is enough.
<br>
</blockquote>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>
Done!<br>
</p>
<br>
<blockquote cite="mid:53971F35.5090006@redhat.com" type="cite">
<br>
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">0204:
<br>
When commenting what a function does, use a docstring.
<br>
<br>
</blockquote>
</blockquote>
Will be documented in a later patch.
<br>
</blockquote>
<br>
You mean an upcoming patchset, right?
<br>
</blockquote>
<br>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>
Yep, documentation patch is attached.<br>
</p>
<br>
<blockquote cite="mid:53971F35.5090006@redhat.com" type="cite">
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">0205: OK
<br>
0206: OK
<br>
0207: OK
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">0208:
<br>
check_selinux_status, in the RuntimeError message, assumes
that it's
<br>
called from an installation. This should at least be pointed
out in the
<br>
docstring.
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">0209:
<br>
ipa-client-install, --noac help: "Red Hat" has two words.
Also it's a
<br>
company; I don't think "Red Hat based distributions" is a
correct use of
<br>
the trademark. In comments/class names it doesn't really
matter but in
<br>
user-facing text we should try to be professional.
<br>
We can either go with "Fedora-based" here and sort this out
in a RHEL
<br>
patch if needed, or better, adjust the help text (or
visibility of the
<br>
option) based on if the platform uses authconfig.
<br>
<br>
</blockquote>
</blockquote>
I'm thinking we could go as far as to provide a way in the
installers to
<br>
define
<br>
platform dependent options. What do you think?
<br>
</blockquote>
<br>
See Martin's mail. This patchset is already too long for a general
solution here.
<br>
You could file a ticket for a better fix so it's not forgotten.
<br>
</blockquote>
Fixed and I filed <a class="moz-txt-link-freetext" href="https://fedorahosted.org/freeipa/ticket/4377">https://fedorahosted.org/freeipa/ticket/4377</a> .<br>
<br>
<br>
<blockquote cite="mid:53971F35.5090006@redhat.com" type="cite">
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">base.tasks: These need docstrings.
Will those included in the
<br>
documentation that you want to provide later?
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
0210: OK
<br>
0211: OK
<br>
0212: OK
<br>
0213: OK
<br>
0214: OK
<br>
<br>
0215:
<br>
<br>
You could rename the commit now
<br>
<br>
0216:
<br>
[...]
<br>
<blockquote type="cite">As we discussed, to avoid cyclical
imports, separate modules for paths
<br>
and tasks are needed.
<br>
Calling the paths_namespace object by its descriptive name is
rather
<br>
cumbersome, so I changed that to:
<br>
<br>
from ipaplatform.paths import paths
<br>
from ipaplatform.tasks import tasks
<br>
</blockquote>
<br>
OK
<br>
<br>
<br>
I looked over the paths again, and saw this:
<br>
<br>
SLAPD_INSTANCE_CONFIG = "/etc/dirsrv/slapd-"
<br>
ETC_DIRSRV_SLAPD_INSTANCE = "/etc/dirsrv/slapd-%s"
<br>
<br>
SLAPD_INSTANCE_CONFIG should be removed.
<br>
<br>
ETC_PKI_TOMCAT_ALIAS = "/etc/pki/pki-tomcat/alias"
<br>
PKI_TOMCAT_ALIAS_DIR = "/etc/pki/pki-tomcat/alias/"
<br>
<br>
We only need one of these.
<br>
</blockquote>
I replaced both, it required some addtional refactoring though.<br>
<br>
<blockquote cite="mid:53971F35.5090006@redhat.com" type="cite">
<br>
<blockquote type="cite">
<blockquote type="cite">ipatests/test_xmlrpc/test_automount_plugin.py:
this change is unnecessary
<br>
</blockquote>
</blockquote>
<br>
I was talking about this one:
<br>
- keyname = u'/home'
<br>
+ keyname = u'/home/'
<br>
It's not only unnecessary, it also breaks a test.
<br>
</blockquote>
Fixed.<br>
<br>
<blockquote cite="mid:53971F35.5090006@redhat.com" type="cite">
<br>
0217: OK
<br>
0218: OK
<br>
0219: Ok
<br>
0220: OK
<br>
0221: OK
<br>
0222: OK
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tomas Babej
Associate Software Engineer | Red Hat | Identity Management
RHCE | Brno Site | IRC: tbabej | freeipa.org </pre>
</body>
</html>