5 Commits

Author SHA1 Message Date
alexhudson 629034815d Tagging 0.3.1 release 2008-02-02 16:30:43 +00:00
alexhudson 09405d9e83 Tweak version number for 0.3.1 2008-02-02 16:28:52 +00:00
alexhudson 2fd6ea3402 Merge post-release fixes from trunk in preperation for 0.3.1. This covers r611:619 2008-02-02 15:42:41 +00:00
alexhudson 924bff9489 Minor changes to make 0.3.0 releasable 2008-01-31 09:34:30 +00:00
alexhudson 068c0aa700 Branching trunk for M3 2008-01-29 18:46:58 +00:00
7 changed files with 68 additions and 28 deletions
+3 -12
View File
@@ -456,18 +456,9 @@ done
rm -f import/clucene/NO-AUTO-GEN rm -f import/clucene/NO-AUTO-GEN
rm -f import/sqlite3/NO-AUTO-GEN rm -f import/sqlite3/NO-AUTO-GEN
SVNREV="`svnversion . 2>/dev/null`" echo \#define BONGO_BUILD_BRANCH \"0.3\" > ./include/bongo-buildinfo.h
if test x$SVNREV = x; then echo \#define BONGO_BUILD_VSTR \"v\" >> ./include/bongo-buildinfo.h
echo Unable to discern build version echo \#define BONGO_BUILD_VER \"0\" >> ./include/bongo-buildinfo.h
echo \#define BONGO_BUILD_BRANCH \"unknown\" > ./include/bongo-buildinfo.h
echo \#define BONGO_BUILD_VSTR \"\" >> ./include/bongo-buildinfo.h
echo \#define BONGO_BUILD_VER \"0\" >> ./include/bongo-buildinfo.h
else
echo SVN Rev at $SVNREV
echo \#define BONGO_BUILD_BRANCH \"trunk\" > ./include/bongo-buildinfo.h
echo \#define BONGO_BUILD_VSTR \"r\" >> ./include/bongo-buildinfo.h
echo \#define BONGO_BUILD_VER \"$SVNREV\" >> ./include/bongo-buildinfo.h
fi
conf_flags="--enable-maintainer-mode" conf_flags="--enable-maintainer-mode"
+25 -7
View File
@@ -3,7 +3,7 @@ AC_PREREQ(2.52)
AC_INIT(src/libs/msgapi/msgapi.c) AC_INIT(src/libs/msgapi/msgapi.c)
AM_INIT_AUTOMAKE(bongo, 0.1.0) AM_INIT_AUTOMAKE(bongo, 0.3.1)
# this space is here to trick autogen.sh # this space is here to trick autogen.sh
AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT([external])
@@ -621,9 +621,19 @@ fi
# import libraries # import libraries
ACX_CLUCENE() ACX_CLUCENE()
if test "x$CLUCENE_LIBS" = "x"; then case "x$CLUCENE_LIBS" in
x)
info_clucene="import"
;;
*import*)
info_clucene="import"
;;
*)
info_clucene="system"
;;
esac
if test "x$info_clucene" = "ximport"; then
AC_MSG_RESULT(Using imported CLucene) AC_MSG_RESULT(Using imported CLucene)
info_clucene="import"
AC_CONFIG_SUBDIRS([import/clucene]) AC_CONFIG_SUBDIRS([import/clucene])
AC_SUBST(CLUCENE_BONGO_API, "1") AC_SUBST(CLUCENE_BONGO_API, "1")
AC_SUBST(CLUCENE_LIBS, "\$(top_srcdir)/import/clucene/src/libclucene.la") AC_SUBST(CLUCENE_LIBS, "\$(top_srcdir)/import/clucene/src/libclucene.la")
@@ -633,19 +643,27 @@ else
AC_MSG_ERROR([Compiling against CLucene system libraries on x86_64 is known to be buggy. Recommend you use --with-clucene=import/clucene]) AC_MSG_ERROR([Compiling against CLucene system libraries on x86_64 is known to be buggy. Recommend you use --with-clucene=import/clucene])
fi fi
AC_MSG_RESULT(Using system CLucene) AC_MSG_RESULT(Using system CLucene)
info_clucene="system"
fi fi
AC_CHECK_SQLITE3() AC_CHECK_SQLITE3()
if test "x$SQLITE_LIBS" = "x"; then case "x$SQLITE_LIBS" in
x)
info_sqlite="import"
;;
*import*)
info_sqlite="import"
;;
*)
info_sqlite="system"
;;
esac
if test "x$info_sqlite" = "ximport"; then
AC_MSG_RESULT(Using imported SQLite) AC_MSG_RESULT(Using imported SQLite)
info_sqlite="import"
AC_CONFIG_SUBDIRS([import/sqlite3]) AC_CONFIG_SUBDIRS([import/sqlite3])
AC_SUBST(SQLITE_CFLAGS, "-I\$(top_srcdir)/import/sqlite3") AC_SUBST(SQLITE_CFLAGS, "-I\$(top_srcdir)/import/sqlite3")
AC_SUBST(SQLITE_LIBS, "\$(top_srcdir)/import/sqlite3/libbongosqlite3.la") AC_SUBST(SQLITE_LIBS, "\$(top_srcdir)/import/sqlite3/libbongosqlite3.la")
else else
AC_MSG_RESULT(Using system SQLite) AC_MSG_RESULT(Using system SQLite)
info_sqlite="system"
fi fi
info_libical="import" info_libical="import"
+8
View File
@@ -223,11 +223,19 @@ StoreCommandSEARCH(StoreClient *client, uint64_t guid, StoreSearchInfo *query)
goto finish; goto finish;
case 1: case 1:
if (!STORE_IS_FOLDER(child.type)) { if (!STORE_IS_FOLDER(child.type)) {
FindPathToDocument(client, child.collection, child.guid, path, sizeof(path));
f = fopen(path, "rb");
if (!f) {
ccode = ConnWriteStr(client->conn, MSG4224CANTREAD);
goto finish;
}
ccode = SearchDocument(client, &child, query, f); ccode = SearchDocument(client, &child, query, f);
fclose(f);
} }
break; break;
} }
} }
ccode = ConnWriteStr(client->conn, MSG1000OK);
finish: finish:
if (stmt) DStoreStmtEnd(client->handle, stmt); if (stmt) DStoreStmtEnd(client->handle, stmt);
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM ""> <!DOCTYPE log4c SYSTEM "">
<log4c version="0.1.0"> <log4c version="0.3.1">
<config> <config>
<bufsize>0</bufsize> <bufsize>0</bufsize>
+3 -7
View File
@@ -157,14 +157,14 @@ class AgentHandler(HawkeyeHandler):
# It's a hostlist, and arraytype is the default port # It's a hostlist, and arraytype is the default port
# Check if value has port and/or weighting # Check if value has port and/or weighting
defaultweight = 1 defaultweight = 1
defultport = arraytype defaultport = arraytype
if dobj.count(':') == 1: if dobj.count(':') == 1:
# Port and hostname # Port and hostname
dobj = dobj + ":" + defaultweight dobj = dobj + ":" + defaultweight
elif dobj.count(':') == 0: elif dobj.count(':') == 0:
# Only hostname # Only hostname
dobj = dobj + ":" + defaultport + ":" + defaultweight dobj = dobj + ":" + str(defaultport) + ":" + str(defaultweight)
# Otherwise, type was string (default). # Otherwise, type was string (default).
@@ -215,11 +215,7 @@ class AgentHandler(HawkeyeHandler):
nkey["revertbox"] = key + "-normal" nkey["revertbox"] = key + "-normal"
nkey["revertjs"] = "$('" + nkey["revertbox"] + "').hide(); $('" + nkey["selectorid"] + "').show();" nkey["revertjs"] = "$('" + nkey["revertbox"] + "').hide(); $('" + nkey["selectorid"] + "').show();"
strthingy = "" nkey["strvalue"] = ','.join(config[key])
for value in config[key]:
strthingy += value + ","
nkey["strvalue"] = strthingy
rkeys.append(nkey) rkeys.append(nkey)
+17
View File
@@ -95,6 +95,20 @@ class AliasHandler(HawkeyeHandler):
else: else:
self.SetVariable("domainwide", None) self.SetVariable("domainwide", None)
# handle the email->username mapping config
mapping_value = 0
if data.has_key("username-mapping"):
mapping_value = int(data["username-mapping"])
if mapping_value < 0 or mapping_value > 2:
mapping_value = 0
self.SetVariable("username-mapping", mapping_value)
for i in [0, 1, 2]:
select = "username-mapping-%d" % i
if i == mapping_value:
self.SetVariable(select, "selected")
else:
self.SetVariable(select, None)
self.SetVariable("useraliasestxt", aliases_txt) self.SetVariable("useraliasestxt", aliases_txt)
self.SetVariable("useraliases", tpl_aliases) self.SetVariable("useraliases", tpl_aliases)
self.SetVariable("domainalias", domainalias) self.SetVariable("domainalias", domainalias)
@@ -134,6 +148,9 @@ class AliasHandler(HawkeyeHandler):
elif key == "domainalias": elif key == "domainalias":
# Actual domain alias val # Actual domain alias val
config["domainalias"] = value config["domainalias"] = value
elif key == "username-mapping":
# Mapping scheme wanted
config["username-mapping"] = int(value)
elif key == "useralias": elif key == "useralias":
# User aliases # User aliases
# Split this, and set array as value. # Split this, and set array as value.
+10
View File
@@ -47,6 +47,16 @@
</script> </script>
</td> </td>
</tr> </tr>
<tr>
<td style="padding-right: 16px;">Default address to username mapping</td>
<td>
<select name="username-mapping">
<option value="0" tal:attributes="selected username-mapping-0">Local part (before @) is the username</option>
<option value="1" tal:attributes="selected username-mapping-1">Full e-mail address is the username</option>
<option value="2" tal:attributes="selected username-mapping-2">Domain part (after @) is the username</option>
</select>
</td>
</tr>
</table> </table>
<br /> <br />
<br /> <br />