GanttPV and Planner Forums
 ° Home ° Forums ° Statistics ° Sign Up ° Search ° Manual °

PM forums / Developing GanttPV / Are you interested in beta-testing GanttPV Server v0.1?
Author Message
Brian
Member

# Posted: 23 Aug 2006 21:54:22 -

GanttPV Server version 0.1 is now available for beta testing. Release includes update server, web report CGI script, and client scripts. Features include:

- Server will host any number of .ganttpv database files.
- Multiple users can download copies of database and share changes back to the update server.
- Users can publish reports via web server.
- Web users can update selected fields, including dates.
- Access is controlled by password.

- Server will run on Macintosh, Windows, and Linux.
- Works with GanttPV desktop version 0.7 beta (or later).
- Server requires Python 2.3 or later.

If you would like to participate, please email me and tell me which client software you would need for use with the server: Windows, Mac, or Linux. My email address is: brian@pureviolet.net

What do beta testers do? Install the programs. Use the functions that are important to you. Tell us what you tried and whether it worked. Describe any problems you find. Suggest improvements for the program or documentation.

Please tell us your observations as you go along. Don't wait to give them all at the end.

Blake
Member

# Posted: 29 Aug 2006 22:34:04 -

Some questions about the server.

Does it still need Gadfly installed?

There are four directories in the server zip for linux: client, server, web and test.

I take it the files in the client directory are copied to the scripts subdirectory for GanttPV. Should I be running any of the python files in the server directory? How about the web directory?

How and where do I change the server and port numbers?

As you can see I am a bit lost.

Brian
Member

# Posted: 30 Aug 2006 02:18:52 -

No, Gadfly isn't needed any more with the new server.

Of the four directories included in the distribution:
(1) client - That's right. Copy the client directory into the scripts folder of GanttPV. These files are run from inside GanttPV, through the Script menu.

(2) server - Run ganttpv_update_server.py script from the server directory. You will probably need to type "python ganttpv_update_server.py". The server will save uploaded files into the "current" subdirectory and make backup copies into the "backup" directory. Before you run the server script, you must change the IP address. You set the server's IP address and port number by editing the ganttpv_update_server.py file. Look just after the change log at the beginning of the file.

(3) web - Copy "ganttpv_report.py" into your web server's cgi-bin. Make sure the web server has execute access to the "ganttpv_report.py" script. You will have to edit the script to specify the server's IP address and port. You might need to make a change in the web server's configuration to execute python scripts.

(4) test - After you start the server, you can use the test script to verify some of the server functions. Edit the IP number and port at the beginning of the script. Then run the test script with python.

Alexander
Moderator

# Posted: 31 Aug 2006 21:24:15 -

I just took the server out for a little test drive and it worked perfectly. Very cool. Way to go, Brian.

Brian
Member

# Posted: 7 Sep 2006 17:04:19 -

If have just committed some fixes to the Share Changes with Server script. They correct problems I discovered with (1) committing alias tables to the server and (2) multiple users adding tasks to the same report at the same time.

I recommend that all beta testers update to the current script versions.

There is another problem that I haven't been able to track down yet. When the second user commits, the merged rows don't display properly. The data appears correct, but for some reason the report isn't refreshing the number of rows.

Alexander
Moderator

# Posted: 7 Sep 2006 22:13:26 -

Brian and I just tracked down that last problem. He will commit the fix soon.

Blake
Member

# Posted: 11 Sep 2006 09:22:04 -

I have succeeded in getting the ganttpv web server running. Very cool!

After getting the detailed instructions most of the trouble I had was figuring out how to get Tomcat setup correctly.

My setup is Fedora Linux, Tomcat 5.0, Python 2.4.1

I haven't tried all the setting yet, but I ran into an error when I tried to change a value of a column (duration) through the web interface. Here is the information from the screen:

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/lib/tomcat5/webapps/mockup/WEB-INF/cgi/ganttpv_report.py
592 # print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'
593 # print '"http://www.w3.org/TR/html4/strict.dtd">'
594 # print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
595
596 DoStuff()
DoStuff = <function DoStuff>
/var/lib/tomcat5/webapps/mockup/WEB-INF/cgi/ganttpv_report.py in DoStuff()
369 form = cgi.FieldStorage(keep_blank_values=1)
370 # is this case sensitive??
371 reportid = int(form.getfirst("Report", "0")) # default to database index
372 # self.ReportID = report
373 server = xmlrpclib.ServerProxy("http://10.7.1.31:8001", allow_none=1)
reportid undefined, builtin int = <type 'int'>, form = FieldStorage(None, None, [MiniFieldStorage('Repo...ieldStorage('xEditColumn-8', 'i-DurationHours')]), form.getfirst = <bound method FieldStorage.getfirst of FieldStor...eldStorage('xEditColumn-8', 'i-DurationHours')])>

ValueError: invalid literal for int(): 4;Edit=yes;InPlace=yes;DB=2
args = ('invalid literal for int(): 4;Edit=yes;InPlace=yes;DB=2',)

Brian
Member

# Posted: 5 Oct 2006 13:38:29 -

It looks like it isn't properly parsing the parameters out of the URL. I don't have any experience with Tomcat so I don't know what could be causing that.

When the school quarter starts up again next week, I'll try to see if I can get one of instructors that teaches Tomcat to look into it.

We appreciate your efforts.

Brian
Member

# Posted: 10 Oct 2006 11:27:19 ° Edited by: Brian -

I've updated the GanttPV Server so that you don't have to edit the source to set the IP address. It now reads in a configuration file. This should increase the number of people who can comfortably install the server.

Alex changed it to look for its files in the directory from which it is run. The combined effect of these changes is that on Windows and the Mac, at least, you don't have to use the command line to run the server anymore. You can start the server directly from the GUI.

I've just been installing some other server software (Postfix, Dovecot, Roundup). GanttPV is much easier to install than they are. I think that people who have tried to install other servers will be pleasantly surprised.

Michael Norton
Member

# Posted: 21 Dec 2006 14:33:04 -

I have a question about the "Install Time Units" functionality. It installs, and works just fine under Ganttpv. I am going to assume that the functionality does not play nicely through the editable web interface? When I tried to make changes through the web interface such as 1w or 6h, it seemed to be confused :-)

As a side note, when I built a new database without time units, the editing seemed to be just fine through the web interface.

Thanks!

Brian
Member

# Posted: 21 Dec 2006 22:08:09 -

Oops! Your right, that wouldn't work. Hmm. We'll have to fix that. Maybe for v0.2.

Alexander
Moderator

# Posted: 22 Dec 2006 08:48:32 -

Thanks, Michael. Good catch.

This topic is closed. You can`t post a reply.
 


Powered by mini BB forum software © 2001-2010