wiki:Admin/Tools

Version 4 (modified by jbenito, 4 years ago) (diff)

--

Administration Tools

indicoShell

If for any reason you need direct access to the Indico DB, or to manually run some task, etc... indicoShell may be of your interest. indicoShell is a simple IPython-based environment that automatically sets up some basic structures that will help you in your management tasks.

Installing

v0.97+

indicoShell is part of the Indico distribution for all the v0.97-series releases. It's located inside bin/utils. You should adapt indicoShell.sh (or indicoShell.bat under Windows) to suit your Indico environment (set the INDICOPATH environment variable, or just ignore it if Indico is already installed in your system-wide python package directory).

< v0.97

If for some reason you are using an older version of Indico, you can always download the required files from our Git repo, or simply through our web interface:

IPython is required (you can simply easy_install it). Windows users will also need to install PyReadline.

Example

It should be very straightforward to use indicoShell:

In [1]: AvatarHolder().getById(22116)
Out[1]: <MaKaC.user.Avatar object at 0xb6f2822c>

In [2]: AvatarHolder().getById(22116).getFullName()
Out[2]: 'FERREIRA, Jose Pedro'

In [3]: a = AvatarHolder().getById(22116) 

In [4]: a.setSurName('Doe')

In [5]: a.getFullName() 
Out[5]: 'DOE, Jose Pedro'