|
How do I upgrade a pre-1.2 Helma application?
A brief change log on what has to be touched when migrating an application to a new release/snapshot.
20.9.02: dependency: jetty.jar needs an upgrade to Jetty 4.1
20.9.02: helma doesn't fall back on ID if no object is found when using the accessname. this means: if you want to have the same behaviour as before you need to make sure that the accessname field contains the ID instead of null values.
28.6.02: new dependencies: remove openxml.jar, berkeley.jar, sax.jar from the classpath, add servlet.jar and jetty.jar (get them from the cvs). An XML-Parser is needed, either the slow Crimson parser in JDK1.4 or Xerces from xml.apache.org.
28.6.02: new object relational mapping (see <* RFCs *>)
28.6.02: new user/session model:
if(user.uid) --> if(session.user)
user.cache --> session.data (even user.cache still works - but why?)
user --> session.user
user.sessionID --> session._id | session.cookie
req.session --> session._id | session.cookie
user.onSince() --> session.onSince
user.lastActive() --> session.lastActive
user.touch() --> session.touch()
user.login() --> session.login()
user.logout() --> session.logout()
user.register(username, password); --> app.registerUser (username,
password);
countActiveUsers() --> app.countSessions()
getUserBySession() --> app.getSession(sessioncookie)
getUser(username) --> app.getUser(username)
getActiveUsers() --> app.getActiveUsers()
getAllUsers() --> app.getRegisteredUsers()
NEW --> app.getSessions()
NEW --> app.getUserSessions(username | HopObject* [or both?])
macro-handler currentUser was dropped:
[Macro currentUser.username not allowed in sandbox] --> patch depends on your app
request/response objects changed, res.skin/body/title moved to res.data.*
res.title, res.body, ... don't exist anymore
--> res.data.body, res.data.title, ...
res.skin doesn't exist anymore:
--> object.renderSkin("skinname");
6.6.02: getURL() now returns a MIME-object.
Page last modified on 2003-05-16 16:38 by hns
|