 c3ffee3437
			
		
	
	
		c3ffee3437
		
	
	
	
	
		
			
			*agent now creates an empty temporary directory in which all jobs should create their jobdirectories ui/web.py * outlook crawler has changed, adapted ui methods accordingly to access OutlookResource objects instead of email.MIME lists * using agent object as an attribute in the AgentHome class which is now passed through when necessary * changed form for creating OutlookCrawlJobs to provide possibility to select whether inbox, subfolders or both foldertypes should be crawled and to specify a regular expression for subfolder selection todo: add scheduler options * changed the way how jobdetails are displayed * changed display of crawling ressources: now it is also possible to display the job folders and enter them to view the mail objects * added first sketch of a filesystem crawler form, without functionality at the moment known bugs: currently having problems with character encodings git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1950 fd906abe-77d9-0310-91a1-e0d9ade77398
		
			
				
	
	
		
			228 lines
		
	
	
		
			No EOL
		
	
	
		
			11 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			228 lines
		
	
	
		
			No EOL
		
	
	
		
			11 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | |
| <!--<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> //-->
 | |
| <html xmlns:nevow="http://nevow.com/ns/nevow/0.1">
 | |
| 
 | |
| <!-- Outlook Mails Page for loops.agent UI    Version: 0.1 //-->
 | |
| 
 | |
| <nevow:invisible nevow:render="header_fragment" />
 | |
| 
 | |
|   <body>
 | |
|     <div class="body">
 | |
|         <div nevow:render="top_fragment">
 | |
|         </div>
 | |
| 
 | |
|     <div id="menu">
 | |
| 
 | |
|     <div nevow:render="navigation_fragment">
 | |
|     </div>
 | |
| 
 | |
|         <br/>
 | |
|         <br/>
 | |
| 
 | |
|         <div class="box">
 | |
|           <h4>User Mode</h4>
 | |
|           <div class="body">
 | |
|           <b>Current Mode: </b><p nevow:render="getActiveUserMode"/>
 | |
| 
 | |
|           </div>
 | |
|         </div>
 | |
| 
 | |
|     </div>
 | |
| 
 | |
|     <div id="content">
 | |
|     <div></div>
 | |
|     <div></div>
 | |
| 
 | |
|     <div class="content-1" id="2.body" ondblclick="">
 | |
|         <div class="line-block">
 | |
|             <div class="line"><br /></div>
 | |
|             </div>
 | |
|             <div class="section">
 | |
|             <h3><a id="agent-ui-startpage" name="agent-ui-startpage">Agent: Create Filesystem Crawler Job</a></h3>
 | |
| 
 | |
|             <ul class="simple">
 | |
|             <li>Configuration page for Filesystem Crawler Jobs</li>
 | |
|             </ul>
 | |
|             </div>
 | |
|             <div class="section">
 | |
|                 <h3><a id="form-overview" name="form-overview">Overview</a></h3>
 | |
|                 <ul class="simple">
 | |
|                 <li><b>File Collection</b><div nevow:render="data" nevow:data="displayViewForm"/></li>
 | |
|                 </ul>
 | |
|                 <div align="center">
 | |
|                 <table border="0" cellpadding="10">
 | |
|                     <p nevow:render="displayFiles">
 | |
|                         <tr nevow:pattern="CollectedFiles" nevow:render="data"/>
 | |
|                     </p>
 | |
|                 </table>
 | |
|                 <form name="FileCrawlForm" action="submitFilesystemCrawlJob" method="POST">
 | |
|                     <fieldset>
 | |
|                         <legend>
 | |
|                             Filesystem Crawl Settings
 | |
|                         </legend>
 | |
|                         <fieldset>
 | |
|                             <legend>Directories to crawl</legend>
 | |
|                             <table align="center">
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblRecursiveDirs">Directories to crawl <b>recursively</b></label>
 | |
|                                         <p>
 | |
|                                             <i>please use ';' as delimiters</i>
 | |
|                                         </p>
 | |
