*** empty log message ***

svn path=/trunk/boinc/; revision=11116
This commit is contained in:
David Anderson 2006-09-06 17:18:51 +00:00
parent b7b0abf860
commit cb583ae458
6 changed files with 44 additions and 30 deletions

View File

@ -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

View File

@ -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>
@ -15,6 +20,7 @@ This document has the structure
[ <account_manager/> ]
[ <uses_username/> ]
[ <account_creation_disabled/> ]
[ <client_account_creation_disabled/> ]
[ <rpc_prefix>URL</rpc_prefix> ]
[ <error_num>N</error_num> ]
[
@ -52,6 +58,10 @@ list_item("uses_username",
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)"
);
@ -67,10 +77,12 @@ list_item("system_requirements",
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 "

View File

@ -7,6 +7,7 @@ echo "
<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>
@ -51,6 +52,14 @@ otherwise use the project's master URL.
</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>
";

View File

@ -312,7 +312,7 @@ def create_project_dirs(dest_dir):
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)
@ -461,9 +461,11 @@ class Project:
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'),

View File

@ -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])