[mentors-ops] r255 - in website/cgi-bin: . Mentors
mentors at lonestar.workaround.org
mentors at lonestar.workaround.org
Thu Sep 7 13:46:04 CEST 2006
Author: mentors
Date: 2006-09-07 13:46:04 +0200 (Thu, 07 Sep 2006)
New Revision: 255
Modified:
website/cgi-bin/Mentors/Web.py
website/cgi-bin/news
Log:
news: new news :)
Mentors/Web.py: logging out twice lead to an internal server error
because the session that was supposed to log out did not
exist
Modified: website/cgi-bin/Mentors/Web.py
===================================================================
--- website/cgi-bin/Mentors/Web.py 2006-08-30 21:43:41 UTC (rev 254)
+++ website/cgi-bin/Mentors/Web.py 2006-09-07 11:46:04 UTC (rev 255)
@@ -138,7 +138,7 @@
# Check if the logout button has been pressed (parameter is logout=1)
# Why not also calling del_session() ?
- if 'logout' in self.formfields:
+ if 'logout' in self.formfields and self.user_logged_in:
logging.info("User %s logged out" % self.user_logged_in)
self.logout()
Modified: website/cgi-bin/news
===================================================================
--- website/cgi-bin/news 2006-08-30 21:43:41 UTC (rev 254)
+++ website/cgi-bin/news 2006-09-07 11:46:04 UTC (rev 255)
@@ -60,6 +60,16 @@
to "I seek a sponsor" subsequent uploads of the package will leave
the flag like you set it last time.
</p>
+
+ <h2>23.08.2006: Counting number of 'watches' and downloads</h2>
+ <p>
+ We know that maintainers are curious to see if potential sponsors
+ look at their packages. We introduced two counters to provide that
+ information. Your <i>"My Packages"</i> page will now display the
+ number of times that the 'details' of your package have been viewed
+ and the number of times your packages was downloaded from the
+ server. Hopefully this will be useful.
+ </p>
"""
web.end()
More information about the mentors-ops
mailing list