Commit graph

737 commits

Author SHA1 Message Date
stefanp
08f702bd40 improved creation of custom root object:
- definition of root class is moved from app.properties to class.properties file.
- optional use of fields "root.factory.class" and "root.factory.method" in class.properties to retrieve an instance of the root object.
2002-04-08 08:43:30 +00:00
hns
ca66d7ba90 reverted scripting environment refactoring from HEAD branch,
will go into separate branch.
2002-04-05 17:09:25 +00:00
hns
b46b664d94 Halfway through refactoring of scripting framework, getting everything that
has to do with FESI out of helma.framework and into helma.scripting.fesi.
2002-04-02 17:19:52 +00:00
hns
1108e386e0 Renamed .groupby option to .group, according to spec, in the
parsing of db mapping when using the new format.
2002-04-02 13:30:50 +00:00
hns
337928ee4a Fixed bug 66: setParent() doesn't overrule _parent anymore
This was caused by lastParentSet not being set not being updated
in the setParent() method called from JavaScript, so if it hadn't already been
set before, getParent would still do its whole parent evaluation
work, overwriting the previously set parent.

Fixed bug 68:  _extends does not allow additional property mappings

The problem was that the standard (parent) prototype mapping was alweys
used to initialize new Nodes from a SQL result set in the relational Node
constructor. The right sub-prototype was determined at the beginning,
but since both the method parameter and the class fields were called dbmap,
the local parameter was used for initializing the node's properties.
2002-03-28 16:22:06 +00:00
hns
12e5fd0846 Make lookups by column name case insensitive. Also, hide the
column to property map from the outside world so nobody can
do a case sensitive lookup by fault.
2002-03-26 15:19:52 +00:00
hns
b294dabc90 Always do case insensitive comparison when checking if a
column name is the primary key column of a table.
2002-03-26 15:18:09 +00:00
hns
d13d2087f4 Use columnNameToProperty to look up property names for columns
instead of doing it myself. DbMapping does takes care to make the
lookup case insensitive.
2002-03-26 15:16:58 +00:00
hns
0ec0e17485 Run Logger with default priority. 2002-03-26 13:12:49 +00:00
hns
870c8eb527 Removed obsolete chooser() and multiChooser functions for HopObjects. 2002-03-26 13:09:13 +00:00
hns
4b09e5f1c3 update server version 2002-03-26 12:14:57 +00:00
hns
78c56ac382 Just be a little bit more precise in the kind of exception we throw. 2002-03-26 12:10:49 +00:00
hns
0fa15992cf Implement override toString method to do what you'd expect it to
do (generate a string representation of the properties).
2002-03-26 12:10:16 +00:00
hns
c88ac35c17 Try both Unix crypt and Stefan's new MD5 encoding for authentication. 2002-03-26 12:09:32 +00:00
hns
7041bf08e7 Initial implementation of new skin path resolution schema and
public skins.

Some further work needed in both areas.
2002-03-25 18:55:38 +00:00
hns
1a777b5c5a Added constructor without Prototype parameter to make it possible
to have SkinFiles which don't know or care about what prototype
they belong to.
2002-03-25 18:54:07 +00:00
hns
77da4999aa Added skinExtensions properties for support of public skins.
This is a property file, for now called mime.properties, that
mapps file extension names to MIME types.
2002-03-25 18:53:10 +00:00
hns
3712b51628 res.skinpath is now an object property (holding an array of
HopObjects or directory names) instead of a string property.
2002-03-25 18:51:21 +00:00
hns
847f2542d3 Removed everything related to the _skinmanager property
which isn't used anymore.
2002-03-25 18:49:41 +00:00
stefanp
4e0182bfda bug fixed in helma.main.Server 2002-03-25 18:37:49 +00:00
stefanp
66f7b97e40 utility class for java md5-methods 2002-03-25 17:46:44 +00:00
p3k
5fb400ec4c added zipped application manager 2002-03-21 17:33:14 +00:00
p3k
cf01737f8f added application manager 2002-03-21 17:04:57 +00:00
hns
c503592c49 Removed the need to register application servlets for the internal web server
with both appname+"/" and appname+"/*", because Acme Serve now appends
dual dummy slashes to the URI path if the servlet for a request isn't found.
2002-03-21 15:49:02 +00:00
hns
b68fb4764c Treat VARBINARY and LONGVARBINARY as string types
(for our purposes, i.e. put values inside quotes).
2002-03-19 20:45:31 +00:00
hns
c39def352c updated server version date info. 2002-03-19 19:36:30 +00:00
hns
027b63bde6 Run endless loop in separate new thread, otherwise the
server field will never be assigned the Server object (because
the Server constructor never returns, because the calling thread
ends up in the loop checking for updates in apps.properties).
2002-03-19 19:35:40 +00:00
hns
95ed052f76 removed newlines at end of file 2002-03-19 19:26:44 +00:00
hns
a5547d8d0a removed dead code. 2002-03-19 19:26:29 +00:00
hns
c6b7f10d11 First simple and not very efficient implementation of res.skinpath,
which can contain one singel directoy in which to look for skins.
The skin resolution looks like this now:

 1) res.skinpath (directory)
 2) nodemanagers (internal HopObjects marked as skinmanagers)
 3) application directory
