Author: jmorliaguet Date: Mon Feb 6 22:47:46 2006 New Revision: 2313 Modified: cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/browser.py cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/cpsskins_chat.pt Log:
- fewer messages - we include messages in plain text Modified: cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/browser.py ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/browser.py (original) +++ cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/browser.py Mon Feb 6 22:47:46 2006 @@ -8,7 +8,7 @@ cache = RAMCache() -MAX_MESSAGES = 10 +MAX_MESSAGES = 6 class Views(BrowserView): @@ -28,9 +28,6 @@ input = data.get('input') if input: - - input = formatText(input) - user = data.get('user') date = time.strftime("%H:%M:%S", time.gmtime()) if len(messages) > MAX_MESSAGES: @@ -44,9 +41,3 @@ cache.set(data, 'data', {}) return json.write(data) - -def formatText(text): - """Cleans up the text, interpret links""" - - # TODO - return text Modified: cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/cpsskins_chat.pt ============================================================================== --- cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/cpsskins_chat.pt (original) +++ cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/chat/cpsskins_chat.pt Mon Feb 6 22:47:46 2006 @@ -98,9 +98,9 @@ $A(messages).each(function(m, index) { var message = Canvas.createNode({ tag: "div", - classes: "message" + classes: "message", + text: '[' + m.date + '] ' + m.user + ': ' + m.text }); - message.innerHTML = '[' + m.date + '] ' + m.user + ': ' + m.text widget.appendChild(message); }); -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins