Commit graph

1437 commits

Author SHA1 Message Date
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
p3k
7763b6ac51 added manage.gif data to AV_IMAGE table 2003-03-20 19:11:33 +00:00
p3k
a63526e7d7 * modified build.xml to only copy jar files from helma/lib (no recursion)
* added mysql.jar to helma/build/main/lib/ext
(note: we could remove helma/lib/ext/mysql.jar now)
2003-03-20 19:11:06 +00:00
p3k
ad4892b0fb removed because hopblog is not in use anymore 2003-03-20 16:28:22 +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
p3k
52405fe405 moved crimson.jar into ext directory 2003-03-12 10:16:43 +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
79e3c082bf Updated Helma version to 1.2.3
Replaced hopblog application with gong.
2003-03-05 14:49:25 +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
hns
da936baf1e * URL-decode installation directory since it may have been derived
from a jar-URL.
* Exit if installation directory could not be determined.
* Print a message to stderr for each extension jar that is added to the
  classpath.
2003-02-25 16:23:29 +00:00
hns
31ccc12e5b If the command line option parsing code chokes on something, write
a message to the console what the problematic token was.
2003-02-25 16:14:19 +00:00
hns
84c9892a6c Fixed two bugs:
* Race condition when applications were initialized before the
  Server constructor had returned and Server.server and thus
  Server.getServer() was null
* Server choking on -i command line option telling the launcher class
  the Helma install location.
2003-02-25 11:59:26 +00:00
hns
85401cd71f Add checks for cookieDomain validity (bug 219)
http://helma.org/bugs/show_bug.cgi?id=219
2003-02-17 16:02:40 +00:00
stefanp
8a5e24a574 added two methods that allow serializing the sessions-table:
storeSessionData(File) and loadSessionData (File)
if no file is given the file "dbdir/sessions" is used

added new app.property: persistentSessions
with this all sessions are serialized at shutdown and re-read at startup
(sessions that expired in the meantime aren't loaded anymore)
2003-02-16 22:41:18 +00:00
stefanp
077f1dc516 made application object transient to be truly able to serialize session
and added setApp() method
2003-02-16 22:39:25 +00:00
stefanp
b77e5da24b expanded extension-interface with applicationUpdated(app) to tell
extensions when app.properties have changed.
2003-02-14 16:07:52 +00:00
hns
ac0c47adc1 Updated version to 1.2.2 2003-02-04 15:39:59 +00:00
hns
44a6159db5 Replaced getBufferLength() and setBufferLength() with a new method called
getBuffer() which directly returns the response StringBuffer.
2003-02-04 14:18:10 +00:00
hns
d53076291d Support encoding options for text written to the response buffer by macros.
Cleaned up handling of encoding options and other stuff.
2003-02-04 14:15:46 +00:00
hns
30098b723e Added encodeFormValue() method that directly encodes to a StringBuffer.
Do not return a String when writing to StringBuffer in encodeAll().
2003-02-04 14:11:56 +00:00
hns
288d573e50 Made getNodeHref() approx 10% faster by replacing StringBuffer.insert(0)
with StringBuffer.append().
2003-02-04 12:39:22 +00:00
hns
e2c6d1903b More tweaking of the image loading and generating process. 2003-02-03 16:59:24 +00:00
hns
2c1fdf3d0f * Parse attributes of otherwise unmapped elements in sparse mode.
(fixes bug 216)
* Do not rely on helma.objectmodel.db.Node.getPrototype() to return null
to find out whether a node has been initialized. Even if the prototype is not set, the
Node will return "hopobject" as prototype.
2003-02-03 13:22:26 +00:00
hns
2e239f797e Include CDATA sections in getTextContent().
Fixes bug 217
2003-02-03 13:14:58 +00:00
hns
f74c21d405 Implemented Xml.getFromString() 2003-01-31 21:08:14 +00:00
hns
d5ea622ad4 Removed functionality related to Village library. 2003-01-31 17:02:06 +00:00