2004-01-13 06:51:19 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
2005-10-12 18:40:53 +00:00
|
|
|
'''
|
|
|
|
Add platform and application records to the BOINC database.
|
|
|
|
Reads info from "project.xml", e.g.:
|
|
|
|
|
|
|
|
<boinc>
|
|
|
|
<platform>
|
|
|
|
<name>i686-pc-linux-gnu</name>
|
|
|
|
<user_friendly_name>Linux/x86</user_friendly_name>
|
|
|
|
</platform>
|
|
|
|
<app>
|
|
|
|
<name>astropulse</name>
|
|
|
|
<user_friendly_name>AstroPulse</user_friendly_name>
|
|
|
|
</app>
|
|
|
|
</boinc>
|
|
|
|
|
|
|
|
See http://boinc.berkeley.edu/tool_xadd.php
|
|
|
|
'''
|
|
|
|
|
2009-06-11 15:38:48 +00:00
|
|
|
import boinc_path_config
|
|
|
|
from Boinc import database, db_mid, projectxml
|
2004-01-13 06:51:19 +00:00
|
|
|
|
2004-01-13 07:43:53 +00:00
|
|
|
database.connect()
|
2004-01-13 07:42:30 +00:00
|
|
|
projectxml.default_project().commit_all()
|