Razvan Deaconescu [Sat, 27 Aug 2011 11:23:47 +0000 (14:23 +0300)]
ppf/new: Complete tests for parsing module.
Parsing module implementation had been updated/fixed. Implementation is
not yet complete; actual parsing must be implemented.
Razvan Deaconescu [Sat, 27 Aug 2011 08:12:48 +0000 (11:12 +0300)]
ppf/new: Updates and new tests for parsing module.
Razvan Deaconescu [Sat, 27 Aug 2011 06:43:50 +0000 (09:43 +0300)]
ppf/new: Add two tests and setUp/tearDown to parsing test module.
Razvan Deaconescu [Sat, 27 Aug 2011 06:40:53 +0000 (09:40 +0300)]
ppf/new: Fixes to LogParser classes.
Use self.method_name() to call local class methods.
LibtorrentLogParser and TriblerLogParser inherit SessionLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:41:36 +0000 (08:41 +0300)]
ppf/new: Add skeleton test methods for LibtorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:10:52 +0000 (08:10 +0300)]
ppf/new: Add test module for parsing.py.
Razvan Deaconescu [Sat, 27 Aug 2011 05:05:20 +0000 (08:05 +0300)]
ppf/new: Add skeleton methods to LibTorrentLogParser.
Razvan Deaconescu [Fri, 26 Aug 2011 18:43:55 +0000 (21:43 +0300)]
ppf/new: Add/update top level scripts according to top.py methods.
Top level scripts, to be run using the python interpreter, are
enhance_swarm_description.py, parse_swarm.py and parse_session.py.
Razvan Deaconescu [Fri, 26 Aug 2011 18:42:25 +0000 (21:42 +0300)]
ppf/new: Replase SwarmConfig class with SwarmDescription.
Remove SessionConfig class.
Update tests for config.py accordingly.
Razvan Deaconescu [Fri, 26 Aug 2011 17:18:05 +0000 (20:18 +0300)]
ppf/new: Add newly designed top-level functions in top.py.
As specified in top-design-proposal.txt.
Razvan Deaconescu [Fri, 26 Aug 2011 13:53:57 +0000 (16:53 +0300)]
ppf/new: Remove trailing white spaces.
Razvan Deaconescu [Fri, 26 Aug 2011 13:27:37 +0000 (16:27 +0300)]
ppf/new: Complete tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 12:41:12 +0000 (15:41 +0300)]
ppf/new: Complete several tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 12:40:45 +0000 (15:40 +0300)]
ppf/new: Add logging support to util.py. Fixes due to tests.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:32 +0000 (14:37 +0300)]
ppf/new: Add skeleton tests to test_util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:00 +0000 (14:37 +0300)]
ppf/new: Fix constructor of LiveLogStatus.
Razvan Deaconescu [Fri, 26 Aug 2011 10:40:54 +0000 (13:40 +0300)]
ppf/new: Add skeleton test file for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 10:34:47 +0000 (13:34 +0300)]
ppf/new: Add util.py.
util.py contains the LiveLogFile for live analysis of log files. A
specialized status file holds the current position of processing the log
file. In case of error, the analyzer would restart, read the status file
and resume parsing from where it left off.
Razvan Deaconescu [Thu, 25 Aug 2011 09:54:14 +0000 (12:54 +0300)]
ppf/new: Add top level functions and scripts design proposal.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:50 +0000 (11:02 +0300)]
ppf/new: Add "executable" swarm parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:39 +0000 (11:02 +0300)]
ppf/new: Add "executable" session parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:18 +0000 (11:02 +0300)]
ppf/new: Uncompress archive before session parsing.
Mariana Mărășoiu [Wed, 24 Aug 2011 18:15:03 +0000 (21:15 +0300)]
ppf/new: Add config.py. Add skeleton functions and tests for config.py.
Razvan Deaconescu [Wed, 24 Aug 2011 17:54:08 +0000 (20:54 +0300)]
ppf/new: Add methods for parsing swarm and session archive files.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:54 +0000 (18:57 +0300)]
ppf/new: Add top.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:42 +0000 (18:57 +0300)]
ppf/new: Update top level message in parsing.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:25 +0000 (18:57 +0300)]
ppf/new: Rename parser.py to parsing.py.
Mariana Mărășoiu [Wed, 24 Aug 2011 11:42:10 +0000 (14:42 +0300)]
ppf/new: Full implementation of add_* for MySQL.
Mariana Mărășoiu [Wed, 24 Aug 2011 11:31:39 +0000 (14:31 +0300)]
ppf/new: Use subprocess module instead of sqlparse. Connection to database
is made in setUp.
Mariana Marasoiu [Tue, 23 Aug 2011 10:27:35 +0000 (13:27 +0300)]
ppf: Add MySQL access tests.
Mariana Marasoiu [Tue, 23 Aug 2011 10:12:23 +0000 (13:12 +0300)]
ppf: Add SQL files for MySQL database.
Razvan Deaconescu [Mon, 22 Aug 2011 12:23:56 +0000 (15:23 +0300)]
ppf/new: Add skeleton for LibtorrentLogParser.
Razvan Deaconescu [Mon, 22 Aug 2011 11:37:11 +0000 (14:37 +0300)]
ppf/new: Add parser.py.
This is going to be the new parser implementation for libtorrent,
Tribler and other BitTorrent clients.
Razvan Deaconescu [Mon, 22 Aug 2011 10:38:27 +0000 (13:38 +0300)]
ppf: Add README file.
Razvan Deaconescu [Mon, 22 Aug 2011 10:37:04 +0000 (13:37 +0300)]
ppf: Add SwarmWriter class.
Razvan Deaconescu [Mon, 22 Aug 2011 10:25:13 +0000 (13:25 +0300)]
ppf: Add author recognition.
Razvan Deaconescu [Mon, 22 Aug 2011 10:22:32 +0000 (13:22 +0300)]
ppf: Complete SQLite add_* message tests.
Razvan Deaconescu [Mon, 22 Aug 2011 10:16:46 +0000 (13:16 +0300)]
ppf: Add support for datetime timestamps in SQLiteDatabaseAccess.
Razvan Deaconescu [Mon, 22 Aug 2011 09:55:53 +0000 (12:55 +0300)]
ppf: Full implementation of add_* for SQLite.
Razvan Deaconescu [Mon, 22 Aug 2011 09:53:23 +0000 (12:53 +0300)]
ppf: Remove swarm_id in tests that add new messages.
Database schema maps client session ids to swarm ids.
Razvan Deaconescu [Mon, 22 Aug 2011 08:28:18 +0000 (11:28 +0300)]
ppf: Add SQLite access tests.
Razvan Deaconescu [Mon, 22 Aug 2011 07:56:00 +0000 (10:56 +0300)]
ppf: Update DatabaseAccess classes to initialize database in constructor.
Previously, initilization occured in the connect() method, with the
database string passed to it. Now the connect() method receives no
argument; connection information had been initialized in constructor.
Razvan Deaconescu [Mon, 22 Aug 2011 07:50:29 +0000 (10:50 +0300)]
ppf: Read test initialization/population script.
Razvan Deaconescu [Mon, 22 Aug 2011 07:13:43 +0000 (10:13 +0300)]
ppf: Add test SQL file.
Razvan Deaconescu [Mon, 22 Aug 2011 07:09:17 +0000 (10:09 +0300)]
ppf: Run creation script for SQLite tests.
Razvan Deaconescu [Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)]
ppf: Update direction strings to "send" and "receive".
Razvan Deaconescu [Mon, 22 Aug 2011 05:50:59 +0000 (08:50 +0300)]
ppf: Replace date, time with h timestamp.
timestamp will be a Python Datetime object.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:29 +0000 (22:03 +0300)]
ppf: Add skeleton tests for SQLiteDatabaseAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:01 +0000 (22:03 +0300)]
ppf: Populate skeleton methods for *DatabaseAccess classes.
Razvan Deaconescu [Sun, 21 Aug 2011 18:32:34 +0000 (21:32 +0300)]
ppf: "Break" asserts for swarm and client sessions tests.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:52 +0000 (21:28 +0300)]
ppf: Add tests for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:24 +0000 (21:28 +0300)]
ppf: Add implementation for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 17:35:18 +0000 (20:35 +0300)]
ppf: Add test suite for add_client_session.
Razvan Deaconescu [Sun, 21 Aug 2011 17:34:47 +0000 (20:34 +0300)]
Add add_client_session to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 17:08:39 +0000 (20:08 +0300)]
ppf: Add test suite for TreeTextFileAccess class.
Razvan Deaconescu [Sun, 21 Aug 2011 16:48:12 +0000 (19:48 +0300)]
Add add_swarm to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 16:31:05 +0000 (19:31 +0300)]
ppf: Add tests for storage.py functions.
Razvan Deaconescu [Sun, 21 Aug 2011 16:30:34 +0000 (19:30 +0300)]
ppf: Move find_numeric_subfolder function outside class.
Razvan Deaconescu [Sun, 21 Aug 2011 15:41:37 +0000 (18:41 +0300)]
Add logging support to storage.
Razvan Deaconescu [Sun, 21 Aug 2011 15:40:51 +0000 (18:40 +0300)]
Initial fill of TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 14:56:28 +0000 (17:56 +0300)]
Remove BTClient class.
BitTorrent clients are defined as a dictionary.
Razvan Deaconescu [Sun, 21 Aug 2011 14:30:05 +0000 (17:30 +0300)]
ppf: Add storage.py.
Swarm data logging backend.
Razvan Deaconescu [Sat, 20 Aug 2011 18:29:29 +0000 (21:29 +0300)]
Add TODOs to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 18:00:46 +0000 (21:00 +0300)]
ppf: Replace TABs with spaces.
Razvan Deaconescu [Sat, 20 Aug 2011 17:57:01 +0000 (20:57 +0300)]
ppf: Rename db_init to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 17:49:51 +0000 (20:49 +0300)]
Add Python SQLite initialization script.
Uses Python code to initialize SQLite database file (executes SQL script).
Razvan Deaconescu [Sat, 20 Aug 2011 16:54:52 +0000 (19:54 +0300)]
ppf: Add sessctl.py.
Interface for swarm/client session handling in the database.
Razvan Deaconescu [Sat, 20 Aug 2011 16:22:00 +0000 (19:22 +0300)]
ppf: Add msgctl.py.
Interface for status/verbose messages handling in the database.
Razvan Deaconescu [Sat, 20 Aug 2011 09:44:36 +0000 (12:44 +0300)]
Add wrapper methods to access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 20:16:27 +0000 (23:16 +0300)]
ppf: Add unit test suite for julian.py.
Razvan Deaconescu [Fri, 19 Aug 2011 20:15:59 +0000 (23:15 +0300)]
ppf: Update julian.py.
Indentation, package import, comments.
Razvan Deaconescu [Fri, 19 Aug 2011 18:48:40 +0000 (21:48 +0300)]
ppf: Add tests for date_time methods.
Razvan Deaconescu [Fri, 19 Aug 2011 18:35:27 +0000 (21:35 +0300)]
ppf: Add datetime insert functions in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 11:43:21 +0000 (14:43 +0300)]
ppf: Add test to check exception raising in case of non-existent database file.
Razvan Deaconescu [Fri, 19 Aug 2011 11:42:17 +0000 (14:42 +0300)]
ppf: Update log formatting. Add exception handling.
Create DatabaseError class for raising Database exceptions.
Razvan Deaconescu [Fri, 19 Aug 2011 10:43:53 +0000 (13:43 +0300)]
ppf: Add Python logging module support.
Razvan Deaconescu [Fri, 19 Aug 2011 10:07:46 +0000 (13:07 +0300)]
ppf: Replace '?' string with '%s' in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 10:04:47 +0000 (13:04 +0300)]
ppf: Remove return values in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:58:07 +0000 (12:58 +0300)]
ppf: Do coding style "arrangements" in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:35:02 +0000 (12:35 +0300)]
ppf: Add get_connection() method to access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:33:18 +0000 (12:33 +0300)]
ppf: Add description and developer information.
Razvan Deaconescu [Fri, 19 Aug 2011 09:31:32 +0000 (12:31 +0300)]
ppf: show parameter is False by default in select methods.
Razvan Deaconescu [Fri, 19 Aug 2011 09:27:34 +0000 (12:27 +0300)]
ppf: Use capitals for SQL statements in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:23:04 +0000 (12:23 +0300)]
ppf: Use capitals for SQL statements in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 09:13:38 +0000 (12:13 +0300)]
ppf: Use *_row methods in unit tests.
Razvan Deaconescu [Fri, 19 Aug 2011 08:52:49 +0000 (11:52 +0300)]
ppf: Remove solved comments.
Razvan Deaconescu [Fri, 19 Aug 2011 08:52:13 +0000 (11:52 +0300)]
ppf: Remove old commented code in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 08:50:18 +0000 (11:50 +0300)]
ppf: Add insert_test_*_messages methods in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:54:48 +0000 (10:54 +0300)]
ppf: Add insert_test_btclients method in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:35:25 +0000 (10:35 +0300)]
ppf: Add insert_test_swarms method in test suite.
Inserts test entries in the `swarms` table. Select, insert and update
methods are checked against number of entries in the table.
Razvan Deaconescu [Fri, 19 Aug 2011 07:17:13 +0000 (10:17 +0300)]
ppf: Add get_cursor_num_rows() method in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:01:40 +0000 (10:01 +0300)]
ppf: Add tests to select_btclients* methods.
Razvan Deaconescu [Fri, 19 Aug 2011 06:50:30 +0000 (09:50 +0300)]
ppf: Add database connection/initialization in setUp test method.
Razvan Deaconescu [Thu, 18 Aug 2011 17:45:36 +0000 (20:45 +0300)]
Complete basic tests for access.py.
Razvan Deaconescu [Wed, 17 Aug 2011 15:00:30 +0000 (18:00 +0300)]
ppf: Add partial tests for accees.py.
Razvan Deaconescu [Wed, 17 Aug 2011 14:20:23 +0000 (17:20 +0300)]
ppf: Update select_swarms to return None on error.
Razvan Deaconescu [Wed, 17 Aug 2011 14:02:59 +0000 (17:02 +0300)]
ppf: Remove get_connection method.
Razvan Deaconescu [Wed, 17 Aug 2011 14:01:41 +0000 (17:01 +0300)]
ppf: Return connection in connect method for DatabaseAccess.
Razvan Deaconescu [Wed, 17 Aug 2011 13:56:45 +0000 (16:56 +0300)]
ppf: Fix: Use database instead of self.database.
Razvan Deaconescu [Wed, 17 Aug 2011 13:43:26 +0000 (16:43 +0300)]
ppf: Fix: Remove self. from global class variables.