changeset 554:73fca4e2704b

[BUGFIX] SID not propagated via a link (Logical change 1.163)
author optonline.net!jeffpc
date Mon, 12 Apr 2004 04:23:19 +0000
parents d53dd169bf33
children 08c4ada5ac6b
files eq_ls.py mess_ls.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/eq_ls.py	Mon Apr 12 04:23:19 2004 +0000
+++ b/eq_ls.py	Mon Apr 12 04:23:19 2004 +0000
@@ -40,7 +40,7 @@
 
 for rec in conn.db.execSQL("SELECT `id` FROM `equip` ORDER BY `name`"):
 	eq = av_eq.Equip(conn,rec[0])
-	equip = {"id":rec[0]}
+	equip = {"id":rec[0], "sys_sid":conn.user.getSID()} # workaround to prevent the templating system from "forgetting" the SID
 	
 	if (eq.getNote()):
 		equip["note"] = conn.utils.htmlify(eq.getNote())
--- a/mess_ls.py	Mon Apr 12 04:23:19 2004 +0000
+++ b/mess_ls.py	Mon Apr 12 04:23:19 2004 +0000
@@ -40,7 +40,7 @@
 	messages = []
 	for messid in conn.db.execSQL("SELECT `id` FROM `messages` WHERE `touser` = " + str(conn.user.getUID()) + " ORDER BY `datesent` DESC, `id` DESC;"):
 		mess = av_message.Message(conn,messid[0])
-		messd = {}
+		messd = {"sys_sid":conn.user.getSID()} # workaround to prevent the templating system from "forgetting" the SID
 		messd["messid"] = str(messid[0])
 		
 		# From