comparison plugins/plugin_misc_cs.py @ 103:6be927a465ed

XMLUI refactoring, step 1
author Goffi <goffi@goffi.org>
date Wed, 23 Jun 2010 00:23:26 +0800
parents 94011f553cd0
children 138d82f64b6f
comparison
equal deleted inserted replaced
102:94011f553cd0 103:6be927a465ed
103 form_xml = """ 103 form_xml = """
104 <form> 104 <form>
105 <elem type='text' value='Welcome %(name)s, you have %(nb_message)i unread messages'/> 105 <elem type='text' value='Welcome %(name)s, you have %(nb_message)i unread messages'/>
106 </form> 106 </form>
107 """ % {'name':user_name, 'nb_message':unread_messages} 107 """ % {'name':user_name, 'nb_message':unread_messages}
108 self.host.bridge.actionResult("FORM", id, {"type":"window", "xml":form_xml}) 108 self.host.bridge.actionResult("XMLUI", id, {"type":"window", "xml":form_xml})
109 109
110 110
111 111
112 #d = getPage('http://www.couchsurfing.org/messages.html?message_status=inbox', agent=AGENT, cookies=self.session_cookies[profile]) 112 #d = getPage('http://www.couchsurfing.org/messages.html?message_status=inbox', agent=AGENT, cookies=self.session_cookies[profile])
113 113