root / pykoticon / trunk / README @ 3566

Revision 3566, 6.7 kB (checked in by jerome, 11 years ago)

Fixed some french...

  • Property svn:keywords set to Id
RevLine 
[70]1# $Id$
2
[142]3PyKotIcon - Client side helper for PyKota and other applications
[70]4
[3564]5(c) 2003-2013 Jerome Alet <alet@librelogiciel.com>
[70]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
[94]22PyKotIcon is a cross-platform client-side helper for PyKota.
[70]23
[3439]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
[137]28Installation :
[94]29
[137]30  * GNU/Linux and similar :
[3439]31
[137]32    $ cd pykoticon
33    $ python setup.py install
[3439]34
[137]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.
[3439]39
[145]40    You MUST pass the list of hostnames or IP addresses from which
[3566]41    PyKotIcon should accept incoming connections on pykoticon's
42    command line. Connections from localhost are always accepted.
[145]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.
[3439]46
[137]47    NB : `pykoticon --help` will give you hints about the expected
48    command line parameters.
[3439]49
50  * MS Windows :
51
52    Download pykoticon-x.yy.zip from
53
[137]54        http://www.pykota.com/software/pykoticon/download/tarballs/
[3439]55
56    Unzip it into a directory of its own. I usually unzip it into
[137]57    /var/lib/samba/netlogon/pykoticon/
[3439]58
[137]59    Modify the PYKOTICON.VBS file to include the list of authorized
[145]60    print servers and change other parameters as needed, as explained
61    in the GNU/Linux section above.
[3439]62
[137]63    Ensure that PYKOTICON.VBS is executed each time an user logs
64    in. The easiest way to do this is in STARTUP.CMD :
[3439]65
[137]66      --- CUT ---
67      SET PATH=%PATH%;\\MYSERVER\NETLOGON\PYKOTICON\
[3439]68      \\MYSERVER\NETLOGON\PYKOTICON\PYKOTICON.VBS
[137]69      --- CUT ---
[3439]70
[139]71    NB : if you launch PYKOTICON.EXE directly instead of from
[3439]72    PYKOTICON.VBS, a small but disturbing window may appear on
[139]73    the screen.
[137]74
[150]75
[153]76====================================================================
77
78
[150]79Usage :
80
[157]81  PyKotIcon is often used as a client side companion of the PyKota
82  print accounting solution, with PyKota's pknotify command line tool
83  acting as a PyKotIcon client. But in reality PyKotIcon is completely
[150]84  independant of PyKota, and can be used from any application
85  which can do remote procedure calls over XML-RPC.
[3439]86
[150]87  PyKotIcon exposes 4 of its methods over XML-RPC, here they are :
[3439]88
[150]89    - nop :
[3439]90
[150]91      This methods does exactly nothing :)
[3439]92
[150]93      - Input : No argument.
[3439]94
[150]95      - Output : returns the True boolean value.
[3439]96
97    - quitApplication :
98
[150]99      This method causes the PyKotIcon application to exit.
[3439]100
[150]101      - Input : No argument.
[3439]102
[150]103      - Output : returns the True boolean value.
[3439]104
105    - showDialog :
106
[150]107      This methods displays an informational message, and returns
108      the choice the user made, if any.
[3439]109
110      - Input :
111
112        - message : a Binary XML-RPC object representing an UTF-8 encoded
113          character string which will be displayed to the end user.
114          This string can contain literal "\n" sequences which will
[151]115          be automatically expanded into line breaks by PyKotIcon.
[3439]116
117        - confirmation : a boolean value indicating if the user will
[150]118          be given the choice to valid or cancel (True), or only
119          to valid (False) the dialog box.
[3439]120
121      - Output :
122
[150]123        - the literal string "OK" if the user clicked on the OK button,
124          else the literal string "CANCEL". The latter is only possible
125          if the method was called with its second parameter set to
126          True.
[3439]127
128    - askDatas :
129
[150]130      This method can generate an input form and return what the user
131      entered in the different fields.
[3439]132
[150]133      - Input :
[3439]134
135        - An array of labels, one label per input field in the
[153]136          form to be created. Each label in the list is passed as
137          a Binary XML-RPC object representing an UTF-8 encoded
138          character string.
[3439]139
[153]140        - An array of variables names, one name per input field in
141          the form to be created. Each name in the list is passed
[3439]142          as an ASCII encoded character string.
[166]143          IMPORTANT : if one of these names is 'password' then this
[3439]144          particular field's input box will be visually protected
[166]145          with * in place of the characters typed during input.
[3439]146
147        - An associative array (e.g. Python mapping) of initial values.
[169]148          Each key is a variable name which must be present in the list
149          above, and each value is a possibly empty initial content,
[3439]150          which will be passed as a Binary XML-RPC object representing
[153]151          an UTF-8 encoded character string.
[3439]152
[150]153      - Output :
[3439]154
[153]155        - An associative array (e.g. Python mapping) containing the
156          variables names as keys and the variables' contents as
157          values in the following format :
[3439]158
[153]159          - Each key is an ASCII encoded character string representing
[3439]160            the name of a variable to ask which was passed from the
[153]161            caller.
[3439]162
163          - Each value is a Binary XML-RPC object representing an UTF-8
[153]164            encoded character string, itself being the result of user
165            input in the form's field for this particular variable.
[150]166
[153]167          - A special key named 'isValid' gives access to a boolean
168            value in the associative array. If the value is True,
169            then the input fields' contents are valid. If the value
[165]170            is False, then what the user typed in the input fields
[153]171            has to be discarded because, for example, the user
[166]172            closed the form without validating his entries.
[153]173            In this case, all the other values are empty strings
174            anyway.
[3439]175
176
[3566]177IMPORTANT : PyKotIcon doesn't currently support encrypted connections,
[157]178so if you're afraid of sensitive information flying in the clear
[3439]179over the nework, you should probably install a transparent secure
[157]180tunneling software like stunnel on both sides of each connection.
181
[70]182====================================================================
[3439]183
[70]184Please e-mail bugs to the PyKota mailing list at : pykota@librelogiciel.com
185or to the main author at : alet@librelogiciel.com (Jerome Alet)
Note: See TracBrowser for help on using the browser.