diff --git a/agent/README.txt b/agent/README.txt index fd2ffe7..77d4431 100644 --- a/agent/README.txt +++ b/agent/README.txt @@ -54,6 +54,21 @@ Configuration (per job) >>> tester.iterate() executing +We can set up a more realistic example using the dummy crawler and transporter +classes from testing. + + >>> from testing.crawl import CrawlingJob + >>> from testing.transport import Transporter, TransportJob + + >>> crawl = CrawlingJob() + >>> transporter = Transporter() + >>> transport = TransportJob(transporter) + >>> crawl.successors.append(transport) + >>> scheduler.schedule(crawl, int(time())) + + >>> tester.iterate() + Transferring: Dummy resource data for testing purposes. + Crawling ======== @@ -72,21 +87,6 @@ Configuration (per crawl job) - predefined metadata -The Dummy Crawler ------------------ - - >>> from testing.crawl import CrawlingJob - >>> from testing.transport import Transporter, TransportJob - - >>> crawl = CrawlingJob() - >>> transporter = Transporter() - >>> transport = TransportJob(transporter) - >>> crawl.successors.append(transport) - >>> scheduler.schedule(crawl, int(time())) - - >>> tester.iterate() - Transferring: Dummy resource data for testing purposes. - Local File System ----------------- diff --git a/agent/interfaces.py b/agent/interfaces.py index eb2a1be..e10c462 100644 --- a/agent/interfaces.py +++ b/agent/interfaces.py @@ -148,7 +148,7 @@ class ITransportJob(IScheduledJob): """ A job managing the the transfer of a resource to the server. """ - transporter = Attribute('The transporter object to user for transer.') + transporter = Attribute('The transporter object to use for transer.') class IConfigurator(Interface):