2002-03-19 19:26:07 +00:00
hns
c56befd4d4 Scripted Java objects now have a prototype that only has the
href() and renderSkin() functions, without all the other functions in
Helma objectmodel Nodes that don't apply to Java objects. This
was a problem because it "covered" methods in the Java objects
with the same name, e.g. list(), delete() etc.
2002-03-19 19:24:30 +00:00
hns
f3ea5d79a2 added skinpath field to set skin resolution path from properties
or from application code.
2002-03-19 19:14:09 +00:00
hns
b76447298b Fixed bug #65: redirect() doesn't work in onRequest() function.
http://helma.org/bugs/show_bug.cgi?id=65
2002-03-19 14:10:06 +00:00
hns
63eb24bae6 Support for version 1.2 of object-relational mapping format.
See http://helma.org/rfc/mapping12new/
2002-03-13 23:40:48 +00:00
hns
3f7180ae21 minimal formatting fix 2002-03-13 23:38:47 +00:00
hns
d8697dd762 Append the charset to the content type in method getContentType(),
suitable to the HTTP spec.
2002-03-13 23:38:13 +00:00
hns
77f29e6dfd Use getContentType() method instead of directly accessing the
contentType field in ResponseTrans. The method will append the
charset to the content type.
2002-03-13 23:37:18 +00:00
stefanp
0a68003361 fixed typo bug 2002-03-11 14:48:17 +00:00
hns
2896aaf82c Removed boolean self parameter from calls of start() and register()
methods in ApplicationManager.
2002-03-07 17:15:23 +00:00
hns
5b7495dca3 ° An app is now mounted as / on the embedded webserver if the
app name is "base", not when it scripts Helma self. This means
that it is now possible to have more than one applications scripting
the Helma server itself (e.g. a simple overview app in / and a
sophisticated admin app in /admin).

° Removed self boolean parameter from start() and register(), since this is
now determined just once and doesn't have to be carried around. Also,
callers of these methods from outside didn't really know about this parameter.
2002-03-07 17:14:46 +00:00
stefanp
f7ec5f3bbd byte-array of the helma-logo 2002-03-07 14:46:23 +00:00
stefanp
4fec331e8d handle http-header for authentication 2002-03-07 14:41:00 +00:00
stefanp
3c16c722a7 implemented IPathElement
added public functions for base app: static getServer, startApplication, stopApplication, getAppsHome, getProperties, getProperty, getApplication
2002-03-07 14:39:07 +00:00
stefanp
b52c3e54b4 added getApplication(String name)
removed private status from start/stop/register
2002-03-07 14:33:58 +00:00
stefanp
86388ccfa2 added methods for http authorization getUsername() + getPassword() 2002-03-07 14:32:36 +00:00
stefanp
cdd4a205ba added field realm for http authorization 2002-03-07 14:31:12 +00:00
stefanp
a45d7e9332 implemented IPathElement
added some public methods for introspection (clearAppCache, getProperties, getAppDir)
2002-03-07 14:29:29 +00:00
stefanp
0895856429 implemented IPathElement 2002-03-07 14:19:33 +00:00
stefanp
8bc447ad05 replaced DocFunction.getPrototype() with DocFunction.getDocPrototype() so that we can implement IPathElement 2002-03-07 14:18:20 +00:00
stefanp
8557f20d21 no message 2002-03-07 14:17:30 +00:00