1 Commits

Author SHA1 Message Date
alexhudson 479a215835 Tagging 0.3.0 release 2008-01-31 09:36:35 +00:00
6 changed files with 16 additions and 65 deletions
+7 -25
View File
@@ -3,7 +3,7 @@ AC_PREREQ(2.52)
AC_INIT(src/libs/msgapi/msgapi.c)
AM_INIT_AUTOMAKE(bongo, 0.3.1)
AM_INIT_AUTOMAKE(bongo, 0.3.0)
# this space is here to trick autogen.sh
AM_GNU_GETTEXT([external])
@@ -621,19 +621,9 @@ fi
# import libraries
ACX_CLUCENE()
case "x$CLUCENE_LIBS" in
x)
info_clucene="import"
;;
*import*)
info_clucene="import"
;;
*)
info_clucene="system"
;;
esac
if test "x$info_clucene" = "ximport"; then
if test "x$CLUCENE_LIBS" = "x"; then
AC_MSG_RESULT(Using imported CLucene)
info_clucene="import"
AC_CONFIG_SUBDIRS([import/clucene])
AC_SUBST(CLUCENE_BONGO_API, "1")
AC_SUBST(CLUCENE_LIBS, "\$(top_srcdir)/import/clucene/src/libclucene.la")
@@ -643,27 +633,19 @@ else
AC_MSG_ERROR([Compiling against CLucene system libraries on x86_64 is known to be buggy. Recommend you use --with-clucene=import/clucene])
fi
AC_MSG_RESULT(Using system CLucene)
info_clucene="system"
fi
AC_CHECK_SQLITE3()
case "x$SQLITE_LIBS" in
x)
info_sqlite="import"
;;
*import*)
info_sqlite="import"
;;
*)
info_sqlite="system"
;;
esac
if test "x$info_sqlite" = "ximport"; then
if test "x$SQLITE_LIBS" = "x"; then
AC_MSG_RESULT(Using imported SQLite)
info_sqlite="import"
AC_CONFIG_SUBDIRS([import/sqlite3])
AC_SUBST(SQLITE_CFLAGS, "-I\$(top_srcdir)/import/sqlite3")
AC_SUBST(SQLITE_LIBS, "\$(top_srcdir)/import/sqlite3/libbongosqlite3.la")
else
AC_MSG_RESULT(Using system SQLite)
info_sqlite="system"
fi
info_libical="import"
-8
View File
@@ -223,19 +223,11 @@ StoreCommandSEARCH(StoreClient *client, uint64_t guid, StoreSearchInfo *query)
goto finish;
case 1:
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);
fclose(f);
}
break;
}
}
ccode = ConnWriteStr(client->conn, MSG1000OK);
finish:
if (stmt) DStoreStmtEnd(client->handle, stmt);
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">
<log4c version="0.3.1">
<log4c version="0.3.0">
<config>
<bufsize>0</bufsize>
+8 -4
View File
@@ -157,14 +157,14 @@ class AgentHandler(HawkeyeHandler):
# It's a hostlist, and arraytype is the default port
# Check if value has port and/or weighting
defaultweight = 1
defaultport = arraytype
defultport = arraytype
if dobj.count(':') == 1:
# Port and hostname
dobj = dobj + ":" + defaultweight
elif dobj.count(':') == 0:
# Only hostname
dobj = dobj + ":" + str(defaultport) + ":" + str(defaultweight)
dobj = dobj + ":" + defaultport + ":" + defaultweight
# Otherwise, type was string (default).
@@ -215,7 +215,11 @@ class AgentHandler(HawkeyeHandler):
nkey["revertbox"] = key + "-normal"
nkey["revertjs"] = "$('" + nkey["revertbox"] + "').hide(); $('" + nkey["selectorid"] + "').show();"
nkey["strvalue"] = ','.join(config[key])
strthingy = ""
for value in config[key]:
strthingy += value + ","
nkey["strvalue"] = strthingy
rkeys.append(nkey)
-17
View File
@@ -95,20 +95,6 @@ class AliasHandler(HawkeyeHandler):
else:
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("useraliases", tpl_aliases)
self.SetVariable("domainalias", domainalias)
@@ -148,9 +134,6 @@ class AliasHandler(HawkeyeHandler):
elif key == "domainalias":
# Actual domain alias val
config["domainalias"] = value
elif key == "username-mapping":
# Mapping scheme wanted
config["username-mapping"] = int(value)
elif key == "useralias":
# User aliases
# Split this, and set array as value.
-10
View File
@@ -47,16 +47,6 @@
</script>
</td>
</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>
<br />
<br />