cs-p2p-next.git
12 years agoppf/new: Add skeleton test methods for LibtorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:41:36 +0000 (08:41 +0300)]
ppf/new: Add skeleton test methods for LibtorrentLogParser.

12 years agoppf/new: Add test module for parsing.py.
Razvan Deaconescu [Sat, 27 Aug 2011 05:10:52 +0000 (08:10 +0300)]
ppf/new: Add test module for parsing.py.

12 years agoppf/new: Add skeleton methods to LibTorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:05:20 +0000 (08:05 +0300)]
ppf/new: Add skeleton methods to LibTorrentLogParser.

12 years agoppf/new: Add/update top level scripts according to top.py methods.
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.

12 years agoppf/new: Replase SwarmConfig class with SwarmDescription.
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.

12 years agoppf/new: Add newly designed top-level functions in top.py.
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.

12 years agoppf/new: Remove trailing white spaces.
Razvan Deaconescu [Fri, 26 Aug 2011 13:53:57 +0000 (16:53 +0300)]
ppf/new: Remove trailing white spaces.

12 years agoppf/new: Complete tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 13:27:37 +0000 (16:27 +0300)]
ppf/new: Complete tests for util.py.

12 years agoppf/new: Complete several 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.

12 years agoppf/new: Add logging support to util.py. Fixes due to tests.
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.

12 years agoppf/new: Add skeleton tests to test_util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:32 +0000 (14:37 +0300)]
ppf/new: Add skeleton tests to test_util.py.

12 years agoppf/new: Fix constructor of LiveLogStatus.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:00 +0000 (14:37 +0300)]
ppf/new: Fix constructor of LiveLogStatus.

12 years agoppf/new: Add skeleton test file for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 10:40:54 +0000 (13:40 +0300)]
ppf/new: Add skeleton test file for util.py.

12 years agoppf/new: Add 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.

12 years agoppf/new: Add top level functions and scripts design proposal.
Razvan Deaconescu [Thu, 25 Aug 2011 09:54:14 +0000 (12:54 +0300)]
ppf/new: Add top level functions and scripts design proposal.

12 years agoppf/new: Add "executable" swarm parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:50 +0000 (11:02 +0300)]
ppf/new: Add "executable" swarm parsing script.

12 years agoppf/new: Add "executable" session parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:39 +0000 (11:02 +0300)]
ppf/new: Add "executable" session parsing script.

12 years agoppf/new: Uncompress archive before session parsing.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:18 +0000 (11:02 +0300)]
ppf/new: Uncompress archive before session parsing.

12 years agoppf/new: Add config.py. Add skeleton functions and tests for config.py.
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.

12 years agoppf/new: Add methods for parsing swarm and session archive files.
Razvan Deaconescu [Wed, 24 Aug 2011 17:54:08 +0000 (20:54 +0300)]
ppf/new: Add methods for parsing swarm and session archive files.

12 years agoppf/new: Add top.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:54 +0000 (18:57 +0300)]
ppf/new: Add top.py.

12 years agoppf/new: Update top level message in parsing.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:42 +0000 (18:57 +0300)]
ppf/new: Update top level message in parsing.py.

12 years agoppf/new: Rename parser.py to parsing.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:25 +0000 (18:57 +0300)]
ppf/new: Rename parser.py to parsing.py.

12 years agoppf/new: Full implementation of add_* for MySQL.
Mariana Mărășoiu [Wed, 24 Aug 2011 11:42:10 +0000 (14:42 +0300)]
ppf/new: Full implementation of add_* for MySQL.

12 years agoppf/new: Use subprocess module instead of sqlparse. Connection to database
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.

12 years agoppf: Add MySQL access tests.
Mariana Marasoiu [Tue, 23 Aug 2011 10:27:35 +0000 (13:27 +0300)]
ppf: Add MySQL access tests.

12 years agoppf: Add SQL files for MySQL database.
Mariana Marasoiu [Tue, 23 Aug 2011 10:12:23 +0000 (13:12 +0300)]
ppf: Add SQL files for MySQL database.

