Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | Cleaned up and added comments | David Sommerseth | 2009-10-15 | 2 | -27/+60 | |
| | | ||||||
| * | Added first-cut of the parsethread() function | David Sommerseth | 2009-10-14 | 2 | -0/+135 | |
| | | ||||||
| * | Added db_begin(), db_rollback() and db_commit() functions | David Sommerseth | 2009-10-14 | 2 | -1/+72 | |
| | | ||||||
| * | Added needed pgsql.h file and cleaned up the DB API a little bit | David Sommerseth | 2009-10-13 | 2 | -20/+52 | |
| | | ||||||
| * | Added doxygen comments for xmlparser.[ch] and pgsql.c | David Sommerseth | 2009-10-12 | 3 | -2/+188 | |
| | | ||||||
| * | Added db_register_cyclictest() | David Sommerseth | 2009-10-12 | 1 | -0/+65 | |
| | | ||||||
| * | Note to self: it's more clever to use strdup_nullsafe() than strdup() ... | David Sommerseth | 2009-10-12 | 1 | -1/+1 | |
| | | ||||||
| * | Added db_register_rtevalrun() | David Sommerseth | 2009-10-12 | 2 | -2/+82 | |
| | | | | | | | | | | Registers report XML data into the rtevalruns and rtevalruns_details tables in the database. | |||||
| * | Added db_register_system() | David Sommerseth | 2009-10-12 | 1 | -3/+111 | |
| | | | | | | | | | | This functions registers a report XML's system and hostname information in the database. It will return the numeric syskey ID. | |||||
| * | Added sqldataGetHostInfo() | David Sommerseth | 2009-10-12 | 2 | -1/+42 | |
| | | | | | | | | | | | | This function parses the input report XML through the xmlparser.xsl XSLT template. It returns hostname and IP address via the function arguments and an sqldata XML document as the return value. On errors, NULL is returned. | |||||
| * | Refactored sqldataGetFid() and sqldataGetValue() functions | David Sommerseth | 2009-10-12 | 2 | -11/+15 | |
| | | | | | | | | | | | | | | | | sqldataGetFid() now takes xmlNode instead of xmlDoc, and sqldataGetValue() takes field name instead of numeric field id (fid) to simpilfy the API. Fixed a double-free bug caused by a missing strdup() in sqldataValueHas(). | |||||
| * | Made some basic DB API stuff more generic | David Sommerseth | 2009-10-09 | 1 | -1/+6 | |
| | | | | | | | | | | Renamed connectdb() to db_connect() and introduced db_disconnect(). This is to make it easier to introduce a new database backend. | |||||
| * | Make pgsql_INSERT() make use of the new neat functions in xmlparser | David Sommerseth | 2009-10-09 | 1 | -46/+11 | |
| | | ||||||
| * | Added some more useful functions to xmlparser | David Sommerseth | 2009-10-09 | 2 | -0/+153 | |
| | | ||||||
| * | Added needed pieces to make the C based summary.xml parser work | David Sommerseth | 2009-10-07 | 14 | -0/+2126 | |
| | | ||||||
| * | Add XML-RPC submissions into a submission queue instead of parsing it directly | David Sommerseth | 2009-09-30 | 2 | -9/+30 | |
|/ | | | | | | This is to avoid overloading the Apache process doing XML parsing and database inserts on bigger XML reports. A separate parser process will need to pick files from the submission queue and parse them in separate thread(s). | |||||
* | Fixed missing variable. The value should be picked out from the configuration | David Sommerseth | 2009-09-25 | 1 | -2/+2 | |
| | ||||||
* | Updated XML-RPC README file and installation scripts | David Sommerseth | 2009-09-25 | 3 | -68/+127 | |
| | ||||||
* | Rewritten XML-RPC server to use rtevalConfig | David Sommerseth | 2009-09-24 | 3 | -12/+35 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduced a new rteval.conf section for configuring the xmlrpc server. [xmlrpc_server] datadir: <path to where to save copy of summary.xml report> xsltpath: <path to where xmlparser.xsl can be found> db_server: <hostname of PostgreSQL server to connect to> db_port: <port number of PostgreSQL> database: <database to use> db_username: <connect to database as this user> db_password: <password for the db account> The default values of these parameters are: datadir: /var/lib/rteval xsltpath: /usr/share/rteval db_server: localhost db_port: 5432 database: rteval db_username: xmlrpc db_password: rtevaldb The xmlrpc_server section in the /etc/rteval.conf file only need those parameters which are different from the default values. | |||||
* | Added README file for quick info for setting up an XML-RPC service | David Sommerseth | 2009-09-01 | 1 | -0/+92 | |
| | ||||||
* | Set correct path for XML-RPC API1 server data dir | David Sommerseth | 2009-08-25 | 1 | -1/+1 | |
| | ||||||
* | Fixed wrong rterid ID return from xmlrpc_API1::SendReport() function | David Sommerseth | 2009-08-05 | 1 | -1/+1 | |
| | | | | It had inverse boolean logic than what was expected | |||||
* | Corrected missing scope with debug variable in Database::SELECT() method | David Sommerseth | 2009-08-05 | 1 | -1/+1 | |
| | ||||||
* | Added remove_rtevalrun utility | David Sommerseth | 2009-08-05 | 1 | -0/+84 | |
| | | | | | This utility connects to the rteval database and removes all data connected to a given rteval run. | |||||
* | Implemented Database::DELETE() metod | David Sommerseth | 2009-08-05 | 1 | -0/+22 | |
| | ||||||
* | Cleaned up a DB connection regression | David Sommerseth | 2009-08-05 | 1 | -2/+1 | |
| | | | | | This was introduced in commit 3b21ff811a792becdbc59ad7800940df3befe09f by a mistake. | |||||
* | Added simple testclient which sends a report file to an XML-RPC server | David Sommerseth | 2009-08-05 | 1 | -0/+55 | |
| | ||||||
* | Simplified test server, default - no DB actions and debug info enabled | David Sommerseth | 2009-08-05 | 2 | -90/+3 | |
| | ||||||
* | Improved possibility to get more debug info, and to run tests without ↵ | David Sommerseth | 2009-08-05 | 3 | -14/+38 | |
| | | | | executing SQL queries | |||||
* | Improved error message on SQL SELECT queries | David Sommerseth | 2009-08-05 | 1 | -7/+10 | |
| | ||||||
* | Added better error handling when reading XML files and returning empty tag ↵ | David Sommerseth | 2009-08-05 | 1 | -2/+5 | |
| | | | | values as None | |||||
* | Save IPv4 address of the system in systems_hostnames | David Sommerseth | 2009-08-05 | 2 | -3/+4 | |
| | ||||||
* | Made the XML-RPC test server work without database (just save a copy of XML ↵ | David Sommerseth | 2009-08-05 | 2 | -5/+8 | |
| | | | | | | report) Also fixed XML-RPC URL path for requests, to match the production environment | |||||
* | Added missing database.py in PYTHON_FILES | David Sommerseth | 2009-07-30 | 1 | -1/+1 | |
| | ||||||
* | Fixed missing reference to module | David Sommerseth | 2009-07-30 | 1 | -1/+1 | |
| | ||||||
* | Added new files needed for XML-RPC server | David Sommerseth | 2009-07-30 | 1 | -1/+1 | |
| | ||||||
* | Implemented the register_report() feature in the XMLRPC handler | David Sommerseth | 2009-07-30 | 1 | -3/+7 | |
| | ||||||
* | Added rtevaldb.py, contains register_report() function | David Sommerseth | 2009-07-30 | 1 | -0/+93 | |
| | | | | | This function parses the summary.xml data with rteval data and puts it into the database | |||||
* | database - added NumTuples() method | David Sommerseth | 2009-07-30 | 1 | -0/+17 | |
| | ||||||
* | xmlparser - did not try to take value out of a list | David Sommerseth | 2009-07-30 | 1 | -1/+1 | |
| | ||||||
* | database: Added SELECT() and GetValue() methods | David Sommerseth | 2009-07-30 | 1 | -0/+70 | |
| | ||||||
* | xmlparser: Don't include the <value/> tag when processing xmlblobs | David Sommerseth | 2009-07-30 | 1 | -1/+1 | |
| | ||||||
* | Added new column: rtevalruns.report_filename. | David Sommerseth | 2009-07-30 | 2 | -8/+16 | |
| | | | | Corrected also some typos | |||||
* | Completed the Database class | David Sommerseth | 2009-07-30 | 1 | -7/+29 | |
| | | | | | It now properly returns a list with results of the INSERT queries. COMMIT() and ROLLBACK() methods implemented as well. | |||||
* | xmlparser: Correctly format rterid and syskey arguments, added support for ↵ | David Sommerseth | 2009-07-30 | 2 | -4/+14 | |
| | | | | /sqlite/@key attribute | |||||
* | First cut at a Database class, almost completed INSERT() function | David Sommerseth | 2009-07-29 | 1 | -0/+104 | |
| | ||||||
* | Improved xmlparser.py/XMLSQLparser class to handle libxml2.xmlDoc and ↵ | David Sommerseth | 2009-07-29 | 1 | -3/+22 | |
| | | | | | | | libxml2.xmlNode Valid input for both the XSLT and XML input parameters in the constructor now can parse libxml2.xmlDoc, libxml2.xmlNode or a string containing a filename | |||||
* | Implemented Python part of XML -> SQL parser | David Sommerseth | 2009-07-29 | 1 | -56/+65 | |
| | | | | | | | | | | | | | | | | | | | | This module will prepare a dictionary which can be used by a Database object for quering a database. class XMLSQLparser(XSLT, XMLdata) def GetSQLdata(table, rterid=None, syskey=None) The XSLT is a filename to a xmlparser.xsl file, which defines the mapping of XML fields into SQL tables and fields. The XMLdata parameter is a filename to the XML data being processed. Future version will support both filename and xmlDoc. The XMLSQLparser::GetSQLdata(...) function will parse the XML data into a Python dictionary containing all needed field names, values and table name which is useable by a Database object. The table parameter is required, and a matching table name must be defined in the XSLT template. The rterid and syskey paramters are optional, but some table definitions might need them. For more info, look into the xmlparser.xsl file | |||||
* | Fixed some syntax issues with parsing the rtevalruns_details table | David Sommerseth | 2009-07-28 | 1 | -7/+9 | |
| | ||||||
* | Added XML parsing rules for systems and systems_hostname tables | David Sommerseth | 2009-07-28 | 1 | -0/+51 | |
| |