Commit graph

1623 commits

Author SHA1 Message Date
stefanp
f9618455ac removed test line, stupid me 2004-01-05 13:35:49 +00:00
stefanp
4e36815f61 fixed possible NullPointerException when called without homedir-setting
changed order in parseArgs()
2004-01-05 13:23:14 +00:00
stefanp
50be1bb115 added hasXX-methods 2004-01-05 13:20:11 +00:00
stefanp
c18761625b Mail.setReplyTo() wasn't activated for rhino usage 2003-12-23 12:39:10 +00:00
stefanp
ed6e4d1125 Overhauled server startup checks + initialization
Config can be used from Commandline.java to construct a server
that doesn't open any ports.
2003-12-19 17:55:30 +00:00
hns
b7a1f113b5 Do not prefetch children in zero-argument HopObject.list(). We leave
it to the app writer to use loadmode=aggressive.
2003-12-19 16:30:59 +00:00
hns
e57a939fa0 Make type handling case-insensitive, change default prototypes to first-letter-upper-case,
do some heavily needed refactoring around helma.scripting.rhino.HopObject and
helma.framework.core.TypeManager.
2003-12-18 17:34:13 +00:00
hns
3f284fa899 Rephrase javadoc class summary comment 2003-12-18 16:42:55 +00:00
hns
19975df982 Avoid deprecated version of ScriptableObject.setAttributes() 2003-12-18 09:51:29 +00:00
hns
e1e09c943c Remove unused field 2003-12-18 09:31:30 +00:00
hns
03dd0ca1dc Fix imports, Javadocs 2003-12-18 09:31:12 +00:00
hns
7880764599 Fix Javadocs 2003-12-18 09:29:06 +00:00
hns
27ba52be0e Fix URLs in Javadoc 2003-12-18 09:28:49 +00:00
hns
7cf471b69b Change JavaScriptException to EvaluatorException, fix Javadoc. 2003-12-18 09:28:23 +00:00
hns
026d6e1429 Fix object precedence in parent prototype registration: If an object
is already registered with a parent prototype's name, leave it as it is
and don't overwrite it since it has higher precedence than we have.
2003-12-16 13:14:07 +00:00
hns
144dee55cd logdir must not be null. Use "log" as default value. 2003-12-16 12:38:16 +00:00
hns
2c7bbc011c Minor comment fixes. 2003-12-15 17:16:43 +00:00
hns
c0076898b0 Added Helma Command line invoker contributed by Stefan Pollach 2003-12-15 17:08:06 +00:00
hns
a4ba238530 Code cleanup in helma.main package. Made most methods in Server non-static
for the sake of consistency.
2003-12-15 17:07:06 +00:00
hns
09d983bd29 Combine XMLRPC and EXTERNAL execution in RequestEvaluator.run() 2003-12-15 15:19:19 +00:00
hns
f2802894fa additionalTables fix from Juerg 2003-12-12 19:01:58 +00:00
hns
0b399703b2 User Server.getLogger() to get the Logger. 2003-12-12 11:37:05 +00:00
hns
fb7c48416d Always set helma.logdir when using helma logging, even when
logdir is set to console.
Disable checkRunning() because of connection timeout problems.
2003-12-12 11:36:26 +00:00
hns
01a7123cac Set application base uri to mountpoint in start() rather than in
bind() so it is set when onStart() function is executed.
2003-12-12 11:10:12 +00:00
hns
0e6eca74ee Check property name in getFromNode() 2003-12-10 13:33:20 +00:00
hns
90d5961546 Make the log writer thread a daemon thread 2003-12-09 17:04:49 +00:00
hns
f3a623cf95 * Adding invokeExternal() code from Stefan Pollach (should later be consolidated
by merging it with invokeXmlRpc() - the only difference is in the XML-RPC access check,
  so we shouldn't have to duplicate all code.)
* Make execution of global onStart() function synchronous in Application.start()
* Fix bug where user.onLogout() is called on a released RequestEvaluator
2003-12-09 16:47:44 +00:00
hns
ae1aa70fdf * If a script function returns an instance of org.mozilla.javascript.Wrapper
always unwrap it before processing/returning.
* If a script function returns null or undefined, return null even when
  invoke() was called in XML-RPC mode.
2003-12-09 16:34:05 +00:00
hns
b85b9f206b Catch UnknownHostException in checkRunning() gracefully. 2003-12-04 09:57:49 +00:00
hns
c833015c1b Do not set values to JavaScript undefined. Rather, treat these as deletes. 2003-12-03 15:19:17 +00:00
hns
b622dbd039 Add support for setting HELMA_USER and run helma with sudo -u $HELMA_USER 2003-12-03 14:52:29 +00:00
hns
0f77c3461b Do not issue a getNodeByKey() if we get a node by relation, just because it's not
a complex reference or create-one-demand relation! This was introduced because
we assumed that the calling code would know what it was doing, i.e. only call this for
objects contained in its subnode index, but as it seems to turn out it didn't, and this isn't
really necessary after all.
2003-12-03 11:58:36 +00:00
hns
2a8a21f822 Use Relation.createOnDemand() to find out if we should do a NodeManager.getNode[ByRelation]()
in Node.getProperty(). This was there in the old version of Node.getProperty() but was
kicked out in the recent rewrite, which caused NodeManager.getNode() to be called when it
shouldn't.
2003-12-03 11:56:04 +00:00
hns
9d6bd72355 Use getChildElement() rather than getSubnode() to get a child in HopObject.get() -
otherwise, child objects are always accessible via id, even if accessname is specified.
2003-12-03 11:33:56 +00:00
hns
04fd6b05fe Minor cleanup. 2003-12-03 10:52:17 +00:00
hns
f2938295ec Fix HopObject.list() which was broken after adding HopObject.list(start, length) yesterday.
(ScriptableObject.defineClass does not support method overloading)
2003-12-03 10:45:57 +00:00
hns
d155ee6b1a do checkNode() as first thing in HopObject.list() 2003-12-03 10:14:35 +00:00
hns
6b443f211c Fix bug where we forgot to check for NOT_FOUND in jsFunction_get() 2003-12-02 19:37:22 +00:00
hns
bd499db5ab Clean up old code 2003-12-02 17:45:28 +00:00
hns
076b4f7a60 Always mark prototype as updated if a zip files contains some part of it,
even if it's a skin file.
2003-12-02 17:44:53 +00:00
hns
caf5bd02af Prevent Nullpointer Exception in toString() 2003-12-02 17:43:17 +00:00
hns
277d20ac2e Fix bug <http://helma.org/bugs/show_bug.cgi?id=304>, skins in zip files not present in skin map. 2003-12-02 16:57:25 +00:00
hns
42e2552fbe Implement HopObject.list(start, length) as proposed by Tobi in
<http://helma.org/bugs/show_bug.cgi?id=303>. This is similar to
HopObject.list(), except the array it returns only contains the child
objects in the range specified by the start and length arguments.
This also does a prefetchChildren() on the specified range to optimize
database access.
2003-12-02 16:42:13 +00:00
hns
a48bec8be4 Cleaned up creation of SELECT statement for filter.additionalTables option. 2003-12-02 16:26:32 +00:00
hns
415a6cbb27 Adding dispose() as suggested by Jürg Lehni on helma-dev. 2003-12-02 15:58:37 +00:00
hns
6170e10a5a Try getting a child object by ID if it isn't found as property. This is due to the
change in helma.objectmodel.db.Node.getProperty() where child nodes are
only returned as properties if either accessName or groupby is specified.
http://helma.org/bugs/show_bug.cgi?id=315
2003-12-02 15:49:39 +00:00
hns
0e76a161a1 Only try to get child node as property if either accessName or groupby is specified.
This fixes http://helma.org/bugs/show_bug.cgi?id=315
2003-12-02 15:48:18 +00:00
hns
224085c159 Upgrade to Rhino snapshot from 2003/12/01 2003-12-02 15:18:28 +00:00
hns
1a090a7ad8 Increase version to 1.3.2-pre2 2003-12-01 15:27:00 +00:00
hns
3ca0424f38 Include scripts directory in package build,
update version to 1.3.2-pre2
2003-12-01 15:26:08 +00:00