diff options
| author | spwhitton <spwhitton@web> | 2015-08-05 21:29:04 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2015-08-05 21:29:04 +0000 |
| commit | ffe9d0e1d67ba1990438522ef9ffa240db261c5e (patch) | |
| tree | 09021e6caf0c821c184602b472ceca22550fc0a0 /doc/todo | |
| parent | c62c2be196e203ddf71a167650aa302ca8e93a39 (diff) | |
Added a comment
Diffstat (limited to 'doc/todo')
| -rw-r--r-- | doc/todo/File.containsConfPair___38___LightDM.autoLogin_properties/comment_2_9303138a3be2fb639498737afe60b87d._comment | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/todo/File.containsConfPair___38___LightDM.autoLogin_properties/comment_2_9303138a3be2fb639498737afe60b87d._comment b/doc/todo/File.containsConfPair___38___LightDM.autoLogin_properties/comment_2_9303138a3be2fb639498737afe60b87d._comment new file mode 100644 index 00000000..7b01dd71 --- /dev/null +++ b/doc/todo/File.containsConfPair___38___LightDM.autoLogin_properties/comment_2_9303138a3be2fb639498737afe60b87d._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="spwhitton" + subject="comment 2" + date="2015-08-05T21:29:04Z" + content=""" +Thanks for the input! + +I agree that generalising to lines under sections is a good idea, but I don't think it can be as simple as a property taking the full section header and the full settings line. That's because there is a need to update the values of keys under sections: in the example LightDM case, the line `autologin-user=someone` must *replace* any `autologin-user=someone_else`. So the function needs to know the key, not just the whole line. + +So to generalise containsConfPair, it might take a section header, key, value and a specification of what kind of config file it is. That specification would be a type containing the comment character, the formatting of section headers and the use of spaces, colons or equals signs between keys and values. What do you think to this? +"""]] |
