1 | waeup.sirp |
---|
2 | ********** |
---|
3 | |
---|
4 | The WAeUP Student Information and Registration Portal. `waeup.sirp` is |
---|
5 | a web-based management tool for managing universities and schools. |
---|
6 | |
---|
7 | What is ``waeup.sirp``? |
---|
8 | ======================= |
---|
9 | |
---|
10 | The package was created as an effort of the WAeUP group. See |
---|
11 | http://www.waeup.org to learn more about WAeUP. |
---|
12 | |
---|
13 | |
---|
14 | Installation |
---|
15 | ============ |
---|
16 | |
---|
17 | .. note:: ``waeup.sirp`` does not work with Python > 2.5 |
---|
18 | currently. Use of Python 2.5 is recommended. |
---|
19 | |
---|
20 | .. note:: ``waeup.sirp`` does not work on Windows. |
---|
21 | |
---|
22 | Prerequisites |
---|
23 | ------------- |
---|
24 | |
---|
25 | The ``waeup.sirp`` package is based on `Grok`_, which is a Python |
---|
26 | framework for agile webapplication development. Grok itself is based |
---|
27 | on `Zope`_. |
---|
28 | |
---|
29 | .. _Grok: http://grok.zope.org/ |
---|
30 | |
---|
31 | .. _Zope: http://www.zope.org/ |
---|
32 | |
---|
33 | To deploy ``waeup.sirp`` most easily, we use `zc.buildout`_ |
---|
34 | |
---|
35 | .. _zc.buildout: http://cheeseshop.python.org/pypi/zc.buildout |
---|
36 | |
---|
37 | You may have setuptools already installed for your system Python. In |
---|
38 | that case, you may need to upgrade it first because buildout requires |
---|
39 | a very recent version:: |
---|
40 | |
---|
41 | $ sudo easy_install -U setuptools |
---|
42 | |
---|
43 | If this command fails because easy_install is not available, there is |
---|
44 | a good chance you do not have setuptools available for your system |
---|
45 | Python. If so, there is no problem because setuptools will be |
---|
46 | installed locally by buildout. |
---|
47 | |
---|
48 | Bootstrap the buildout environment:: |
---|
49 | |
---|
50 | $ python2.4 bootstrap/bootstrap.py |
---|
51 | |
---|
52 | and run the buildout command:: |
---|
53 | |
---|
54 | $ bin/buildout |
---|
55 | [lots of stuff will be downloaded and installed here] |
---|
56 | |
---|
57 | Note that if you have more than one sandbox for a Zope-based web |
---|
58 | application, it will probably make sense to share the eggs between the |
---|
59 | different sandboxes. You can tell ``zc.buildout`` to use a central |
---|
60 | eggs directory by creating ``~/.buildout/default.cfg`` with the |
---|
61 | following contents:: |
---|
62 | |
---|
63 | [buildout] |
---|
64 | eggs-directory = /home/bruno/buildout-eggs |
---|
65 | |
---|
66 | Running the ``waeup`` application |
---|
67 | --------------------------------- |
---|
68 | |
---|
69 | You can start Zope with the with the following command: |
---|
70 | |
---|
71 | $ bin/zopectl fg |
---|
72 | |
---|
73 | If you now connect to port 8080 and log in with username 'grok', |
---|
74 | password 'grok', you should be able to add the grok-based applications |
---|
75 | (such as ``waeup``) from the menu. |
---|
76 | |
---|
77 | Add an instance of ``waeup`` and click on the link next to the then |
---|
78 | visible entry in the list of installed applications. |
---|
79 | |
---|
80 | Running the tests |
---|
81 | ----------------- |
---|
82 | |
---|
83 | The tests are easily run by executing the test runner that's |
---|
84 | installed in the ``bin`` directory:: |
---|
85 | |
---|
86 | $ bin/test |
---|
87 | |
---|