If you look at my sig, you can see I've been working on PyForums, a board software for CGI Python. I just noticed my current host got PyXML so I can host the software publicly now. PyForums certainly isn't done, but it is fairly well-on. Sessions are done, which my computer teacher swore I'd have to take a college class to master (I know I didn't do it the professional way but I don't care).
Here's the link: http://homework.f2o.org/pyforums/
Registration now up.
Post any comments/bugs/suggestions/etc. below. Wow, looks like your going to put some time into this
Let me know when you get the forums 100% completed, I will join. Good Luck.
I'd say its between 60 and 70 percent done right now.
MUCH better than your old 3 second page creation time. I like it.
The 3 seconds had to do with two things: the topic was 8 pages, not one, and I think the fact I was interfacing with a server on my computer majorly slowed things down.
What, nobody wants to register?
Lol, when I copied over the member database files, I changed my join date, at one point you could refresh and see my PPD fall by 0.1 every time.
Heh, fun.
Alright, you can sign me up...but I'm not going to be active on a computer at all for a little while except for tonight.
Username: Recks
Password: 172346606e1d24062e891d537e917a90 (md5 hash)
-8:00 GMT (Pacific Time)
Name: Caboose
Pass: Email me the pass xD
( email: Johnson31_@hotmail.com )
I took that password literally rexy...
Both added.
btw, there is a test account test_account//test.
EDIT: Fixed a few bugs with the new accounts (list index error and Division by zero error)
On the locked topic you can click the 'quote' button
Hey DT I will join.
Name: slayer766
Pass: gizmo
(haha)
does it have support for forums and subforums yet?
ADDEIT: what about a nice news topic/page so you can just post what youve worked on
Forum and board index is going to be last; I have no clue why. I'm most likely going to do member profiles next.
erm Can't register
! I guess i can tell you here O.o
SN:FireStorm
PW:Dragoons
SN: Dr.Shotgun (Are periods allowed?)
PW: spuck
Why on earth are you posting passwords publicly? I'm not stopping anyone from hacing your account.
Registered.
I should be adding a simple registration script minus e-mail validation (I have some reading up to do on the emailMIME class to do before that) soon.
QUOTE
ImportError Python 2.3.4: /usr/bin/python2
Sat Oct 8 10:32:09 2005
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/sites/homework/www/public_html/pyforums/index.py
1727 print "<br><br><center><font face='Arial' size='0'>Powered by PyForums 1.0.0 (Public Alpha) - ©2005 DT_Battlekruser.<br><br>"
1728 print "<img src='http://www.python.org/pics/PythonPoweredSmall.gif' alt='Powered by Python'></center>"
1729 import BaseHTTPRequestHandler
1730 datum = BaseHTTPRequestHandler.client_address()
1731 print "<br><b>DEBUG:</b>",datum,
BaseHTTPRequestHandler undefined
ImportError: No module named BaseHTTPRequestHandler
args = ('No module named BaseHTTPRequestHandler',)
BaseHTTPRequestHandler is a class in BaseHttpServer, you better fix that...
i thin you import basehttpserver and then say something like basehttpsever.basehttprequesthandler.client_adress()
im not very good at python so i dunno.
Yeah, I mistyped the class name, it's in the footer so it doesn't affect functionality.
giving me 500 internal server errors.
According to my server logs, there was a memory buffer overload which has nothing to do with the code itself..
[Sun Oct 9 11:46:16 2005] [error] [client 24.199.93.171] (12)Cannot allocate memory: couldn't spawn child process: /home/sites/homework/www/public_html/pyforums/index.py
[Sun Oct 9 11:47:34 2005] [error] [client 24.199.93.171] (12)Cannot allocate memory: couldn't spawn child process: /home/sites/homework/www/public_html/pyforums/index.py
[Sun Oct 9 11:49:03 2005] [error] [client 24.199.93.171] (12)Cannot allocate memory: couldn't spawn child process: /home/sites/homework/www/public_html/pyforums/index.py
[Sun Oct 9 11:49:51 2005] [error] [client 24.199.93.171] (12)Cannot allocate memory: couldn't spawn child process: /home/sites/homework/www/public_html/pyforums/index.py
[Sun Oct 9 11:49:52 2005] [error] [client 24.199.93.171] (12)Cannot allocate memory: couldn't spawn child process: /home/sites/homework/www/public_html/pyforums/index.py
[Sun Oct 9 11:50:26 2005] [error] [client 24.199.93.171] (12)Cannot allocate memory: couldn't spawn child process:
Times are CDT. And yes I know that's your IP
Working now. keeps claiming im not logged in/not allowed to post when i log in and try to make a post.
tried to quote from the locked topic, expecting to find a glitch and i got this:
CODE
NameError Python 2.3.4: /usr/bin/python2
Sun Oct 9 17:16:46 2005
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/sites/homework/www/public_html/pyforums/index.py
1682 error.prompt(2)
1683 except IndexError:
1684 error.prompt(2)
1685 elif form.has_key('add') and form.has_key('act') and form["act"].value=='append' and form.has_key('type') and form["type"].value=='addreply':
1686 try:
error = <__main__.Error instance>, error.prompt = <bound method Error.prompt of <__main__.Error instance>>
CODE
/home/sites/homework/www/public_html/pyforums/index.py in addreply_screen(self=<__main__.Reply instance>, tid=2, prepost=u"[quote=DT_Battlekruser @ Thu September 29, 2005 ...est locked topic. You can't post, right?[/quote]")
1029 su_title = su_curtopic[1]
1030 su_prop = su_curtopic[0]
1031 if int(su_prop[0]) == 0 or (int(su_prop[0]) == 1 and gmod == 1):
1032 print header
1033 print """
builtin int = <type 'int'>, su_prop = [u'1', u'0'], gmod undefined
NameError: global name 'gmod' is not defined
args = ("global name 'gmod' is not defined",)
Won't let you post? I'll look into it.
Leave the quote lock glitch, it's leftover code and besides all you'll get for real is a forum error anyway.
EDIT ~ I just posted as you, make sure when you're navigating you have your session in the url (the s=blahblahblah part) or it doesn't recognize you. I haven't gotten around to logging IPs yet.
Ok, it worked this time, you might want to make the session id in a hidden form piece so that its more secure
, just a thought. i managed to get some eroors out of the board by giving it bad info in the url, but its not a big deal.
its changing my session id to
%0D%0A103D5CBA14DAD34A42F6D12B7F0%0D%0A from 103D5CBA14DAD34A42F6D12B7F0
Hiding the session ID does nothing for security, it just lets you click on local links and not have you log out. I'll just write something that parses index.py?* into index.py?*&s=sess
i like easy to understand urls tho...
Yeah.. I'll probally add a "remeber me" option sometime in the future which matches IPs.
As you pointed out there, it needs some work from an IE aspect.