Forum Home
Welcome to the new pyForum.org.
A message board system written in pure python using the web2py framework.
pyForum is sporting a new, completely re-designed interface and back-end
Download pyForum from https://bitbucket.org/speedbird/pyforum
pretty URLs
By: richard
Rank: Starfleet Lieutenant, Junior Grade
Postings: 32
From: Australia
Posted: Tue, 02 February, 2010 - 10:07 PM

Forums such as linuxquestions use the thread title to form a "pretty" URL, such as:
http://pyforum.org/pyforum/default/view_topic/465/page-title-normalized-here
That exact form would not work because request.args[1] is used for subscriptions, but something similar would be good.

Also if I try accessing a topic ID that does not exist or is not a number then I get an error because the controller uses:
topic_id = int(request.args[0])
topic = db(db.zf_topic.id==topic_id).select()[0]
How about redirecting to a "Topic not found" page.

All this applies to forums too.
By: chriswolf1
Rank: Starfleet Ensign
Postings: 1
From: Unknown
Posted: Sun, 22 August, 2010 - 12:43 PM

I confirm this - if a bad URL is submitted then an error page is displayed,
with "Internal Error"
Welcome
System Announcements
Latest Posts
Support pyForum