Commit graph

1579 commits

Author SHA1 Message Date
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
hns
98386829cf Adding Linux start script from Andreas Bolka 2003-12-01 15:18:45 +00:00
hns
18922d4e37 Applied fix from Juerg Lehni for parents defined as COMPLEX_REFERENCE that
was posted on September 19 and somehow fell through the gutter.
2003-12-01 13:42:11 +00:00
hns
0c9ecfd10d Set application classloader on the Rhino context to our app classloader. 2003-12-01 13:28:20 +00:00
hns
275d882f92 Sorry Stefan, I was completely exhausted ;-) 2003-11-29 11:37:08 +00:00
hns
bbc63c289b add commons-logging.jar to classpath 2003-11-28 22:17:54 +00:00
hns
c4f51228fe make sure logdir is not null in getLogger() 2003-11-28 22:17:10 +00:00
hns
811410599a Checking in Commons Logging support from Daniel, plus a major rewrite
of the Helma logging framework.
2003-11-28 20:15:28 +00:00
hns
d8b1f178ad Various minor enhancements and cleanups:
* Implemented rootId property to set the id of the app's root object
* Do not call invokeFunction with a null argument array
* Implement toString() method
* Plus some more minor stuff
2003-11-28 18:27:35 +00:00
hns
874d9fcf97 Changed logging in CacheMap to be Logging framework independent
(just use the application's logEvent() method)
2003-11-28 18:08:06 +00:00
hns
1d73c147d0 Added HopObject constructor, improved variable naming in jsConstructor 2003-11-28 18:06:01 +00:00
hns
8da0efb7c0 Adding Jakarta Commons Logging 1.0.3 jar 2003-11-28 18:04:09 +00:00
hns
b1fc070efc Avoid unnecessary log messages. 2003-11-28 18:00:59 +00:00
hns
48ed72b6b4 * Make check for _prototype and _name column case insensitive when inserting relational objects
* Implemented feature to evict certain prototypes from cache when they are received via replication.
   To activate this, add the line
        _evictOnReplication = true
  to the type.property file
2003-11-28 13:53:43 +00:00
hns
d0c7012318 Slightly improved error message when DBSource could not be loaded
(include possibility that driver couldn't be loaded)
2003-11-28 13:09:05 +00:00
hns
a79dfbde18 Rename pushStringBuffer() and popStringBuffer() to push() and pop().
Keeping old versions for backwards-compatibility for the time being.
2003-11-26 13:45:30 +00:00
hns
5647d2bfdc Unwrap arguments to Java objects in addPart(). Also, if the part is a java.io.File,
set the part's file name if no explicit file name is given.
2003-11-26 11:57:56 +00:00
hns
6da249a73d Rethrow wrapped ConcurrencyExceptions. Also updated code to
rethrow wrapped TimeoutExceptions.
2003-11-26 11:38:36 +00:00
hns
846ff46e1e Add leading space in " WHERE " when composing select statements.
Fixes bug http://www.helma.org/bugs/show_bug.cgi?id=313
2003-11-21 16:13:19 +00:00
hns
babe14b16f Reverse sequence of <get-from-nodemgr> and <get-from-propmap> in
getProperty(). This may return old cached properties from the propmap when it
shouldn't, but it fixes the much worse bug where embedded-db-collections are
created from scratch again and again.
2003-11-21 10:59:10 +00:00
hns
76abbbdddc minor formatting fix 2003-11-21 10:56:27 +00:00
hns
88b2d41536 Remove code that was commented out and isn't coming back 2003-11-19 15:10:11 +00:00
hns
a8da2b48bd Re-add check if Relation is PRIMITIVE or REFERENCE when creating properties in createNode
(was removed yesterday, not sure it's really needed)
Remove code that was commented out and isn't coming back
2003-11-19 15:09:54 +00:00
hns
615c9c65d1 Set initial TypeInfo.lastUpdate to -1 so a Prototype with no files (lastUpdate == 0)
will be evaluated at least once. This fixes a bug with empty prototypes not having their
prototype set (i.e. get(), list(), href() etc were unavailable).
2003-11-19 14:43:22 +00:00
hns
37436236df Add an intermediate step when fetching properties from result sets in createNode() so that
we can be sure to use the proper DbMapping for column-to-property mappings (which may change
according to the object's prototype column)
This should fix bug 310. http://helma.org/bugs/show_bug.cgi?id=310
2003-11-18 17:39:22 +00:00
hns
c37d1670d5 Implement protected setName() method to set the property's name 2003-11-18 17:36:46 +00:00
hns
6453f53bd9 Always return our own DbColumns[]. This is needed in order to add/change mappings
in extended prototypes.
2003-11-18 17:36:13 +00:00
hns
b97ba99e22 Reworked Mail object contstuctor code:
* Do not set smtp host unless it is explicitely set in the properties
 * Set message encoding as defined in mail.charset property, defaults to ISO8859-15
 * Cache Mail session in Mail object prototype
 * Store app properties as Java fields in prototype rather than as JS property in constructor
2003-11-18 15:23:09 +00:00
hns
0ea547488b Use Session.getInstance() rather than Session.getDefaultInstance(). This creates a new Session for
each Mail() object, creating an additional overhead of ~10millis, but it picks up changes in the
properties files, fixing bug 308.
http://www.helma.org/bugs/show_bug.cgi?id=308
2003-11-18 12:29:41 +00:00
hns
7040da5438 Update to JavaMail 1.3.1 FCS 2003-11-18 10:32:14 +00:00
hns
10540b83e3 Remove unused imports 2003-11-14 13:40:01 +00:00
hns
e486bbb9b0 Added experimental res.forward() to forward a request to a local (static) resource.
The base resource must be mounted as <app>.protectedStatic in the apps.properties file.
Currently no Content-Type is set on the response.
2003-11-14 13:14:07 +00:00
hns
ea32bc9da4 Added experimental res.forward() to forward a request to a local (static) resource.
The base resource must be mounted as <app>.protectedStatic in the apps.properties file.
2003-11-14 13:13:20 +00:00
hns
0c6d25e038 Added two options for apps.properties for directory indices and index pages:
<app>.staticIndex = true
<app>.staticHome = index.html, default.htm
Default values are (false) for directory listings and "index.html, index.htm" for index pages.
2003-11-14 13:11:25 +00:00
hns
6f213b481c Implement query hints as suggested by bug 306
http://helma.org/bugs/show_bug.cgi?id=306
2003-11-12 12:47:19 +00:00
hns
ae56944420 Clean up Java-Object JS-constructor mess: get the right
constructor and invoke it instead of trying them all.
2003-11-10 16:30:24 +00:00
hns
49b08cc5a7 Update version date 2003-11-06 15:31:08 +00:00
hns
0655b03c60 Simplify property access to only use node or nodeless methods, not both
Fix bug in getById() reported by Juerg Lehni
Throw EvaluatorException instead of JavaScript exception
Remove catched exception not anymore thrown by new rhino snapshot
2003-11-06 14:36:18 +00:00
hns
286d522f0d Adapt to new TokenStream constructor signature from rhino CVS snaphost.
Remove unused imports.
2003-11-06 14:33:21 +00:00
hns
e6cd999687 Remove unused import statements 2003-11-06 14:32:42 +00:00
hns
2d23806586 Update to rhino CVS snapshot from 2003/11/04 2003-11-06 14:31:40 +00:00
hns
2c44477ede Update to Jetty 4.2.14 2003-11-06 14:30:38 +00:00
hns
646ef8f495 Do not wrap primitive property values as objects when retrieving them - as objects
they are unusable for many purpuses, e.g. testing for equality via ==.
2003-11-06 12:00:28 +00:00
hns
16621735c6 Cleanup import statements. 2003-11-05 11:56:19 +00:00
hns
87aca52907 Make return values more "JavaScript compatible" (long->double, String[]-> Object)
to make them work with recent rhino snapshots.
2003-11-05 11:55:45 +00:00