text="You are not authorized to view this collection",
navmenuid='search')
elifuid>0:
user_preferences=get_user_preferences(uid)
exceptError:
register_exception(req=req,alert_admin=True)
returnpage(title=_("Internal Error"),
body=create_error_box(req,verbose=verbose,ln=ln),
description="%s - Internal Error"%CFG_SITE_NAME,
keywords="%s, Internal Error"%CFG_SITE_NAME,
language=ln,
req=req,
navmenuid='search')
# start display:
req.content_type="text/html"
req.send_http_header()
# deduce collection id:
colID=get_colID(c)
iftype(colID)isnotint:
page_body='<p>'+(_("Sorry, collection %s does not seem to exist.")%('<strong>'+str(c)+'</strong>'))+'</p>'
page_body='<p>'+(_("You may want to start browsing from %s.")%('<a href="'+CFG_SITE_URL+'?ln='+ln+'">'+get_coll_i18nname(CFG_SITE_NAME,ln)+'</a>'))+'</p>'
ifreq.header_only:
raiseapache.SERVER_RETURN,apache.HTTP_NOT_FOUND
returnpage(title=_("Collection %s Not Found")%cgi.escape(c),