This commit is contained in:
tonio
2010-04-30 17:18:22 +02:00
parent bffe955700
commit 4ee5219055
4 changed files with 9 additions and 1 deletions
@@ -87,6 +87,7 @@ class SQLlisting(EmailListing):
tbltype = Qtable
deflocation = "listing/"
defcallback = "updatelisting"
reset_wm_url = True
def __init__(self, filter, **kwargs):
self.mbc = SQLconnector(filter)
+1
View File
@@ -293,6 +293,7 @@ class ImapListing(EmailListing):
tbltype = WMtable
deflocation = "INBOX/"
defcallback = "wm_updatelisting"
reset_wm_url = False
def __init__(self, user, password, **kwargs):
self.mbc = IMAPconnector(user=user, password=password)
+3 -1
View File
@@ -131,7 +131,9 @@ class EmailListing:
"navbar" : self.render_navbar(page),
"selection" : self.folder,
"navparams" : self.navparams,
"deflocation" : self.deflocation, "defcallback" : self.defcallback
"deflocation" : self.deflocation,
"defcallback" : self.defcallback,
"reset_wm_url" : self.reset_wm_url
})
class Email(object):
+4
View File
@@ -43,7 +43,11 @@ window.addEvent("domready", function() {
if (event.target.parentNode.id) {
var url = event.target.parentNode.id + "/";
event.target.parentNode.setStyle("background", "#ffffcc");
{% if reset_wm_url %}
current_anchor.baseurl(url).update();
{% else %}
current_anchor.addbaseurl(url).update();
{% endif %}
}
}