[Checkins] SVN: grok/trunk/doc/ Updated grok2html with xmlrpc
tutorial, added new link in index
Darryl Cousins
darryl at darrylcousins.net.nz
Wed Aug 8 22:19:43 EDT 2007
Log message for revision 78717:
Updated grok2html with xmlrpc tutorial, added new link in index
Changed:
U grok/trunk/doc/grok2html.py
U grok/trunk/doc/minitutorials/index.txt
U grok/trunk/doc/minitutorials/xmlrpc.txt
-=-
Modified: grok/trunk/doc/grok2html.py
===================================================================
--- grok/trunk/doc/grok2html.py 2007-08-08 22:20:49 UTC (rev 78716)
+++ grok/trunk/doc/grok2html.py 2007-08-09 02:19:41 UTC (rev 78717)
@@ -175,6 +175,9 @@
rest_files.append(RestFile('macros',
os.path.join(source_dir, 'minitutorials', 'macros.txt'),
os.path.join(www_dir, 'minitutorials', 'macros.html')))
+ rest_files.append(RestFile('xmlrpc',
+ os.path.join(source_dir, 'minitutorials', 'xmlrpc.txt'),
+ os.path.join(www_dir, 'minitutorials', 'xmlrpc.html')))
rest_files.append(RestFile('zc.buildout',
'http://svn.zope.org/*checkout*/zc.buildout/trunk/doc/tutorial.txt',
os.path.join(www_dir, 'minitutorials', 'buildout.html')))
Modified: grok/trunk/doc/minitutorials/index.txt
===================================================================
--- grok/trunk/doc/minitutorials/index.txt 2007-08-08 22:20:49 UTC (rev 78716)
+++ grok/trunk/doc/minitutorials/index.txt 2007-08-09 02:19:41 UTC (rev 78717)
@@ -26,6 +26,14 @@
Author: Uli Fouquet
+* `XMLRPC With Grok </minitutorials/xmlrpc.html>`_:
+
+ XMLRPC (http://xmlrpc.com) is a spec and a set of implementations
+ that allow software running on disparate operating systems, running in
+ different environments to make procedure calls over the Internet.
+
+ Author: Kushal Das
+
Buildout
========
Modified: grok/trunk/doc/minitutorials/xmlrpc.txt
===================================================================
--- grok/trunk/doc/minitutorials/xmlrpc.txt 2007-08-08 22:20:49 UTC (rev 78716)
+++ grok/trunk/doc/minitutorials/xmlrpc.txt 2007-08-09 02:19:41 UTC (rev 78717)
@@ -2,12 +2,12 @@
XML-RPC using Grok
====================
-by Kushal Das
+:Author: Kushal Das
What is XML-RPC ?
------------------
-From the site (http://xmlrpc.com): itâs a spec and a set of implementations
+From the site (http://xmlrpc.com): it's a spec and a set of implementations
that allow software running on disparate operating systems, running in
different environments to make procedure calls over the Internet.
@@ -22,7 +22,7 @@
web framework. While Grok is based on Zope 3, and benefits a lot from it, you
do not need to know Zope at all in order to get productive with Grok.
-So, it is cool, isnât it? :)
+So, it is cool, isn't it? :)
Installation
--------------
@@ -36,22 +36,22 @@
Creating our first project
-----------------------------
-Letâs create the project named âFooâ. For that give the command::
+Let's create the project named "Foo". For that give the command::
$ grokproject Foo
-This will create a subdirectory in the current directory named âFooâ, then it
+This will create a subdirectory in the current directory named "Foo", then it
will download Zope3 and install Grok with that which you can start working
with. It will ask you a few questions like::
- Enter module (Name of a demo Python module placed into the package) [âapp.pyâ]:
+ Enter module (Name of a demo Python module placed into the package) ['app.py']:
Press Enter for the default value. Then::
Enter user (Name of an initial administrator user): grok
Enter passwd (Password for the initial administrator user): grok
-We typed âgrokâ for both the user and password.
+We typed "grok" for both the user and password.
Starting up Zope
--------------------
@@ -88,7 +88,7 @@
We will another class which will be available through this application class,
the new class should inherit ``grok.XMLRPC for this``, and we will write a
-``say()`` method. It will return âHello World!â. So, the changed file::
+``say()`` method. It will return "Hello World!". So, the changed file::
import grok
@@ -105,7 +105,7 @@
def say(self):
return 'Hello world!'
-The name of the class doesnât matter, so you can give it any name.
+The name of the class doesn't matter, so you can give it any name.
Restart the Zope in the console, and you can connect to it through any xmlrpc
client. Below is an example (fooclient.py)::
@@ -129,7 +129,7 @@
-----------------------------
A class annotation is a declarative way to tell grok something about a Python
-class. Letâs see the example, we write a Boom.py with a Boom class::
+class. Let's see the example, we write a Boom.py with a Boom class::
import grok
from app import Foo
More information about the Checkins
mailing list