Commit graph

838 commits

Author SHA1 Message Date
stefanp
8557f20d21 no message 2002-03-07 14:17:30 +00:00
stefanp
b86c3cd693 implemented IPathElement
replaced DocFunction.getPrototype() with DocFunction.getDocPrototype()
2002-03-07 14:16:15 +00:00
stefanp
4a373e8a09 added default values to fields 2002-03-07 13:58:07 +00:00
stefanp
d165ce1c28 no message 2002-03-07 13:54:06 +00:00
stefanp
393a30e083 added properties for running new base/admin application 2002-03-07 13:35:28 +00:00
hns
8d1e549e72 Update to MinML 1.7 from http://www.wilson.co.uk/xml/minml.htm 2002-03-07 13:03:46 +00:00
hns
07e27b05ef Update to mm.mysql-2.0.11-bin.jar from http://sourceforge.net/project/showfiles.php?group_id=15923
The reason for the update is bug 64 which might be related to the MySQL driver:
http://helma.org/bugs/show_bug.cgi?id=64
2002-03-07 13:00:38 +00:00
hns
c9b927af09 Work on type.properties v. 1.2 support. 2002-03-06 15:01:15 +00:00
hns
5cf87fab38 Added code to check whether a value is a string type and should be put in
quotes when building a query. Previously, also
number values were quoted in SQL queries since neither Oracle nor
MySQL seemed to care, but Sybase doesn't like quoted number vaules.

