source: client/README.rst @ 45a52c6

Last change on this file since 45a52c6 was 3b7f125, checked in by Alex Dehnert <adehnert@…>, 11 years ago

Expand and reformat the client docs

  • Property mode set to 100644
File size: 1.9 KB
Line 
1Clients
2=======
3
4Rather than doing all the work server-side of submitting requests to SAO, certain work is done using a client program. Remit has two such clients -- one handles paper vouchers (which SAO stopped using in ~Fall 2010), and another handles RFPs (the current system, as of Summer 2014).
5
6Configuration
7-------------
8
9Configuration is with a settings.py file in the same directory. It should
10define:
11
12`baseurl`
13    the base of your Remit install (eg, ``baseurl`` + 'admin/' should give the admin)
14`pathtpl`
15    path into which to write output files (vouchers: LaTeX, PDFs; RFPs: CSV files of RFP info, documentation); this should be a ``printf``-style string with named parameters `label` and `ext`
16`django_username` (optional)
17    username to log in with; the script uses "downloader" if you don't override it
18`password`
19    password to log in with
20`pdfviewer` (optional)
21    PDF viewer to automatically launch after compiling the LaTeX (default: evince; only used for vouchers)
22
23Vouchers
24--------
25
26``downloader.py`` will download voucher LaTeX from a Remit site, compile it, and allow you to print it. The ``mitvoucher`` LaTeX documentclass (`download <http://web.mit.edu/adehnert/Public/resources/treasury-forms/mitvoucher.cls>`_) must be available for ``downloader.py`` to compile the LaTeX it receives.
27
28RFPs
29----
30
31The RFP submission system depends on Benjamin Tidor's `pysapweb <https://github.com/btidor/pysapweb/>`_, which itself requires Selenium. In general, refer to the `pysapweb documentation <http://pysapweb.readthedocs.org/en/latest/introduction.html>`_ for guidance getting that working.
32
33Once pysapweb and Selenium are set up, download RFPs by running ``rfp.py``. If you get an error from pysapweb/Selenium about creating an ``x86`` or ``amd64`` directory because it already exists, you may need to delete that directory from the pysapweb template profile, in ``~/.pysapweb/``.
Note: See TracBrowser for help on using the repository browser.