12 years agoppf/new: Add skeleton for LibtorrentLogParser.
Razvan Deaconescu [Mon, 22 Aug 2011 12:23:56 +0000 (15:23 +0300)]
ppf/new: Add skeleton for LibtorrentLogParser.

12 years agoppf/new: Add parser.py.
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.

12 years agoppf: Add README file.
Razvan Deaconescu [Mon, 22 Aug 2011 10:38:27 +0000 (13:38 +0300)]
ppf: Add README file.

12 years agoppf: Add SwarmWriter class.
Razvan Deaconescu [Mon, 22 Aug 2011 10:37:04 +0000 (13:37 +0300)]
ppf: Add SwarmWriter class.

12 years agoppf: Add author recognition.
Razvan Deaconescu [Mon, 22 Aug 2011 10:25:13 +0000 (13:25 +0300)]
ppf: Add author recognition.

12 years agoppf: Complete SQLite add_* message tests.
Razvan Deaconescu [Mon, 22 Aug 2011 10:22:32 +0000 (13:22 +0300)]
ppf: Complete SQLite add_* message tests.

12 years agoppf: Add support for datetime timestamps in SQLiteDatabaseAccess.
Razvan Deaconescu [Mon, 22 Aug 2011 10:16:46 +0000 (13:16 +0300)]
ppf: Add support for datetime timestamps in SQLiteDatabaseAccess.

12 years agoppf: Full implementation of add_* for SQLite.
Razvan Deaconescu [Mon, 22 Aug 2011 09:55:53 +0000 (12:55 +0300)]
ppf: Full implementation of add_* for SQLite.

12 years agoppf: Remove swarm_id in tests that add new messages.
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.

12 years agoppf: Add SQLite access tests.
Razvan Deaconescu [Mon, 22 Aug 2011 08:28:18 +0000 (11:28 +0300)]
ppf: Add SQLite access tests.

12 years agoppf: Update DatabaseAccess classes to initialize database in constructor.
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.

12 years agoppf: Read test initialization/population script.
Razvan Deaconescu [Mon, 22 Aug 2011 07:50:29 +0000 (10:50 +0300)]
ppf: Read test initialization/population script.

12 years agoppf: Add test SQL file.
Razvan Deaconescu [Mon, 22 Aug 2011 07:13:43 +0000 (10:13 +0300)]
ppf: Add test SQL file.

12 years agoppf: Run creation script for SQLite tests.
Razvan Deaconescu [Mon, 22 Aug 2011 07:09:17 +0000 (10:09 +0300)]
ppf: Run creation script for SQLite tests.

12 years agoppf: Update direction strings to "send" and "receive".
Razvan Deaconescu [Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)]
ppf: Update direction strings to "send" and "receive".

12 years agoppf: Replace date, time with h timestamp.
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.

12 years agoppf: Add skeleton tests for SQLiteDatabaseAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:29 +0000 (22:03 +0300)]
ppf: Add skeleton tests for SQLiteDatabaseAccess.

12 years agoppf: Populate skeleton methods for *DatabaseAccess classes.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:01 +0000 (22:03 +0300)]
ppf: Populate skeleton methods for *DatabaseAccess classes.

12 years agoppf: "Break" asserts for swarm and client sessions tests.
Razvan Deaconescu [Sun, 21 Aug 2011 18:32:34 +0000 (21:32 +0300)]
ppf: "Break" asserts for swarm and client sessions tests.

12 years agoppf: Add tests for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:52 +0000 (21:28 +0300)]
ppf: Add tests for add_*_message.

12 years agoppf: Add implementation for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:24 +0000 (21:28 +0300)]
ppf: Add implementation for add_*_message.

12 years agoppf: Add test suite for add_client_session.
Razvan Deaconescu [Sun, 21 Aug 2011 17:35:18 +0000 (20:35 +0300)]
ppf: Add test suite for add_client_session.

12 years agoAdd add_client_session to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 17:34:47 +0000 (20:34 +0300)]
Add add_client_session to TreeTextFileAccess.

12 years agoppf: Add test suite for TreeTextFileAccess class.
Razvan Deaconescu [Sun, 21 Aug 2011 17:08:39 +0000 (20:08 +0300)]
ppf: Add test suite for TreeTextFileAccess class.

