Commit graph

1511 commits

Author SHA1 Message Date
hns
33175a07c8 Remove unused import statements.
Changed TypeInfo variable name from "info" to "type"
2003-10-22 16:37:03 +00:00
hns
0ca20d5842 Remove unused import statements and updated some javadoc comments 2003-10-22 16:36:24 +00:00
hns
84416e8a43 Remove unused import statements and other unnecessary code 2003-10-22 16:34:06 +00:00
hns
60cbbba73b Remove unused import statements 2003-10-22 16:31:07 +00:00
hns
822307984b Performance improvement in HopObject.get() by trying child object first and property afterwards. 2003-10-15 16:55:29 +00:00
hns
3271f940cd * Make JavaScript HopObject.get() return generic Node properties in addition to child objects.
* Added checkNode method() to refresh node in case it has been invalidated.
2003-10-15 16:10:26 +00:00
hns
c1ddf495ca Implement HopObject.set() function compatible to Helma 1.2 2003-10-15 13:55:10 +00:00
hns
c9efe6d8ea Implement support for hrefFunction and hrefSkin postprocessing options, fixing bug 292
http://helma.org/bugs/show_bug.cgi?id=292
2003-10-15 13:22:04 +00:00
hns
8b8afac449 * Increase default uploadLimit for file upload to 4 MB 2003-10-14 09:48:54 +00:00
hns
710dd12e17 * Moved getSubHeader() method from FileUpload to MimePart and made it public static
* Check charset in MimePart.getText()
* Increase default uploadLimit in FileUpload to 4 MB
2003-10-14 09:48:30 +00:00
michi
c55a192d5d wrapper function Xml.getFromString(str) called Xml.get() instead of Xml.getFromString(str, null) 2003-10-13 17:43:16 +00:00
hns
fa4ce3ed6f Recognize application/text in getText() 2003-10-10 19:03:07 +00:00
hns
a4e558cb85 Implement support for Xml.get() and Xml.getFromString().
Added JavaDoc comments.
2003-10-10 18:55:30 +00:00
hns
36e0b31790 * Implement mechanism to register parent nodes with changed child nodes with the transactor.
When finishing the transaction, the transactor will call setLastSubnodeChange() on 
   the parent nodes. This is necessary because the lastSubnodeChange flag should only be 
   set after child node changes have been committed to the database. 
   (Fixes bug 285 http://helma.org/bugs/show_bug.cgi?id=285 )
* Changed the way select statements are built: Use tablename.* rather than * to prevent 
   columns from additionalTables are fetched unnecessarily.
* Code cleanup everywhere, mostly in Transactor.java, Relation.java and NodeManager.java
2003-10-10 18:09:52 +00:00
hns
6f8c9b9837 * Implement mechanism to register parent nodes with changed child nodes with the transactor.
When finishing the transaction, the transactor will call setLastSubnodeChange() on 
the parent nodes. This is necessary because the lastSubnodeChange flag should only be set 
after child node changes have been committed to the database. 
(Fixes bug 285 http://helma.org/bugs/show_bug.cgi?id=285 )
* Changed the way select statements are built: Use tablename.* rather than * to prevent 
columns from additionalTables are fetched unnecessarily.
* Code cleanup everywhere, mostly in Transactor.java, Relation.java and NodeManager.java
2003-10-10 18:09:51 +00:00
hns
507949310c * Implement mechanism to register parent nodes with changed child nodes with the transactor.
When finishing the transaction, the transactor will call setLastSubnodeChange() on 
the parent nodes. This is necessary because the lastSubnodeChange flag should only be 
set after child node changes have been committed to the database. 
(Fixes bug 285 http://helma.org/bugs/show_bug.cgi?id=285 )
* Changed the way select statements are built: Use tablename.* rather than * to prevent 
columns from additionalTables are fetched unnecessarily.
* Code cleanup everywhere, mostly in Transactor.java, Relation.java and NodeManager.java
2003-10-10 18:09:50 +00:00
hns
8774a52e44 Consider comma separated lists of IP addresses in addIPAddress() 2003-10-09 18:32:26 +00:00
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