Thread: SF.net SVN: fclient: [220] trunk/web
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-02-16 11:03:00
|
Revision: 220
http://fclient.svn.sourceforge.net/fclient/?rev=220&view=rev
Author: jurner
Date: 2008-02-16 03:02:46 -0800 (Sat, 16 Feb 2008)
Log Message:
-----------
ups, missing pages
Added Paths:
-----------
trunk/web/more-fcp.html
trunk/web/screenshots-fclient.html
trunk/web/screenshots-fcp.html
Added: trunk/web/more-fcp.html
===================================================================
--- trunk/web/more-fcp.html (rev 0)
+++ trunk/web/more-fcp.html 2008-02-16 11:02:46 UTC (rev 220)
@@ -0,0 +1,84 @@
+<html>
+ <head>
+ <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
+ </head>
+ <body>
+
+ <div class="navHeader">
+ <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::more-fcp</span>
+ </div>
+
+
+ <div class="topic">
+ <b>fcp:</b> high level wrapper for the freenet client protocol written in python. Automatic
+ conversions from Fcp to python types, access to node and peer configurations.
+
+ <br>
+ Blah more here
+ </div>
+
+ <h5>Sample code:</h5>
+
+
+Connect to the freenet node
+<pre class="py_code">client <span class="py_operator">=</span> FcpClient()
+nodeHello <span class="py_operator">=</span> client.connect()
+<span class="py_keyword">if</span> nodeHello <span class="py_keyword">is</span> <span class="py_bool">None</span>:
+ <span class="py_keyword">pass</span>
+ <span class="py_comment"># something went wrong ..could not connect to the freenet node</span>
+<span class="py_keyword">else</span>:
+ <span class="py_keyword">pass</span>
+ <span class="py_comment"># everything went well ..we are connected now</span>
+</pre>
+
+Request data associated to a freenet key
+<pre class="py_code">myRequestIdentifier <span class="py_operator">=</span> client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+myRequest <span class="py_operator">=</span> client.getRequest(myIdentifier)
+client.run()
+<span class="py_keyword">print</span> myRequest.data
+</pre>
+
+
+Usually you would connect handlers to client events to do processing or handle errors
+<pre class="py_code"><span class="py_keyword">def</span> handleSuccess(event, request):
+ <span class="py_keyword">print</span> <span class="py_string2">'Here is the data:'</span>, request.data
+
+<span class="py_keyword">def</span> handleFailure(event, request):
+ <span class="py_keyword">print</span> <span class="py_string2">'Too bad, something went wrong'</span>
+
+client.events.RequestCompleted <span class="py_operator">+</span><span class="py_operator">=</span> handleSuccess
+client.events.RequestFailed <span class="py_operator">+</span><span class="py_operator">=</span> handleFailure
+
+client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+client.run()
+</pre>
+
+Instead of calling run() you may run the client step by step
+<pre class="py_code">client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+<span class="py_keyword">for</span> i <span class="py_keyword">in</span> xrange(50):
+ client.next()
+</pre>
+
+You may disconnect event handlers aswel
+<pre class="py_code">client.events.RequestCompleted <span class="py_operator">-</span><span class="py_operator">=</span> handleSuccess
+client.events.RequestFailed <span class="py_operator">-</span><span class="py_operator">=</span> handleFailure
+</pre>
+
+Multiple event handlers may be connected / disconnected at once
+<pre class="py_code">client.events <span class="py_operator">+</span><span class="py_operator">=</span> (
+ (client.events.RequestCompleted, handleSuccess),
+ (client.events.RequestFailed, handleFailure)
+ )
+</pre>
+
+
+
+To generate extensive documentation run the package through [<a href="http://epydoc.sourceforge.net/">epydoc</a>].
+To make things a bit simpler script <span class="hilight">gen_docs.py</span> located in the
+<span class="hilight">scripts</span> subdirectory of the package wich will dump docs automatically to the
+packages <span class="hilight">doc</span> folder.
+
+
+ <div class="bottom_padding"></div>
+ </body>
+</html>
\ No newline at end of file
Added: trunk/web/screenshots-fclient.html
===================================================================
--- trunk/web/screenshots-fclient.html (rev 0)
+++ trunk/web/screenshots-fclient.html 2008-02-16 11:02:46 UTC (rev 220)
@@ -0,0 +1,19 @@
+<html>
+ <head>
+ <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
+ </head>
+ <body>
+
+ <div class="navHeader">
+ <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::screenshots-fclient</span>
+ </div>
+
+
+ <br>
+ <br>
+ Nothing to see here, move along
+
+
+ <div class="bottom_padding"></div>
+ </body>
+</html>
Added: trunk/web/screenshots-fcp.html
===================================================================
--- trunk/web/screenshots-fcp.html (rev 0)
+++ trunk/web/screenshots-fcp.html 2008-02-16 11:02:46 UTC (rev 220)
@@ -0,0 +1,21 @@
+<html>
+ <head>
+ <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
+ </head>
+ <body>
+
+ <div class="navHeader">
+ <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::screenshots-fcp</span>
+ </div>
+
+
+ <div class="topic">
+ <br>
+ <br>
+ Nothing to see here, move along
+ </div>
+
+
+ <div class="bottom_padding"></div>
+ </body>
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-26 10:17:20
|
Revision: 261
http://fclient.svn.sourceforge.net/fclient/?rev=261&view=rev
Author: jurner
Date: 2008-02-26 02:17:25 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
...
Modified Paths:
--------------
trunk/web/default.css
trunk/web/index.html
trunk/web/intro.html
Modified: trunk/web/default.css
===================================================================
--- trunk/web/default.css 2008-02-26 10:08:38 UTC (rev 260)
+++ trunk/web/default.css 2008-02-26 10:17:25 UTC (rev 261)
@@ -11,10 +11,9 @@
div.body{
border: solid;
border-width: 0.1em;
- border-color: #C7E9D3;
+ border-color: black;
height: auto;
}
-
td.frame{
border: solid;
border-width: 0.1em;
Modified: trunk/web/index.html
===================================================================
--- trunk/web/index.html 2008-02-26 10:08:38 UTC (rev 260)
+++ trunk/web/index.html 2008-02-26 10:17:25 UTC (rev 261)
@@ -24,9 +24,12 @@
Your browser does not seem to support iframes. Some links for quick navigation
<br>
<a href="intro.html">Intro</a><br>
- <a href="fclient-more.html">fclient</a><br>
- <a href="fcp-more.html">fcp</a><br>
-
+ <a href="download-fclient.html">fclient</a><br>
+ <a href="download-fcp2.html">fcp</a><br>
+ <a href="more-fclient.html">fclient</a><br>
+ <a href="more-fcp2.html">fcp</a><br>
+ <a href="screenshots-fclient.html">fclient</a><br>
+ <a href="screenshots-fcp2.html">fcp</a><br>
</iframe>
</td>
</tr>
Modified: trunk/web/intro.html
===================================================================
--- trunk/web/intro.html 2008-02-26 10:08:38 UTC (rev 260)
+++ trunk/web/intro.html 2008-02-26 10:17:25 UTC (rev 261)
@@ -18,10 +18,10 @@
<div class="topic">
- <b>fcp:</b> high level wrapper for the freenet client protocol written in python. Automatic
+ <b>fcp2:</b> high level wrapper for the freenet client protocol version-2 written in python. Automatic
conversions from Fcp to python types, access to node and peer configurations and more
<br>
- [<a href="more-fcp.html" target="mainFrame">..More</a>] [<a href="download-fcp.html" target="mainFrame">Download</a>] [<a href="screenshots-fcp.html" target="mainFrame">Screenshots</a>]
+ [<a href="more-fcp2.html" target="mainFrame">..More</a>] [<a href="download-fcp2.html" target="mainFrame">Download</a>] [<a href="screenshots-fcp2.html" target="mainFrame">Screenshots</a>]
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-26 10:17:57
|
Revision: 262
http://fclient.svn.sourceforge.net/fclient/?rev=262&view=rev
Author: jurner
Date: 2008-02-26 02:18:02 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
...
Removed Paths:
-------------
trunk/web/download-fcp.html
trunk/web/more-fcp.html
trunk/web/screenshots-fcp.html
Deleted: trunk/web/download-fcp.html
===================================================================
--- trunk/web/download-fcp.html 2008-02-26 10:17:25 UTC (rev 261)
+++ trunk/web/download-fcp.html 2008-02-26 10:18:02 UTC (rev 262)
@@ -1,21 +0,0 @@
-<html>
- <head>
- <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
- </head>
- <body>
-
- <div class="navHeader">
- <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::download-fcp</span>
- </div>
-
-
- <div class="topic">
- <br>
- <br>
- Nothing to see here, move along
- </div>
-
- <div class="bottom_padding"></div>
- </body>
-</html>
-
Deleted: trunk/web/more-fcp.html
===================================================================
--- trunk/web/more-fcp.html 2008-02-26 10:17:25 UTC (rev 261)
+++ trunk/web/more-fcp.html 2008-02-26 10:18:02 UTC (rev 262)
@@ -1,84 +0,0 @@
-<html>
- <head>
- <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
- </head>
- <body>
-
- <div class="navHeader">
- <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::more-fcp</span>
- </div>
-
-
- <div class="topic">
- <b>fcp:</b> high level wrapper for the freenet client protocol written in python. Automatic
- conversions from Fcp to python types, access to node and peer configurations.
-
- <br>
- Blah more here
- </div>
-
- <h5>Sample code:</h5>
-
-
-Connect to the freenet node
-<pre class="py_code">client <span class="py_operator">=</span> FcpClient()
-nodeHello <span class="py_operator">=</span> client.connect()
-<span class="py_keyword">if</span> nodeHello <span class="py_keyword">is</span> <span class="py_bool">None</span>:
- <span class="py_keyword">pass</span>
- <span class="py_comment"># something went wrong ..could not connect to the freenet node</span>
-<span class="py_keyword">else</span>:
- <span class="py_keyword">pass</span>
- <span class="py_comment"># everything went well ..we are connected now</span>
-</pre>
-
-Request data associated to a freenet key
-<pre class="py_code">myRequestIdentifier <span class="py_operator">=</span> client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
-myRequest <span class="py_operator">=</span> client.getRequest(myIdentifier)
-client.run()
-<span class="py_keyword">print</span> myRequest.data
-</pre>
-
-
-Usually you would connect handlers to client events to do processing or handle errors
-<pre class="py_code"><span class="py_keyword">def</span> handleSuccess(event, request):
- <span class="py_keyword">print</span> <span class="py_string2">'Here is the data:'</span>, request.data
-
-<span class="py_keyword">def</span> handleFailure(event, request):
- <span class="py_keyword">print</span> <span class="py_string2">'Too bad, something went wrong'</span>
-
-client.events.RequestCompleted <span class="py_operator">+</span><span class="py_operator">=</span> handleSuccess
-client.events.RequestFailed <span class="py_operator">+</span><span class="py_operator">=</span> handleFailure
-
-client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
-client.run()
-</pre>
-
-Instead of calling run() you may run the client step by step
-<pre class="py_code">client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
-<span class="py_keyword">for</span> i <span class="py_keyword">in</span> xrange(50):
- client.next()
-</pre>
-
-You may disconnect event handlers aswel
-<pre class="py_code">client.events.RequestCompleted <span class="py_operator">-</span><span class="py_operator">=</span> handleSuccess
-client.events.RequestFailed <span class="py_operator">-</span><span class="py_operator">=</span> handleFailure
-</pre>
-
-Multiple event handlers may be connected / disconnected at once
-<pre class="py_code">client.events <span class="py_operator">+</span><span class="py_operator">=</span> (
- (client.events.RequestCompleted, handleSuccess),
- (client.events.RequestFailed, handleFailure)
- )
-</pre>
-
-
-
-To generate extensive documentation run the package through [<a href="http://epydoc.sourceforge.net/">epydoc</a>].
-To make things a bit simpler script <span class="hilight">gen_docs.py</span> located in the
-<span class="hilight">scripts</span> subdirectory of the package wich will dump docs automatically to the
-packages <span class="hilight">doc</span> folder.
-
-
- <div class="bottom_padding"></div>
- </body>
-</html>
\ No newline at end of file
Deleted: trunk/web/screenshots-fcp.html
===================================================================
--- trunk/web/screenshots-fcp.html 2008-02-26 10:17:25 UTC (rev 261)
+++ trunk/web/screenshots-fcp.html 2008-02-26 10:18:02 UTC (rev 262)
@@ -1,21 +0,0 @@
-<html>
- <head>
- <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
- </head>
- <body>
-
- <div class="navHeader">
- <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::screenshots-fcp</span>
- </div>
-
-
- <div class="topic">
- <br>
- <br>
- Nothing to see here, move along
- </div>
-
-
- <div class="bottom_padding"></div>
- </body>
-</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-26 10:21:05
|
Revision: 263
http://fclient.svn.sourceforge.net/fclient/?rev=263&view=rev
Author: jurner
Date: 2008-02-26 02:21:07 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
...
Added Paths:
-----------
trunk/web/download-fcp2.html
trunk/web/more-fcp2.html
trunk/web/screenshots-fcp2.html
Added: trunk/web/download-fcp2.html
===================================================================
--- trunk/web/download-fcp2.html (rev 0)
+++ trunk/web/download-fcp2.html 2008-02-26 10:21:07 UTC (rev 263)
@@ -0,0 +1,21 @@
+<html>
+ <head>
+ <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
+ </head>
+ <body>
+
+ <div class="navHeader">
+ <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::download-fcp2</span>
+ </div>
+
+
+ <div class="topic">
+ <br>
+ <br>
+ Nothing to see here, move along
+ </div>
+
+ <div class="bottom_padding"></div>
+ </body>
+</html>
+
Added: trunk/web/more-fcp2.html
===================================================================
--- trunk/web/more-fcp2.html (rev 0)
+++ trunk/web/more-fcp2.html 2008-02-26 10:21:07 UTC (rev 263)
@@ -0,0 +1,86 @@
+<html>
+ <head>
+ <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
+ </head>
+ <body>
+
+ <div class="navHeader">
+ <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::more-fcp2</span>
+ </div>
+
+
+ <div class="topic">
+ <b>fcp2:</b> high level wrapper for the freenet client protocol written in python. Automatic
+ conversions from Fcp to python types, access to node and peer configurations.
+
+ <br>
+ Blah more here
+ </div>
+
+ <h5>Sample code:</h5>
+
+
+Connect to the freenet node
+<pre class="py_code"><span class="py_keyword">from</span> fcp2 <span class="py_keyword">import</span> Client
+
+client <span class="py_operator">=</span> Client()
+nodeHello <span class="py_operator">=</span> client.connect()
+<span class="py_keyword">if</span> nodeHello <span class="py_keyword">is</span> <span class="py_bool">None</span>:
+ <span class="py_keyword">pass</span>
+ <span class="py_comment"># something went wrong ..could not connect to the freenet node</span>
+<span class="py_keyword">else</span>:
+ <span class="py_keyword">pass</span>
+ <span class="py_comment"># everything went well ..we are connected now</span>
+</pre>
+
+Request data associated to a freenet key
+<pre class="py_code">myRequestIdentifier <span class="py_operator">=</span> client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+myRequest <span class="py_operator">=</span> client.getRequest(myIdentifier)
+client.run()
+<span class="py_keyword">print</span> myRequest.data
+</pre>
+
+
+Usually you would connect handlers to client events to do processing or handle errors
+<pre class="py_code"><span class="py_keyword">def</span> handleSuccess(event, request):
+ <span class="py_keyword">print</span> <span class="py_string2">'Here is the data:'</span>, request.data
+
+<span class="py_keyword">def</span> handleFailure(event, request):
+ <span class="py_keyword">print</span> <span class="py_string2">'Too bad, something went wrong'</span>
+
+client.events.RequestCompleted <span class="py_operator">+</span><span class="py_operator">=</span> handleSuccess
+client.events.RequestFailed <span class="py_operator">+</span><span class="py_operator">=</span> handleFailure
+
+client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+client.run()
+</pre>
+
+Instead of calling run() you may run the client step by step
+<pre class="py_code">client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+<span class="py_keyword">for</span> i <span class="py_keyword">in</span> xrange(50):
+ client.next()
+</pre>
+
+You may disconnect event handlers aswel
+<pre class="py_code">client.events.RequestCompleted <span class="py_operator">-</span><span class="py_operator">=</span> handleSuccess
+client.events.RequestFailed <span class="py_operator">-</span><span class="py_operator">=</span> handleFailure
+</pre>
+
+Multiple event handlers may be connected / disconnected at once
+<pre class="py_code">client.events <span class="py_operator">+</span><span class="py_operator">=</span> (
+ (client.events.RequestCompleted, handleSuccess),
+ (client.events.RequestFailed, handleFailure)
+ )
+</pre>
+
+
+
+To generate extensive documentation run the package through [<a href="http://epydoc.sourceforge.net/">epydoc</a>].
+To make things a bit simpler script <span class="hilight">gen_docs.py</span> located in the
+<span class="hilight">scripts</span> subdirectory of the package wich will dump docs automatically to the
+packages <span class="hilight">doc</span> folder.
+
+
+ <div class="bottom_padding"></div>
+ </body>
+</html>
\ No newline at end of file
Added: trunk/web/screenshots-fcp2.html
===================================================================
--- trunk/web/screenshots-fcp2.html (rev 0)
+++ trunk/web/screenshots-fcp2.html 2008-02-26 10:21:07 UTC (rev 263)
@@ -0,0 +1,21 @@
+<html>
+ <head>
+ <link rel="StyleSheet" href="default.css" type="text/css" media="screen">
+ </head>
+ <body>
+
+ <div class="navHeader">
+ <a class="navRef" href="intro.html" target="mainFrame">fclient</a><span class="navRef">::screenshots-fcp2</span>
+ </div>
+
+
+ <div class="topic">
+ <br>
+ <br>
+ Nothing to see here, move along
+ </div>
+
+
+ <div class="bottom_padding"></div>
+ </body>
+</html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-26 10:42:34
|
Revision: 264
http://fclient.svn.sourceforge.net/fclient/?rev=264&view=rev
Author: jurner
Date: 2008-02-26 02:42:37 -0800 (Tue, 26 Feb 2008)
Log Message:
-----------
some more words
Modified Paths:
--------------
trunk/web/intro.html
trunk/web/more-fcp2.html
Modified: trunk/web/intro.html
===================================================================
--- trunk/web/intro.html 2008-02-26 10:21:07 UTC (rev 263)
+++ trunk/web/intro.html 2008-02-26 10:42:37 UTC (rev 264)
@@ -9,7 +9,7 @@
<div class="topic">
- <b>fclient:</b> Gui frontend for freenet written in Qt and python. Yet to come
+ <b>fclient:</b> Gui frontend for freenet written in Qt and python. The Gui is yet to come.
<br>
[<a href="more-fclient.html" target="mainFrame">..More</a>] [<a href="download-fclient.html" target="mainFrame">Download</a>] [<a href="screenshots-fclient.html" target="mainFrame">Screenshots</a>]
@@ -19,7 +19,7 @@
<div class="topic">
<b>fcp2:</b> high level wrapper for the freenet client protocol version-2 written in python. Automatic
- conversions from Fcp to python types, access to node and peer configurations and more
+ conversions from Fcp to python types, access to node and peer configurations and much more.
<br>
[<a href="more-fcp2.html" target="mainFrame">..More</a>] [<a href="download-fcp2.html" target="mainFrame">Download</a>] [<a href="screenshots-fcp2.html" target="mainFrame">Screenshots</a>]
</div>
Modified: trunk/web/more-fcp2.html
===================================================================
--- trunk/web/more-fcp2.html 2008-02-26 10:21:07 UTC (rev 263)
+++ trunk/web/more-fcp2.html 2008-02-26 10:42:37 UTC (rev 264)
@@ -11,10 +11,10 @@
<div class="topic">
<b>fcp2:</b> high level wrapper for the freenet client protocol written in python. Automatic
- conversions from Fcp to python types, access to node and peer configurations.
-
- <br>
- Blah more here
+ conversions from Fcp to python types, access to node and peer configurations and much more.
+ The package is designed as drop anywhere package so you can include it into any project as
+ library. No need to install it to the sites directory.
+
</div>
<h5>Sample code:</h5>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <jU...@us...> - 2008-07-06 05:18:15
|
Revision: 509
http://fclient.svn.sourceforge.net/fclient/?rev=509&view=rev
Author: jUrner
Date: 2008-07-05 22:18:23 -0700 (Sat, 05 Jul 2008)
Log Message:
-----------
this and that
Modified Paths:
--------------
trunk/web/download-fclient.html
trunk/web/download-fcp2.html
trunk/web/index.html
trunk/web/intro.html
trunk/web/more-fclient.html
trunk/web/more-fcp2.html
trunk/web/screenshots-fclient.html
trunk/web/screenshots-fcp2.html
Modified: trunk/web/download-fclient.html
===================================================================
--- trunk/web/download-fclient.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/download-fclient.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -13,7 +13,7 @@
<div class="topic">
<br>
<br>
- Nothing to see here, move along
+ Not Yet
</div>
Modified: trunk/web/download-fcp2.html
===================================================================
--- trunk/web/download-fcp2.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/download-fcp2.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -12,7 +12,7 @@
<div class="topic">
<br>
<br>
- Nothing to see here, move along
+ Not yet
</div>
<div class="bottom_padding"></div>
Modified: trunk/web/index.html
===================================================================
--- trunk/web/index.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/index.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -39,14 +39,17 @@
<tr>
<td class="frame" width="100%" valign="bottom">
- [<a href="http://www.freenetproject.org">Freenet</a>]
- <!-- [<a href="http://epydoc.sourceforge.net/">Epydoc</a>] -->
+ Links:
+ [<a href="http://sourceforge.net/projects/fclient">fclient sourceforge</a>]
+ [<a href="http://www.freenetproject.org">freenet</a>]
+
+
</td>
<td class="frame" valign="bottom">
- <a href="http://sourceforge.net/donate/index.php?group_id=206970"><img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" border="0" alt="Support This Project" /> </a>
+ <a href="http://sourceforge.net/donate/index.php?group_id=206970"><img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" border="0" alt="Support This Project"> </a>
</td>
<td class="frame" valign="bottom">
- <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=206970&type=4" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a>
+ <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=206970&type=4" width="125" height="37" border="0" alt="SourceForge.net Logo"></a>
</td>
</tr>
Modified: trunk/web/intro.html
===================================================================
--- trunk/web/intro.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/intro.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -9,19 +9,19 @@
<div class="topic">
- <b>fclient:</b> Gui frontend for freenet written in Qt and python. The Gui is yet to come.
+ <b>fclient:</b> Gui frontend for freenet written in python and Qt. Not yet
<br>
- [<a href="more-fclient.html" target="mainFrame">..More</a>] [<a href="download-fclient.html" target="mainFrame">Download</a>] [<a href="screenshots-fclient.html" target="mainFrame">Screenshots</a>]
+ [<a href="more-fclient.html" target="mainFrame">..more</a>] [<a href="download-fclient.html" target="mainFrame">download</a>] [<a href="screenshots-fclient.html" target="mainFrame">screenshots</a>]
<hr>
</div>
<div class="topic">
- <b>fcp2:</b> high level wrapper for the freenet client protocol version-2 written in python. Automatic
+ <b>fcp2:</b> high level wrapper for the freenet client protocol version 2 written in python. Automatic
conversions from Fcp to python types, access to node and peer configurations and much more.
<br>
- [<a href="more-fcp2.html" target="mainFrame">..More</a>] [<a href="download-fcp2.html" target="mainFrame">Download</a>] [<a href="screenshots-fcp2.html" target="mainFrame">Screenshots</a>]
+ [<a href="more-fcp2.html" target="mainFrame">..more</a>] [<a href="download-fcp2.html" target="mainFrame">download</a>] [<a href="screenshots-fcp2.html" target="mainFrame">screenshots</a>]
</div>
Modified: trunk/web/more-fclient.html
===================================================================
--- trunk/web/more-fclient.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/more-fclient.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -12,7 +12,7 @@
<div class="topic">
<br>
<br>
- Nothing to see here, move along
+ Not yet
</div>
Modified: trunk/web/more-fcp2.html
===================================================================
--- trunk/web/more-fcp2.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/more-fcp2.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -21,9 +21,9 @@
Connect to the freenet node
-<pre class="py_code"><span class="py_keyword">from</span> fcp2 <span class="py_keyword">import</span> Client
+<pre class="py_code"><span class="py_keyword">import</span> fcp2
-client <span class="py_operator">=</span> Client()
+client <span class="py_operator">=</span> fcp2.Client()
nodeHello <span class="py_operator">=</span> client.connect()
<span class="py_keyword">if</span> nodeHello <span class="py_keyword">is</span> <span class="py_bool">None</span>:
<span class="py_keyword">pass</span>
@@ -34,7 +34,8 @@
</pre>
Request data associated to a freenet key
-<pre class="py_code">myRequestIdentifier <span class="py_operator">=</span> client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+<pre class="py_code">myKey <span class="py_operator">=</span> fcp2.Key(<span class="py_string2">'CHK@ABCDE.......'</span>)
+myRequestIdentifier <span class="py_operator">=</span> client.getData(key)
myRequest <span class="py_operator">=</span> client.getRequest(myIdentifier)
client.run()
<span class="py_keyword">print</span> myRequest.data
@@ -51,17 +52,19 @@
client.events.RequestCompleted <span class="py_operator">+</span><span class="py_operator">=</span> handleSuccess
client.events.RequestFailed <span class="py_operator">+</span><span class="py_operator">=</span> handleFailure
-client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+myKey <span class="py_operator">=</span> fcp2.Key(<span class="py_string2">'CHK@ABCDE.......'</span>)
+client.getData(myKey)
client.run()
</pre>
Instead of calling run() you may run the client step by step
-<pre class="py_code">client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
+<pre class="py_code">myKey <span class="py_operator">=</span> fcp2.Key(<span class="py_string2">'CHK@ABCDE.......'</span>)
+client.getData(<span class="py_string2">'CHK@ABCDE.......'</span>)
<span class="py_keyword">for</span> i <span class="py_keyword">in</span> xrange(50):
client.next()
</pre>
-You may disconnect event handlers aswel
+You may disconnect event handlers as well
<pre class="py_code">client.events.RequestCompleted <span class="py_operator">-</span><span class="py_operator">=</span> handleSuccess
client.events.RequestFailed <span class="py_operator">-</span><span class="py_operator">=</span> handleFailure
</pre>
Modified: trunk/web/screenshots-fclient.html
===================================================================
--- trunk/web/screenshots-fclient.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/screenshots-fclient.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -11,7 +11,7 @@
<br>
<br>
- Nothing to see here, move along
+ Not yet
<div class="bottom_padding"></div>
Modified: trunk/web/screenshots-fcp2.html
===================================================================
--- trunk/web/screenshots-fcp2.html 2008-07-05 21:29:41 UTC (rev 508)
+++ trunk/web/screenshots-fcp2.html 2008-07-06 05:18:23 UTC (rev 509)
@@ -12,7 +12,7 @@
<div class="topic">
<br>
<br>
- Nothing to see here, move along
+ Not yet
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|