Commit graph

1521 commits

Author SHA1 Message Date
hns
39d8683b84 Use Relation's additionalTables option when building queries.
This activates the additionalTables feature contributed by Juerg Lehni.
2003-10-23 14:35:02 +00:00
hns
e45ef47dee Commit parsed filter feature contributed by Juerg Lehni. 2003-10-23 14:33:59 +00:00
hns
f08e350367 Renamed invoke methods to make their use clearer. Some minor code cleanup. 2003-10-23 12:53:43 +00:00
hns
c0830be336 DbMapping: Changed most fields visibility to private
DbMapping:   Change getPropertyRelation visibility to private, always use
             getSubnodeRelation from outside instead.
Node:        Rewrote getProperty(String) to be simpler and easier to understand.
             furthermore, getProperty(String) now also returns child objects (subnodes)
             making it unnecessary for calling code to also use getChildElement()
             or getSubnode()
Node:        Fixed NullPointerException in getElementName() for transient nodes
Node:        Use DbMapping.getSubnodeRelation() instead of DbMapping.getPropertyRelation()
NodeManager: Fixes in getNode() methods, which now invoke each other depending on
             key/query type
Relation:    Removed unused arguments from constructor
Relation:    Fixed NullPointerException in createOnDemand()
HopObject:   Do not use getChildElement() in jsFunction_get() (see change in
             Node.getProperty())
HopObject:   Handle case where jsFunction_get() and jsFunction_set() are called with
             non-strings that should be handled as string, e.g.
             org.mozilla.javascript.NativeString

cosmetic cleanup everywhere (imports, unneeded casts, unused fields etc.)
2003-10-23 12:00:35 +00:00
hns
ccf197aeac throw EvaluatorException instead of RuntimeException to prevent Rhino exception wrapping 2003-10-23 11:44:58 +00:00
hns
72e12535f6 Cosmetic cleanup: imports, unused code. 2003-10-23 11:44:36 +00:00
hns
0f5abe0028 throw EvaluatorException instead of RuntimeException to prevent Rhino exception wrapping,
change to new DatabaseObject constructor signature.
2003-10-23 11:44:13 +00:00
hns
010fef5ee4 Minor cosmetic fixes, changed constructor signature 2003-10-23 11:43:28 +00:00
hns
2efb42922d Fix import statements and javadoc comments 2003-10-23 11:04:37 +00:00
hns
dac8f7d54c Fix import statements 2003-10-22 16:53:40 +00:00
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