12 years agoAdd add_swarm to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 16:48:12 +0000 (19:48 +0300)]
Add add_swarm to TreeTextFileAccess.

12 years agoppf: Add tests for storage.py functions.
Razvan Deaconescu [Sun, 21 Aug 2011 16:31:05 +0000 (19:31 +0300)]
ppf: Add tests for storage.py functions.

12 years agoppf: Move find_numeric_subfolder function outside class.
Razvan Deaconescu [Sun, 21 Aug 2011 16:30:34 +0000 (19:30 +0300)]
ppf: Move find_numeric_subfolder function outside class.

12 years agoAdd logging support to storage.
Razvan Deaconescu [Sun, 21 Aug 2011 15:41:37 +0000 (18:41 +0300)]
Add logging support to storage.

12 years agoInitial fill of TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 15:40:51 +0000 (18:40 +0300)]
Initial fill of TreeTextFileAccess.

12 years agoRemove BTClient class.
Razvan Deaconescu [Sun, 21 Aug 2011 14:56:28 +0000 (17:56 +0300)]
Remove BTClient class.

BitTorrent clients are defined as a dictionary.

12 years agoppf: Add storage.py.
Razvan Deaconescu [Sun, 21 Aug 2011 14:30:05 +0000 (17:30 +0300)]
ppf: Add storage.py.

Swarm data logging backend.

12 years agoAdd TODOs to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 18:29:29 +0000 (21:29 +0300)]
Add TODOs to sqlite_initdb.bash.

12 years agoppf: Replace TABs with spaces.
Razvan Deaconescu [Sat, 20 Aug 2011 18:00:46 +0000 (21:00 +0300)]
ppf: Replace TABs with spaces.

12 years agoppf: Rename db_init to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 17:57:01 +0000 (20:57 +0300)]
ppf: Rename db_init to sqlite_initdb.bash.

12 years agoAdd Python SQLite initialization script.
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).

12 years agoppf: Add sessctl.py.
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.

12 years agoppf: Add msgctl.py.
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.

12 years agoAdd wrapper methods to access.py.
Razvan Deaconescu [Sat, 20 Aug 2011 09:44:36 +0000 (12:44 +0300)]
Add wrapper methods to access.py.

12 years agoppf: Add unit test suite for julian.py.
Razvan Deaconescu [Fri, 19 Aug 2011 20:16:27 +0000 (23:16 +0300)]
ppf: Add unit test suite for julian.py.

12 years agoppf: Update julian.py.
Razvan Deaconescu [Fri, 19 Aug 2011 20:15:59 +0000 (23:15 +0300)]
ppf: Update julian.py.

Indentation, package import, comments.

12 years agoppf: Add tests for date_time methods.
Razvan Deaconescu [Fri, 19 Aug 2011 18:48:40 +0000 (21:48 +0300)]
ppf: Add tests for date_time methods.

12 years agoppf: Add datetime insert functions in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 18:35:27 +0000 (21:35 +0300)]
ppf: Add datetime insert functions in access.py.

12 years agoppf: Add test to check exception raising in case of non-existent database file.
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.

12 years agoppf: Update log formatting. Add exception handling.
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.

12 years agoppf: Add Python logging module support.
Razvan Deaconescu [Fri, 19 Aug 2011 10:43:53 +0000 (13:43 +0300)]
ppf: Add Python logging module support.

12 years agoppf: Replace '?' string with '%s' in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 10:07:46 +0000 (13:07 +0300)]
ppf: Replace '?' string with '%s' in access.py.

12 years agoppf: Remove return values in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 10:04:47 +0000 (13:04 +0300)]
ppf: Remove return values in access.py.

12 years agoppf: Do coding style "arrangements" in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:58:07 +0000 (12:58 +0300)]
ppf: Do coding style "arrangements" in access.py.

12 years agoppf: Add get_connection() method to access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:35:02 +0000 (12:35 +0300)]
ppf: Add get_connection() method to access.py.

12 years agoppf: Add description and developer information.
Razvan Deaconescu [Fri, 19 Aug 2011 09:33:18 +0000 (12:33 +0300)]
ppf: Add description and developer information.

