Commit graph

1188 commits

Author SHA1 Message Date
hns
0cbc25c04a Added support for complex object references as specified in
"New Format for Object-Relational Mapping (Version 2)"
2003-04-25 16:08:40 +00:00
hns
20df514693 Added getPrototypeByName() method to retrieve a prototype by name. 2003-04-25 15:59:48 +00:00
hns
4da79ad8f2 Just filled in a few javadocs 2003-04-25 14:27:47 +00:00
hns
ec55ce1042 * Parse additional join conditions for child collections as defined in
http://helma.org/stories/47853/
* When enforcing constraints try to preserve the type of the original
  property using the new Node.set() method.
2003-04-23 12:38:30 +00:00
hns
4501c5cf50 * Use specific methods when reading a Date or Time
column from a ResultSet in the constructor
* Add set() method that allows to directly set the value and type
  of a property
* Change the return type for getNonVirtualParent from INode to Node.
2003-04-23 12:36:43 +00:00
hns
4e47de9963 * Add setValue() method that allows to directly set the value and type
of the property
* Change the default string representation of date values to be
  compatible with MySQL.
2003-04-23 12:34:27 +00:00
hns
bdb1cb8f06 Make sure swallowNewlines is reset when the text after a block
tag resumes, even if no newline has been encountered.
2003-04-23 10:16:34 +00:00
hns
320d60f19a Added public getNodeManager() method 2003-04-17 09:34:27 +00:00
hns
a63398c8f5 Updated version date. 2003-04-16 13:38:31 +00:00
hns
61274e4350 Implement exportNode() method to export a node into a different
(relational) database than its default one. (The database must
contain a compatible table.)
2003-04-16 13:32:38 +00:00
hns
01016e6236 Be more specific in declaration of thrown Exceptions 2003-04-16 13:31:10 +00:00
hns
a9aab2798a Made IPv6 address parsing a bit sleeker 2003-04-15 17:10:37 +00:00
hns
b89204a631 Add support for IPv6 addresses 2003-04-15 16:34:37 +00:00
hns
4712fac888 Updated Helma version to 1.2.4 2003-04-15 14:37:11 +00:00
stefanp
b7f4d03a5e new readonly property app.name 2003-04-11 13:38:41 +00:00
stefanp
b522a740df merged changes from helma_1_2_cron branch (replacing the scheduler with
a cron-like setup)
2003-04-11 13:00:23 +00:00
hns
c8674a5f3d Removed unused code 2003-04-11 09:49:35 +00:00
hns
d5c48918a0 Reformatted according to Java code conventions.
Added Header comment with license and version info.
2003-04-10 17:16:25 +00:00
hns
33018c141c Still more experimentation with CVS keyword expansion 2003-04-10 14:43:18 +00:00
hns
11258060f6 checking CVS expansion 2003-04-10 14:38:34 +00:00
hns
8e1237a0d3 checking CVS expansion 2003-04-10 14:32:51 +00:00
hns
d14fc897e4 checking CVS expansion 2003-04-10 14:32:16 +00:00
hns
2fea02fb46 Encode remaining newlines at the end of the text. 2003-04-08 12:44:53 +00:00
hns
f8123e7934 Enhancements in Helma format() functions:
* implement tag balancing:
   - unclosed tags are closed when necessary (either when an enclosing tag
     is closed or when all text is processed and tags are still open)
   - closed tags that were not opened are dropped
* be smart in newline-to-<br> conversion: when an HTML block element is met,
   some or all newline characters are excluded from conversion.
* implemented "allowed tags" feature, all other tags are escaped. This is not yet
   exported to the JavaScript API, though.
2003-03-21 18:17:23 +00:00
hns
51816c2ff2 adding support for "legend" tag 2003-03-18 16:03:20 +00:00
hns
d35d8744b6 Added support for "acronym", "bdo", "dfn" and "noscript" tags. 2003-03-18 16:00:34 +00:00
stefanp
0e333e8c73 added toString() method to Xml object:
res.write(Xml) now renders the name of the package used as XML-parser
2003-03-14 15:44:40 +00:00
stefanp
4358af3f20 catch FESI.Parser.TokenMgrError which made the parsing crash completely on
certain syntax errors in js-files. now only the containing file isn't parsed.

