Staredit Network

Staredit Network -> Computers and Technical -> PyForums Production Thread
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-29 at 21:47:54
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.
Report, edit, etc...Posted by Slyence on 2005-09-29 at 22:03:48
Wow, looks like your going to put some time into this smile.gif

Let me know when you get the forums 100% completed, I will join. Good Luck.
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-29 at 22:07:00
I'd say its between 60 and 70 percent done right now.
Report, edit, etc...Posted by RexyRex on 2005-09-30 at 00:14:16
MUCH better than your old 3 second page creation time. I like it. smile.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-30 at 00:23:11
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.
Report, edit, etc...Posted by RexyRex on 2005-09-30 at 00:49:39
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. sad.gif

Username: Recks
Password: 172346606e1d24062e891d537e917a90 (md5 hash)

-8:00 GMT (Pacific Time)
Report, edit, etc...Posted by Caboose on 2005-09-30 at 01:00:06
Name: Caboose
Pass: Email me the pass xD

( email: Johnson31_@hotmail.com )
Report, edit, etc...Posted by DT_Battlekruser on 2005-09-30 at 01:03:46
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)
Report, edit, etc...Posted by Clokr_ on 2005-09-30 at 08:17:28
On the locked topic you can click the 'quote' button tongue.gif
Report, edit, etc...Posted by slayer766 on 2005-09-30 at 12:47:10
Hey DT I will join. biggrin.gif

Name: slayer766
Pass: gizmo

(haha)
Report, edit, etc...Posted by Doodle77(MM) on 2005-09-30 at 21:32:58
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
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-01 at 01:57:27
Forum and board index is going to be last; I have no clue why. I'm most likely going to do member profiles next.
Report, edit, etc...Posted by FireStorm on 2005-10-04 at 16:05:43
erm Can't register ohmy.gif ! I guess i can tell you here O.o

SN:FireStorm
PW:Dragoons
Report, edit, etc...Posted by Dr.Shotgun on 2005-10-04 at 17:08:10
SN: Dr.Shotgun (Are periods allowed?)
PW: spuck
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-05 at 01:22:07
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.
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-08 at 11:36:04
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.
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-08 at 13:45:17
Yeah, I mistyped the class name, it's in the footer so it doesn't affect functionality.
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-09 at 12:48:37
giving me 500 internal server errors. sad.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-09 at 13:41:42
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 happy.gif

Working now.
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-09 at 18:14:42
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",)
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-09 at 18:35:07
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.
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-09 at 19:16:14
Ok, it worked this time, you might want to make the session id in a hidden form piece so that its more secure wink.gif , 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
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-09 at 21:49:34
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
Report, edit, etc...Posted by Doodle77(MM) on 2005-10-10 at 14:52:15
i like easy to understand urls tho... sad.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-10-10 at 19:33:01
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.
Next Page (1)