[Zope3-checkins] CVS: Products3/z3checkins - TODO:1.11
message.py:1.28
Gintautas Miliauskas
gintas at pov.lt
Wed Feb 11 13:50:44 EST 2004
Update of /cvs-repository/Products3/z3checkins
In directory cvs.zope.org:/tmp/cvs-serv20383
Modified Files:
TODO message.py
Log Message:
Finally dropped wrappers.
=== Products3/z3checkins/TODO 1.10 => 1.11 ===
--- Products3/z3checkins/TODO:1.10 Tue Feb 10 09:23:27 2004
+++ Products3/z3checkins/TODO Wed Feb 11 13:50:01 2004
@@ -7,7 +7,6 @@
- Is storing all the messages in a single folder scalable enough?
- Highlight branch tags in message body
- Highlight quoted text in normal message bodies
-- Detect URLs in checkin comments and make those into <a> elements
- Show checkin times in the user's timezone instead of server's (this probably
needs some configuration page and cookies)
- Replace newlines with <br/> elements in checkin messages in message_part.pt
=== Products3/z3checkins/message.py 1.27 => 1.28 ===
--- Products3/z3checkins/message.py:1.27 Tue Feb 10 14:27:52 2004
+++ Products3/z3checkins/message.py Wed Feb 11 13:50:01 2004
@@ -19,8 +19,6 @@
from zope.component import getUtility, getAdapter, queryAdapter
from zope.app.browser.form.widget import FileWidget
from zope.app.form.widget import CustomWidget
-from zope.context import Wrapper
-from zope.context import getWrapperContainer
from zope.app.interfaces.container import IReadContainer
from zope.proxy import removeAllProxies
from zope.app.datetimeutils import parseDatetimetz, DateTimeError
@@ -292,8 +290,12 @@
if IMessage.isImplementedBy(item):
items.append((item.date, key, item))
items.sort()
- self.messages = [Wrapper(item, self.context, name=key)
- for date, key, item in items]
+ self.messages = []
+ for date, key, item in items:
+ # XXX is this nice?
+ #item.__parent__ = self.context
+ #item.__name__ = key
+ self.messages.append(item)
def __len__(self):
return len(self.messages)
@@ -486,7 +488,7 @@
def _calc_index(self):
if not hasattr(self, '_archive'):
- container = getWrapperContainer(self.context)
+ container = self.context.__parent__
self._archive = container and queryAdapter(container,
IMessageArchive)
if not self._archive:
More information about the Zope3-Checkins
mailing list