Also, some bits and pieces for version 1.2 type.properties reading.
(see http://helma.org/rfc/mapping12new/ )
2002-03-06 13:07:50 +00:00
hns
802d66ee80 Added isStringColumn method that lets us check whether a column is
a string type and values therefore need to be quoted. Previously, also
number values were quoted in SQL queries since neither Oracle nor
MySQL seemed to care, but Sybase doesn't like quoted number vaules.
2002-03-06 13:05:40 +00:00
hns
00a396c2f5 Omit quotes from where-clause of getNodeByKey, since the
id value is always an integer. Using quotes used to work fine for
Oracle and MySQL, but it seems to cause problems on Sybase.
2002-03-01 17:57:38 +00:00
hns
fed45aa542 Added try/catch statements to all calls of close() methods in
statement and tableset classes. This seems to be necessary when
using Sybase, as reported by Georg Backer <gbacker@lionhead.com>
on the list.
2002-03-01 16:05:00 +00:00
hns
1ef841f9c0 Foundation for new type mapping support in DbMapping class. 2002-02-26 16:56:13 +00:00
hns
48205c183e Backpedal on previous change to include Servername ("Helma")
again instead of printing only the version number.
2002-02-25 16:13:37 +00:00
hns
1db50720f7 Use Server name and version directly from helma.main.Server.version
instead of having a separate server anme and version fields.
2002-02-25 16:02:10 +00:00
hns
41abbaa3ad updated version info 2002-02-25 16:00:53 +00:00
hns
4a3879b0ee Check for readonly flag in putProperty method so that write protected
properties can't be modified from script code.

Deleted stuff that was permanently commented out:
  * setNode() method
  * readonly check for created and lastmodified props
2002-02-25 14:48:11 +00:00
hns
4e192c39c0 added public isReadonly() method to check the readonly flag from
other packages.
2002-02-25 14:45:54 +00:00
hns
3fee354352 ° Cut off _action suffix when setting the action property the reqest object
° Unset done flag when processing an error to make sure it is actually processed
2002-02-22 16:26:04 +00:00
hns
8bab32a94c suppress log message if onRequest() function is not defined. 2002-02-20 16:57:26 +00:00
hns
e966459776 commented out mildly annoying log message for static file requests 2002-02-20 16:15:26 +00:00
hns
69cb0cb711 just testing the setup 2002-02-20 16:02:15 +00:00
hns
ced9315833 Generate multiple valid IDs in generateMaxID() when the
prototype's table is empty. Previously, new IDs for empty
tables always returned 0.

This fixes bug 59.

http://helma.org/bugs/show_bug.cgi?id=59
2002-02-01 15:20:22 +00:00
hns
896e5e1854 New code to find out which action to call. From now on, every
function ending with "_action" may be invoked via HTTP. It
isn't necessary anymore to define the action in a .hac file.

As a consequence, it's not possible anymore to invoke
templates (.hsp files) via HTTP. Thus, the exposeTemplates
option has become obsolete.

Implemented onRequest() function which is called on the
object handling the HTTP request before the actual action
is invoked.
2002-01-30 15:37:35 +00:00
hns
a132619c8d updated version string 2001-12-13 11:56:21 +00:00
hns
14fe874b38 Adapted to change from Hashtable to HashMap in DbMapping. Basically,
an Iterator is used instead of an Enumeration for looping through the
mapping tables.
2001-12-13 11:54:48 +00:00
hns
15941ce4f4 Big cleanups and fixes:
- Groupby-Nodes with prototype now use an internal DbMapping object
with the specified prototype's DbMapping as parent mapping. This is
necessary because the groupby prototype may be used in different places
and with different relational constraints.
- Cleaned up and reduced duplcate code in Getters for Property Relations
and DbMappings. Now everything is based on getExactPropertyRelation(str)
and getPropertyRelation() methods.
- Replaced Hashtables with HashMaps for performance reasons after
noticing that they are accessed quite often within a single request.
2001-12-13 11:51:20 +00:00
hns
cda86002f3 Pass through RedirectExceptions from renderSkin function. 2001-12-13 11:46:42 +00:00
hns
ad1c5fbb60 Return instances of ESValue without conversion to ESValue,
i.e. without calling ESLoader.normalizeObject().
2001-12-13 11:45:46 +00:00
hns
d306e6fa18 Don't do deep serialization of HopObjects. Instead, for
HopObject properties a proxy object is created for
serialization. It is a Hashtable with two entries: id and prototype,
containing the the id and prototype name of the referenced
HopObject as string values.
2001-12-07 16:18:38 +00:00
hns
7ee29bfdc3 Fixed bug in asynchronous client, although this is untested and
unused code. Eventually we'll have to switch to Apache
XML-RPC since this is where bugs will get fixed from now on.
2001-12-07 16:16:11 +00:00
hns
d141d65585 updated version info 2001-12-07 12:38:51 +00:00
hns
93eb5c9750 set the name of the action in the request object
when executing an action.
2001-12-07 12:38:31 +00:00
hns
2574442456 added action field to let application code know the name of
the action being executed.
2001-12-07 12:37:34 +00:00
hns
24b8f34382 Pass application object in constructor for internal DbMapping
object.

In checkConstraints(), if a filter property is set, never return
true if the object has been modified since it was fetched from
the database. This is the only way we can be sure that the
constraints are fulfilled without evaluating the filter expression.
2001-12-06 22:40:30 +00:00
hns
9da4b1dec9 Reset created and lastModified at the end of the constructor
for relational nodes to show that the object hasn't been
modified since it was fetched from db.
2001-12-06 22:38:14 +00:00
hns
a8fd428530 Every DbMapping object must now have a reference to the
application it belongs to.
2001-12-06 22:35:24 +00:00
hns
ef5b901c1e updated version info 2001-12-04 12:46:21 +00:00
hns
f13c73a5d1 if a prototype if specified for groupby nodes, use the DbMapping
parsed by the application instead of creating a vanilla DbMapping.
This makes it possible to actually define additional properties and
collections on groupby nodes.
2001-12-04 12:45:29 +00:00
hns
deca565254 Not needed anymore. 2001-12-02 22:53:22 +00:00
hns
9622366678 Switched back from custum UrlEncoder to standard
java.net.URLEncoder class.
2001-12-02 22:52:20 +00:00
hns
246e79fa14 minimal formatting change 2001-12-02 22:50:56 +00:00
hns
c85b7e106a fixed bug: embedded webserver always sent no-cache header. 2001-12-02 22:50:25 +00:00
hns
9b6f706853 added smtp server property, which is typically be set per
Helma installation.
2001-11-29 17:50:03 +00:00
p3k
22e7f0c95c added hard linebreaks on pos. 70 2001-11-29 15:15:14 +00:00
p3k
0ba6b08469 added line to prevent build.sh from being included twice 2001-11-29 14:56:44 +00:00
p3k
c4d1367570 updated license to new version 1.2 [http://helma.org/rfc/license12/] 2001-11-29 14:21:55 +00:00
hns
43a298b75f Updated to new format, added some explanatory comments. 2001-11-28 15:22:34 +00:00
p3k
79763b9c9a added chmod 755 in tarfileset for build.sh 2001-11-28 14:30:19 +00:00
hns
4476523c67 increased version info 2001-11-28 13:39:12 +00:00