http://bugzilla.moblin.org/show_bug.cgi?id=7707
--- Comment #6 from pohly <patrick.ohly(a)intel.com> 2009-11-23 02:25:35 PST ---
(In reply to comment #5)
(In reply to comment #4)
> Comments:
> 1. In the commit message of 'config: reorganized for shared config layout
> (MB#7707)', there is a typo(./config).
> "~/.config/syncevolution" instead of
> "./config/syncevolution/scheduleworld") and then config files include
Ack.
I thought I had found the place that you meant, but I'm no longer sure:
void SyncConfig::addPeers(const string &root,
const std::string &configname,
SyncConfig::ServerList &res) {
FileConfigTree tree(root, "", false);
list<string> servers = tree.getChildren("");
BOOST_FOREACH(const string &server, servers) {
// sanity check: only list server directories which actually
// contain a configuration. To distinguish between a context
// (~/.config/syncevolution/default) and an HTTP server config
// (~/.config/syncevolution/scheduleworld), we check for the
// "peer" subdirectory that is only in the former.
These paths are correct.
Can you clarify which code you mean?
> 2. A suggestion:
> new FileConfigTree(templateConfig, "", false)
> there are many places using above statement, default parameter values might be
> applied
Okay.
I only found two places:
$ grep -r -i "FileConfigTree(" src
...
src/syncevo/SyncConfig.cpp: boost::shared_ptr<FileConfigTree> tree(new
FileConfigTree(templateConfig, "", false));
src/syncevo/VolatileConfigTree.h: FileConfigTree("/dev/null", "",
false)
Did I miss other places?
The reason for not making the new parameters default values was to catch code
which hadn't been adapted to the new semantic of FileConfigTree (root is one
level up, paths have to be longer to match the same nodes). I still think this
is worthwhile.
> 3. I don't find any place in dbus API document to declare
what 'configuration
> name is empty' means.
>
> Questions:
> 1. what's the difference between {"" : {}} and {}?
The first one is a config with no sources configured and no sync properties.
But it is not completely empty, at least the node for sync properties exists.
I've added a clarification to the Session API spec.
--
Configure bugmail:
http://bugzilla.moblin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.