|                                         <p>
 | |
|                                             <i>you can also use patterns like regular expressions </i>
 | |
|                                         </p>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <textarea name="rec_directories" id="lblRecursiveDirs" rows="10" cols="40"></textarea>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblDirs">Directories to crawl non-recursively</label>
 | |
|                                         <p>
 | |
|                                             <i>please use ';' as delimiters</i>
 | |
|                                         </p>
 | |
|                                         <p>
 | |
|                                             <i>you can also use patterns like regular expressions </i>
 | |
|                                         </p>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <textarea name="rec_directories" id="lblDirs" rows="10" cols="40"></textarea>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                             </table>
 | |
|                         </fieldset>
 | |
|                         <fieldset>
 | |
|                             <legend>
 | |
|                                 Filter criteria patterns
 | |
|                             </legend>
 | |
|                             <table align="center">
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblApplyFileSize">Apply size criteria : </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input id="lblApplyFileSize" name="applyFileSize" type="checkbox"/>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblFileSizeLimit">Collect files that are : </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <select id="lblFileSizeLimit" name="selectFileSizeLimit">
 | |
|                                             <option>greater</option>
 | |
|                                             <option>less</option>
 | |
|                                             <option>equal</option>
 | |
|                                         </select>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblFileSize">than (kByte): </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input id="lblFileSize" name="fileSize"
 | |
|                                          type="text" size="12" maxlength="20" />
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblMaximumSize">Maximum file size: </label>
 | |
|                                         <p>
 | |
|                                             <i>no size means that transferred files might be very large!</i>
 | |
|                                         </p>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input id="lblMaximumSize" name="maximumSize"
 | |
|                                          type="text" size="12" maxlength="20" />
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblApplyDateCriteria">Apply date criteria: </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input id="lblApplyDateCriteria" name="applyDateCriteria" type="checkbox"/>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblDateCriteria">Collect files that are: </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <select id="lblDateCriteria" name="selectDateCriteria">
 | |
|                                             <option>created</option>
 | |
|                                             <option>modified</option>
 | |
|                                             <option>accessed</option>
 | |
|                                         </select>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblTimestampCompare"></label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <select id="lblTimestampCompare" name="selectTimeStampCompare">
 | |
|                                             <option>before</option>
 | |
|                                             <option>after</option>
 | |
|                                             <option>exactly on</option>
 | |
|                                         </select>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblTimeStamp">Collect files that are : </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input id="lblTimeStamp" name="selectDateCriteria" type="text" size="20"/>
 | |
|                                     </td>
 | |
|                                </tr>
 | |
|                             </table>
 | |
|                         </fieldset>
 | |
|                         <fieldset>
 | |
|                             <legend>
 | |
|                                 Job Interval
 | |
|                             </legend>
 | |
|                             <table align="center">
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblmailCrawlIntervaloneTime">One Time: </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input type="radio" id="lblmailCrawlIntervaloneTime" name="mailCrawlInterval"
 | |
|                                          value="oneTime" checked="checked" />
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr>
 | |
|                                     <td>
 | |
|                                         <label for="lblmailCrawlIntervalScheduler">Use Scheduler: </label>
 | |
|                                     </td>
 | |
|                                     <td>
 | |
|                                         <input type="radio" id="lblmailCrawlIntervalScheduler" name="mailCrawlInterval"
 | |
|                                          value="Scheduler" />
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                             </table>
 | |
|                         </fieldset>
 | |
|                         <input type="submit" name="startCrawlJob" value="Save and Start" />
 | |
|                     </fieldset>
 | |
|                 </form>
 | |
|                 <div nevow:render="systemMessage"/>
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| 
 | |
|     <div id="sub-section" define-macro="sub-section">
 | |
|     </div>
 | |
| 
 | |
|     <div nevow:render="footer_fragment">
 | |
|     </div>
 | |
| 
 | |
|     </div>
 | |
| 
 | |
|     </body>
 | |
| 
 | |
| </html> |