You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2012/02/26 20:20:40 UTC
svn commit: r1293918 - in /incubator/lcf/trunk: CHANGES.txt
site/src/documentation/content/xdocs/en_US/script.xml
Author: kwright
Date: Sun Feb 26 19:20:40 2012
New Revision: 1293918
URL: http://svn.apache.org/viewvc?rev=1293918&view=rev
Log:
Fix for CONNECTORS-415.
Modified:
incubator/lcf/trunk/CHANGES.txt
incubator/lcf/trunk/site/src/documentation/content/xdocs/en_US/script.xml
Modified: incubator/lcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/CHANGES.txt?rev=1293918&r1=1293917&r2=1293918&view=diff
==============================================================================
--- incubator/lcf/trunk/CHANGES.txt (original)
+++ incubator/lcf/trunk/CHANGES.txt Sun Feb 26 19:20:40 2012
@@ -3,6 +3,9 @@ $Id$
======================= 0.5-dev =====================
+CONNECTORS-415: Fix script language documentation.
+(Karl Wright)
+
CONNECTORS-414: Fix incorrect path in executecommand.sh, start-webapps.sh
and start-database.sh
(Shinichiro Abe)
Modified: incubator/lcf/trunk/site/src/documentation/content/xdocs/en_US/script.xml
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/site/src/documentation/content/xdocs/en_US/script.xml?rev=1293918&r1=1293917&r2=1293918&view=diff
==============================================================================
--- incubator/lcf/trunk/site/src/documentation/content/xdocs/en_US/script.xml (original)
+++ incubator/lcf/trunk/site/src/documentation/content/xdocs/en_US/script.xml Sun Feb 26 19:20:40 2012
@@ -297,7 +297,7 @@ print "3".__int__+7;
</section>
<section>
<title>Dictionaries</title>
- <p>Array variable types are created using the "new" operator, e.g. <strong>new</strong> <strong>dictionary</strong>.</p>
+ <p>Dictionary variable types are created using the "new" operator, e.g. <strong>new</strong> <strong>dictionary</strong>.</p>
<p>The operations supported for this variable type, and their meanings, are listed in the table below:</p>
<table>
<caption>Array operations</caption>
@@ -310,14 +310,14 @@ print "3".__int__+7;
<section>
<title>Configurations</title>
<p>Configuration variables contain the equivalent of the JSON used to communicate with the ManifoldCF API. They can be created using an initializer
- of the form <strong>{</strong> [<em>expression</em> [<strong>,</strong> <em>expression</em> ...]] <strong>}</strong>. For example, the script code '{ < "outputconnector" : "" : : , < "description" : "Solr" : : >, < "class_name" : "org.apache.manifoldcf.agents.output.solr.SolrConnector" : : > > }'
+ of the form <strong>{</strong> [<em>expression</em> [<strong>,</strong> <em>expression</em> ...]] <strong>}</strong>. For example, the script code '{ << "outputconnector" : "" : : , << "description" : "Solr" : : >>, << "class_name" : "org.apache.manifoldcf.agents.output.solr.SolrConnector" : : >> >> }'
would create a configuration variable equivalent to one that might be returned from the ManifoldCF API if it was queried for the output connectors registered by the system.</p>
<p>The operations supported for this variable type, and their meanings are listed in the table below:</p>
<table>
<caption>Configuration operations</caption>
<tr><th>Operation</th><th>Meaning</th><th>Example</th></tr>
<tr><td>subscript []</td><td>Find the specified child configuration node variable, yielding the variable</td><td>myconfig [0]</td></tr>
- <tr><td>binary +</td><td>Append a configuration child node variable to the list</td><td>myconfig + < "something" : "somethingvalue" : : ></td></tr>
+ <tr><td>binary +</td><td>Append a configuration child node variable to the list</td><td>myconfig + << "something" : "somethingvalue" : : >></td></tr>
</table>
<p>In addition, the standard attributes <em>__script__</em>, <em>__dict__</em>, and <em>__size__</em> are supported
by configuration variable types, as well as the <em>insert</em> and <em>remove</em> statements.</p>
@@ -333,7 +333,7 @@ print "3".__int__+7;
</ul>
<p>Configuration node variable types can be created using an initializer of the form <strong><<</strong> <em>expression</em> <strong>:</strong> <em>expression</em> <strong>:</strong> [<em>expression</em> <strong>=</strong> <em>expression</em> [<strong>,</strong> <em>expression</em> <strong>=</strong> <em>expression</em> ...]] <strong>:</strong> [<em>expression</em> [<strong>,</strong> <em>expression</em> ... ]] '>>'.
The first expression represents the type of the node. The second is the node's value. The series of '=' expressions represents attribute names and values. The last series represents
- the children of the node. For example, the script code '< "description" : "Solr" : : >' represents a node of type 'description' with a value of 'Solr', with no attributes or children.</p>
+ the children of the node. For example, the script code '<< "description" : "Solr" : : >>' represents a node of type 'description' with a value of 'Solr', with no attributes or children.</p>
<p>The operations supported for this variable type, and their meanings are listed in the table below:</p>
<table>
<caption>Configuration node operations</caption>