12 years agoppf: show parameter is False by default in select methods.
Razvan Deaconescu [Fri, 19 Aug 2011 09:31:32 +0000 (12:31 +0300)]
ppf: show parameter is False by default in select methods.

12 years agoppf: Use capitals for SQL statements in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:27:34 +0000 (12:27 +0300)]
ppf: Use capitals for SQL statements in access.py.

12 years agoppf: Use capitals for SQL statements in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 09:23:04 +0000 (12:23 +0300)]
ppf: Use capitals for SQL statements in test suite.

12 years agoppf: Use *_row methods in unit tests.
Razvan Deaconescu [Fri, 19 Aug 2011 09:13:38 +0000 (12:13 +0300)]
ppf: Use *_row methods in unit tests.

12 years agoppf: Remove solved comments.
Razvan Deaconescu [Fri, 19 Aug 2011 08:52:49 +0000 (11:52 +0300)]
ppf: Remove solved comments.

12 years agoppf: Remove old commented code in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 08:52:13 +0000 (11:52 +0300)]
ppf: Remove old commented code in test suite.

12 years agoppf: Add insert_test_*_messages methods 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.

12 years agoppf: Add insert_test_btclients method 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.

12 years agoppf: Add insert_test_swarms 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.

12 years agoppf: Add get_cursor_num_rows() method in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:17:13 +0000 (10:17 +0300)]
ppf: Add get_cursor_num_rows() method in test suite.

12 years agoppf: Add tests to select_btclients* methods.
Razvan Deaconescu [Fri, 19 Aug 2011 07:01:40 +0000 (10:01 +0300)]
ppf: Add tests to select_btclients* methods.

12 years agoppf: Add database connection/initialization in setUp test method.
Razvan Deaconescu [Fri, 19 Aug 2011 06:50:30 +0000 (09:50 +0300)]
ppf: Add database connection/initialization in setUp test method.

12 years agoComplete basic tests for access.py.
Razvan Deaconescu [Thu, 18 Aug 2011 17:45:36 +0000 (20:45 +0300)]
Complete basic tests for access.py.

12 years agoppf: Add partial tests for accees.py.
Razvan Deaconescu [Wed, 17 Aug 2011 15:00:30 +0000 (18:00 +0300)]
ppf: Add partial tests for accees.py.

12 years agoppf: Update select_swarms to return None on error.
Razvan Deaconescu [Wed, 17 Aug 2011 14:20:23 +0000 (17:20 +0300)]
ppf: Update select_swarms to return None on error.

12 years agoppf: Remove get_connection method.
Razvan Deaconescu [Wed, 17 Aug 2011 14:02:59 +0000 (17:02 +0300)]
ppf: Remove get_connection method.

12 years agoppf: Return connection in connect method for DatabaseAccess.
Razvan Deaconescu [Wed, 17 Aug 2011 14:01:41 +0000 (17:01 +0300)]
ppf: Return connection in connect method for DatabaseAccess.

12 years agoppf: Fix: Use database instead of self.database.
Razvan Deaconescu [Wed, 17 Aug 2011 13:56:45 +0000 (16:56 +0300)]
ppf: Fix: Use database instead of self.database.

12 years agoppf: Fix: Remove self. from global class variables.
Razvan Deaconescu [Wed, 17 Aug 2011 13:43:26 +0000 (16:43 +0300)]
ppf: Fix: Remove self. from global class variables.

12 years agoRestore DatabaseAccess.py.
Razvan Deaconescu [Tue, 16 Aug 2011 17:53:13 +0000 (20:53 +0300)]
Restore DatabaseAccess.py.

12 years agoAdd test skeleton to test_access_sqlite.
Razvan Deaconescu [Tue, 16 Aug 2011 17:34:28 +0000 (20:34 +0300)]
Add test skeleton to test_access_sqlite.

12 years agoRename test_access to test_access_sqlite.
Razvan Deaconescu [Tue, 16 Aug 2011 17:02:14 +0000 (20:02 +0300)]
Rename test_access to test_access_sqlite.

12 years agoInitial working version for test_access.
Razvan Deaconescu [Tue, 16 Aug 2011 17:01:06 +0000 (20:01 +0300)]
Initial working version for test_access.