Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
svn path=/trunk/boinc/; revision=11116
  • Loading branch information
davidpanderson committed Sep 6, 2006
1 parent b7b0abf commit cb583ae
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 30 deletions.
13 changes: 13 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -9838,3 +9838,16 @@ David 6 Sept 2006

clientgui/
AccountInfoPage.cpp

David 6 Sept 2006
- Renamed html/user/get_project_config.php to sample_get_project_config.php
this avoids overwriting a project-modified version.
- Fixed the "parse_config" script.

html/user/
get_project_config.php
sample_get_project_config.php
py/Boinc/
setup_project.py
tools/
parse_config
22 changes: 17 additions & 5 deletions doc/project_config.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
<?php
require_once("docutil.php");
page_head("Project XML document");
page_head("Project configuration web RPC");
echo "
Each BOINC project and account manager must provide an XML document
at the address
Each BOINC project and account manager exports
a few configuration items via a web RPC;
namely, it must provide an XML document at the address
<pre>
http://PROJECT_URL/get_project_config.php
</pre>
This file is created by <a href=make_project.php>make_project</a>,
and in most cases you don't have to change it.
<p>
This document has the structure
".html_text("
<project_config>
Expand All @@ -15,6 +20,7 @@
[ <account_manager/> ]
[ <uses_username/> ]
[ <account_creation_disabled/> ]
[ <client_account_creation_disabled/> ]
[ <rpc_prefix>URL</rpc_prefix> ]
[ <error_num>N</error_num> ]
[
Expand Down Expand Up @@ -52,6 +58,10 @@
list_item("account_creation_disabled",
"If present, this project is not allowing creation of new accounts"
);
list_item("client_account_creation_disabled",
"If present, new accounts can be created only via the web
(not via the client software)."
);
list_item("min_passwd_length",
"Minimum password length (for new account creation)"
);
Expand All @@ -67,10 +77,12 @@
get sent any work by the project.
All requirements are 'net'; e.g. the CPU requirements
are after factors like <a href=sched.php>on-fraction, active-fraction</a>,
and resource share have been taken into consideration."
and resource share have been taken into consideration.
NOT IMPLEMENTED YET."
);
list_item("platforms",
"A list of platforms for which the project has application versions."
"A list of platforms for which the project has application versions.
NOT IMPLEMENTED YET."
);
list_end();
echo "
Expand Down
9 changes: 9 additions & 0 deletions doc/web_rpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<h3>Contents</h3>
<ul>
<li> <a href=#overview>Overview</a>
<li> <a href=#project_config#>Project configuration</a>
<li> <a href=#create_account>Create account</a>
<li> <a href=#lookup_account>Lookup account</a>
<li> <a href=#am_get_info>Get account info</a>
Expand Down Expand Up @@ -51,6 +52,14 @@
</ul>
<a name=project_config></a>
<h3>Project configuration</h3>
Each BOINC project exports some configuration items relevant
to attaching and creating accounts.
This RPC is documented
<a href=project_config.php>here</a>.
<a name=create_account></a>
<h3>Create account</h3>
";
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions py/Boinc/setup_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def mkdir2(d):

def install_boinc_files(dest_dir):
"""Copy files from source dir to project dir.
Used by the upgrade script, so don't overwrite sample files."""
Used by the upgrade script, so don't copy sample files to real name."""

def dir(*dirs):
return apply(os.path.join,(dest_dir,)+dirs)
Expand Down Expand Up @@ -461,9 +461,11 @@ def install_project(self, scheduler_file = None):

install_boinc_files(self.dir())

# copy sample web files
# copy sample web files to final names
install(srcdir('html/user/sample_index.php'),
self.dir('html/user/index.php'))
install(srcdir('html/user/sample_get_project_config.php'),
self.dir('html/user/get_project_config.php'))
install(srcdir('html/project.sample/project.inc'),
self.dir('html/project/project.inc'))
install(srcdir('html/project.sample/project_specific_prefs.inc'),
Expand Down
24 changes: 1 addition & 23 deletions tools/parse_config
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,17 @@

# -*- mode: python; python-indent: 4; -*-



## $Id$



'''
A program to pass config file settings to calling programs via stdout
'''



import boinc_path_config
from Boinc import configxml

import configxml
import sys, os



program_path = os.path.realpath(os.path.dirname(sys.argv[0]))

config_filename = os.path.realpath(os.path.join(program_path, '../config.xml'))



config = configxml.ConfigFile(config_filename).read()


print config.config.__dict__.get(sys.argv[1])

0 comments on commit cb583ae

Please sign in to comment.