|
From: Frank B. <fb...@fo...> - 2003-04-24 16:47:50
|
Hallo,
Ian Bicking hat gesagt: // Ian Bicking wrote:
> I'm planning on putting 0.4 out before too long. I've added Styles and
> taken out the lazy fetching.
Does taking out lazy fetching mean, that changed objects now will have
immediatly visible changes even under Webware?
I still cannot solve my problem, where objects, that are referenced
by other classes, don't have their changes visible.
A simple example is an editable Tip of the Day app, where a Day can
have multiple tips.
The model is:
class Tip(SQLObject):
_columns = [
IntCol("dateID"), foreignKey='Date'),
StringCol("text") ]
class Date(SQLObject):
_columns = [
DateTimeCol("start"),
DateTimeCol("end") ]
_joins = [MultipleJoin("Tip")]
Now my Page has an action to change the Tip of a Day
def changeT(self):
req = self.request()
id = req.value('id', None)
text = req.value('text', None)
t = Tip(id)
t.text = text
self._msg = '''Changed: %s ''' % t.id
self.writeBody()
It also has a "listTips" area, whose pseudo code looks like this:
for day in Date.select("all"):
prettyPrint(day)
for tip in day.tips:
prettyPrint(tip)
Now this last printing of the tips does not reflect changes done in
"changeT" until the AppServer is restarted. This is really driving me
nuts...
ciao
--
Frank Barknecht _ ______footils.org__
|