use getDocApplication().isExcluded() instead of Util.isExcluded()
2003-03-14 11:37:48 +00:00
stefanp
2ea3261e16 added addExclude() and isExcluded() which are backed by a HashSet so that
we can have a per-app config of excluded strings.

added readProps() which parses app.properties for helma.excludeDocs setting
2003-03-14 11:36:48 +00:00
stefanp
0625420803 moved exclusion stuff to DocApplication 2003-03-14 11:35:41 +00:00
stefanp
744b24e34c added getDocApplication() that tries to find a DocApplication object among the parents of the element 2003-03-14 11:35:19 +00:00
hns
a0950e35a0 Added option to set http User-Agent header in getURL(). 2003-03-11 12:53:22 +00:00
stefanp
0879e2e1ff parse skins for comments like this:
<% // comment %>

helma doesn't call macros with that syntax, but uses
parameter default="xxx" if it is included in the comment tag!
2003-03-11 10:47:30 +00:00
hns
210aed5197 Break when hrefFunction has been executed. 2003-03-10 14:24:13 +00:00
hns
4a43f9bcab updated version to 1.2.3 final 2003-03-07 16:09:40 +00:00
stefanp
6482af48a1 made sure, every job has a name
corrected comments: we use commas instead of semi-colons
2003-03-07 09:39:17 +00:00
hns
75fbf7588f Added experimental support for hrefFunction that works analogously to hrefSkin
except it defines a function to be called with the raw href. The raw href is passed as
only parameter to the function, and it is expected to return the processed href.
2003-03-06 17:24:51 +00:00
hns
1fa508dd27 Added experimental support for app.modules to act as module registry. 2003-03-06 17:21:49 +00:00
stefanp
f69832309d initial check in of a CronJob-class with static methods for parsing a properties
file.
2003-03-06 13:21:20 +00:00
hns
81fbc166ca Updated version string to 1.2.3 RC1 2003-03-05 14:46:22 +00:00
hns
d2aa17041f Several changes/fixes in DbMapping:
* Relation mappings that are overwritten in sub-prototypes no longer override
the parent prototype's Relation object but creates its own Relation
* Generally enable all things to be overwritten in DbMappings that inherit from
another relational DbMapping. That means it should now be possible to really
change lots of things from a parent DbMapping and a child DbMapping.
* Improved property enumeration which now merges properties defined in the
DbMapping inherit chain
* Cleaned up and improved variable naming.
2003-03-05 14:33:21 +00:00
hns
49f011ab87 Use new methods in Prototype to check whether an object is of this prototype or
one of its parent prototypes when resolving macro handlers.
2003-03-04 18:19:33 +00:00
hns
2c8585c611 Exclude "hopobject" from isInstance() to force consistent naming for macro
handlers (use "this" instead of "hopobject").
2003-03-04 18:17:47 +00:00
hns
045210440e Added two methods:
* isInstanceOf(str) checks if this prototype is an instance (equals or inherits) the
  prototype with the given name.

* addToHandlerMap(map, obj)  adds the given object as macro handler for this
prototype and all its parent prototypes.
2003-03-04 18:15:15 +00:00
stefanp
ccb89fbfd9 catch exceptions that occur during the parsing (stringindexoutofbound etc) and
print stack trace to stdout but don't stop parsing the app.
2003-03-03 12:30:17 +00:00
hns
26529df21a Allow ETag header generation for uncachable responses and error responses. 2003-03-03 11:47:31 +00:00
hns
99e764a7b0 Improved our steps to avoid caching of responses. It now seems that
both Mozilla and IE actually do not cache stuff that has res.cache == false.
2003-03-03 11:45:52 +00:00
hns
8112e2a40c Relation.getVirtualMapping() now returns the right DbMapping even
for prototyped collection nodes, so no more extra code for this case
is needed here.
2003-02-27 13:08:22 +00:00
hns
ff95d49d4a Make getVirtualMapping() aware of prototyped collections, i.e. the
application's DbMapping is returned instead of a synthetic virtualMapping.
2003-02-27 13:06:43 +00:00
hns
7ed203c8f0 Init lastTypeChange to -1 so we know we have to run update() once
even if the underlying properties file does not exist.
2003-02-25 21:13:14 +00:00