Commit graph

1494 commits

Author SHA1 Message Date
hns
aa1e10691f Wrap HopObject array items before building JS Array in HopObject.list(). 2003-10-09 18:17:33 +00:00
hns
1b5cbfd822 Fix cache setter from setcache() to setCache() 2003-10-09 15:24:21 +00:00
hns
3a12fe94ef compile _as_string variants for legacy templates (.hsp) 2003-09-30 10:45:00 +00:00
hns
186f7d37d7 Implemented experimental formatParagraphs() method that uses p tags to format paragraphs 2003-09-19 16:12:48 +00:00
hns
253ca75822 Reworked formatting code
Implemented paragraph formatting
Fixed bug with newlines in pre tag
2003-09-19 16:12:01 +00:00
hns
2015aeef89 Fix bug in previous commit: Make children persistable before setting
collection/mountpoint to virtual, otherwise children will be lost.
2003-09-17 13:52:33 +00:00
hns
d1a7cd1463 Rewrote makePersistentCapable() as makePersistable() to properly handle
collections/mountpoints that do not need to be persisted themselves but
need their child nodes to be processed. This fixed bug 274 "Accessing collections of transient
nodes turns them permanently transient" http://helma.org/bugs/show_bug.cgi?id=274
2003-09-17 13:08:24 +00:00
hns
3a03afc09d Fix bug in needsPersistence() that didn't persist object references. 2003-09-17 13:04:30 +00:00
hns
a2dfb6a9b9 Only check for executable bin/java if JAVA_HOME is set, and if it isn't found,
don't exit but just issue a warning and let the script go on.
2003-09-16 15:30:53 +00:00
hns
e6959610db Fix for http://helma.org/bugs/show_bug.cgi?id=273
Be more precise about encoding newlines: Do not add any new linebreaks,
plus use the system specific line separator.
2003-09-16 13:11:59 +00:00
hns
4466c58864 Constraints-linkmode patch from Daniel Ruthardt
<http://grazia.helma.at/pipermail/helma-dev/2003-August/000272.html>
Changes to patch:
* Changed type.properties option name from "linkmode" to "logic"
* Added support for XOR
* Some internal code reorganization
2003-09-15 16:26:42 +00:00
hns
a73d52d184 Remove support for [named] but still consider it when parsing. 2003-09-15 16:20:56 +00:00
hns
71fae17bf4 Do not try to resort to child object when getting a property (experimental) 2003-09-15 14:42:23 +00:00
hns
512cea20ac Call hasFunction() on the prototype rather than on HopObjects themselves to avoid fetching
references or child objects from database.
2003-09-15 14:41:08 +00:00
hns
fad97efc60 * Always throw exception when there's an error in global code
* Reimplement hasFunction() on prototypes for HopObjects.
* rename putPrototype() to registerPrototype()
2003-09-15 14:40:07 +00:00
grob
7bdbcf1de8 updated to antville 1.1 database schema 2003-09-12 16:15:02 +00:00
hns
976db3a463 Added HopObject.getById() as proposed by Juerg Lehni
http://helma.org/bugs/show_bug.cgi?id=269
Added JavaDoc comments
2003-09-10 10:59:24 +00:00
hns
2b9cee82da Print out exception's toString() rather then just its class. 2003-09-09 11:23:15 +00:00
hns
5577263f66 * When there is a syntax error in any file associated with a prototype, always
throw an error and display a proper error message when on object of that type is
accessed.
*  RhinoEngine.hasFunction() now checks on the actual object (wrapper) and
thus is always right.
*  Unwrap WrappedException when caught in RhinoEngine.invoke()
*  Use helma.util.CacheMap instead of java.util.WeakHashMap for wrapper caching,
possibly fixing a GC problem
2003-09-05 19:53:07 +00:00
hns
6eb8cf9442 Try to use proper character encoding in multipart/form-data (file upload) requests. 2003-09-05 19:32:34 +00:00
hns
fb3196cfd5 Unwrap JS-native number and boolean objects in put() and return them as
they are in get().
2003-09-05 15:44:24 +00:00
hns
6d7a8eba66 Make sure the array returned by HopObject.list() has its prototype set properly. 2003-09-04 20:03:41 +00:00
hns
76a07955d3 Allow unprototyped JavaScript objects as macro handlers. 2003-09-03 10:05:21 +00:00
hns
e3dfc52191 Return a native JavaScript array in HopObject.list() rather than a wrapped Java array. 2003-09-02 16:55:24 +00:00
hns
75c7dff23b Fix bug in HopObject.remove() where we prematurely call unset().
The right thing *seems* to be to actually always call removeNode on the node's parent.
2003-09-02 16:08:05 +00:00
hns
262ba9d5e3 Remove debug message when removing function 2003-08-29 15:49:58 +00:00
hns
1857ff79c5 Increased version to 1.3.1 2003-08-28 12:17:53 +00:00
hns
8e4c36d83e Token definitions moved from org.mozilla.javascript.TokenStream to
org.mozilla.javascript.Token in the new Rhino CVS snapshot.
2003-08-27 15:55:36 +00:00
hns
31987ea058 Removing rhino.jar from lib/ext (it's in lib now). 2003-08-27 15:54:03 +00:00
hns
f9afc55c26 Adding rhino.jar to list of system classes, removing jdom.jar. 2003-08-27 15:53:15 +00:00
hns
e787d2f209 Removing jdom.jar. 2003-08-27 15:52:05 +00:00
hns
18684f94ec Adding Rhino CVS snapshot from 2003/08/27. 2003-08-27 15:50:03 +00:00
hns
2e315e21d9 Make HTTP response status default to 200. 2003-08-25 14:40:33 +00:00
hns
7436ee2237 * Changed Helma version to 1.3.1
* Made CVS tag of apps configurable with cvs.apps.tag option
2003-08-20 12:08:10 +00:00
hns
f5089a8c01 return wrapped.toString() in toString(). 2003-08-19 14:11:46 +00:00
hns
5c9df59014 Check if Server singleton exists before trying to get the list of extensions from it. 2003-08-18 14:50:18 +00:00
hns
c583133234 Catch all exceptions in stopAll() application loop to make sure all apps are stopped. 2003-08-18 12:24:56 +00:00
hns
a5feff74f6 Added "..." to shutdown stderr message. 2003-08-18 12:24:16 +00:00
hns
ebdf361ce5 Upgrade from Mckoi release 1.0.1 to 1.0.2 2003-08-18 11:55:34 +00:00
hns
a3995df1af Remove obsolete mysql driver. If people want to run Helma with MySQL,
they should get an up-to-date version from www.mysql.com.
2003-08-18 11:54:24 +00:00
hns
1a45d7e049 Changed getxxx() to getXxx() in bean getters and setters as rhino is able to
deal with this and create obj.xxx properties.
2003-08-18 11:53:01 +00:00
hns
303e0f4c55 Print out message in shutdown hook so people know everything's ok. 2003-08-18 11:51:10 +00:00
hns
3be7e4db54 Fix NullPointerException in writeln() introduced in previous commit. 2003-08-18 11:13:39 +00:00
hns
2014f13cfd Omit prefix and suffix when writing out default macro value as suggested in
http://www.helma.org/bugs/show_bug.cgi?id=267#c1
2003-08-18 10:29:34 +00:00
hns
7dc1bb8a2f setJavaPrimitiveWrap(false) in wrap factory and remove special handling for strings. 2003-08-18 10:28:45 +00:00
hns
adba53e86a Handle Undefined.instance and ScriptableObject.NOT_FOUND in ScriptingEngine.get().
Fix for bug 267: http://www.helma.org/bugs/show_bug.cgi?id=267
2003-08-18 10:27:55 +00:00
hns
331dc61787 Committed code improvements proposed by Jürg Lehni
http://grazia.helma.at/pipermail/helma-dev/2003-August/000330.html
2003-08-18 09:58:26 +00:00
hns
99a0c1ea84 Fixed a few bugs caused by bad argument checking, mostly
null that should have been Undefined.instance.
2003-08-08 14:23:12 +00:00
hns
cd10424299 Accept INode instead of HopObject as argument since HopObject now
implements org.mozilla.javascript.Wrapped and will be unwrapped when passed
outside the scripting engine.
2003-08-08 14:03:53 +00:00
hns
d8236fb3b5 Do not override wrapAsJavaObject() in WrapFactory since it is only called
after we already did our checks in wrap() or wrapNewObject().
2003-08-08 12:19:00 +00:00