root / pykoticon / trunk / README @ 150

Revision 150, 4.6 kB (checked in by jerome, 18 years ago)

Added some documentation about the available XML-RPC calls (not finished).

  • Property svn:keywords set to Id
Line 
1# $Id$
2
3PyKotIcon - Client side helper for PyKota and other applications
4
5(c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com>
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
19
20====================================================================
21
22PyKotIcon is a cross-platform client-side helper for PyKota.
23
24It is meant to be launched whenever the user logs in, and stay in
25the taskbar (depending on the client operating system) until the
26user closes his session.
27 
28Installation :
29
30  * GNU/Linux and similar :
31 
32    $ cd pykoticon
33    $ python setup.py install
34   
35    Then modify your .xsession file, or the appropriate file depending
36    on your desktop environment, to ensure that the pykoticon command
37    is launched in the background each time your X Window session
38    starts.
39   
40    You MUST pass the list of hostnames or IP addresses from which
41    PyKotIcon should accept incoming connexions on pykoticon's
42    command line. Connexions from localhost are always accepted.
43    If you use PyKotIcon with PyKota, you'll want to pass the
44    hostnames or IP addresses of ALL print servers on pykoticon's
45    command line.
46   
47    NB : `pykoticon --help` will give you hints about the expected
48    command line parameters.
49   
50  * MS Windows : 
51 
52    Download pykoticon-x.yy.zip from
53   
54        http://www.pykota.com/software/pykoticon/download/tarballs/
55       
56    Unzip it into a directory of its own. I usually unzip it into   
57    /var/lib/samba/netlogon/pykoticon/
58   
59    Modify the PYKOTICON.VBS file to include the list of authorized
60    print servers and change other parameters as needed, as explained
61    in the GNU/Linux section above.
62   
63    Ensure that PYKOTICON.VBS is executed each time an user logs
64    in. The easiest way to do this is in STARTUP.CMD :
65   
66      --- CUT ---
67      SET PATH=%PATH%;\\MYSERVER\NETLOGON\PYKOTICON\
68      \\MYSERVER\NETLOGON\PYKOTICON\PYKOTICON.VBS
69      --- CUT ---
70     
71    NB : if you launch PYKOTICON.EXE directly instead of from
72    PYKOTICON.VBS, a small but disturbing window may appear on
73    the screen.
74
75
76Usage :
77
78  PyKotIcon is often used as a client side companion for the PyKota
79  print accounting solution, but in reality PyKotIcon is completely
80  independant of PyKota, and can be used from any application
81  which can do remote procedure calls over XML-RPC.
82 
83  PyKotIcon exposes 4 of its methods over XML-RPC, here they are :
84 
85    - nop :
86   
87      This methods does exactly nothing :)
88     
89      - Input : No argument.
90     
91      - Output : returns the True boolean value.
92     
93    - quitApplication : 
94   
95      This method causes the PyKotIcon application to exit.
96     
97      - Input : No argument.
98     
99      - Output : returns the True boolean value.
100         
101    - showDialog : 
102   
103      This methods displays an informational message, and returns
104      the choice the user made, if any.
105       
106      - Input :
107       
108        - message : a Binary XML-RPC object representing an UTF-8 encoded
109          character string which will be displayed to the end user.
110          This string can contain literal "\n" sequences which will
111          be automatically expanded into a line break by PyKotIcon.
112         
113        - confirmation : a boolean value indicating if the user will 
114          be given the choice to valid or cancel (True), or only
115          to valid (False) the dialog box.
116           
117      - Output :     
118     
119        - the literal string "OK" if the user clicked on the OK button,
120          else the literal string "CANCEL". The latter is only possible
121          if the method was called with its second parameter set to
122          True.
123       
124    - askDatas :     
125   
126      This method can generate an input form and return what the user
127      entered in the different fields.
128     
129      - Input :
130     
131       
132     
133      - Output :
134
135====================================================================
136   
137Please e-mail bugs to the PyKota mailing list at : pykota@librelogiciel.com
138or to the main author at : alet@librelogiciel.com (Jerome Alet)
Note: See TracBrowser for help on using the browser.