On 06 May 2002, Jonathan Corbet said:
> > lwn.net:8088 is pretty slow right now -- is it using a CGI script
> > instead of something faster, or is there a real performance problem?
>
> Interesting...Neil commented on how fast it is...:)
Well, it is faster than many of the commercial news sites it links to,
so that's something. Searching the bug database is much faster now than
it was when I tried it an hour or so ago -- must have been cosmic rays
or something.
I guess I would rate the performance as acceptable. Right now, it's not
particularly slow or particularly fast.
> > Ooh, just noticed that I -- a random surfer who just got a free login --
> > have an "Article operations" box with "withdraw" and "delete" links.
> > Presumably those are for admins only. They don't work right now, but it
> > could be bad if they did!
>
> Interesting. Did you get that for anything besides the comment that you
> posted?
Actually, I get the "Withdraw" and "Delete" links even if I'm not logged
in. Eg. looking at /Articles/586/ right now, I have links to
/Review/586/withdraw and /Review/586/delete. The withdraw link fails
with a standard Quixote 404 error ("object has no attribute 'withdraw'") and the delete link
fails with a traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.1/site-packages/quixote/publish.py", line 655,
in publish
output = self.try_publish(request, env.get('PATH_INFO', ''))
File "/usr/local/lib/python2.1/site-packages/quixote/publish.py", line 607,
in try_publish
output = object(request)
File "/home/corbet/qlwn/Review.ptl", line 166, in delete
content.owner () != request.session.user:
NameError: global name 'content' is not defined
I seem to get this on every article page.
Hmmm: I can no longer see the comments I posted (I'm not logged in
now). From /Articles/592/, following either the link to /Comments/593
gives "The requested link "/Comments/593" was not found: 593" -- which I
think means you have a _q_getname() function doing something like this:
def _q_getname (request, name):
# ...
raise name
It's usually better to do something like
raise "no such comment: %r" % name
> We don't. Among other things, there's a customization option that allows
> you to make comments disappear from the site entirely. Some people want
> comments, and we'll provide them, but comments are not intended to be the
> central feature of the site.
Ahh, cool. Suppressing comments seems to work fine for me.
Greg
--
Greg Ward - software developer gward@mems-exchange.org
MEMS Exchange http://www.mems-exchange.org