Project

General

Profile

Configure sinedoncfg shared » History » Version 9

Amber Herold, 04/16/2012 11:41 AM

1 1 Anchi Cheng
h1. Configure sinedon.cfg
2
3
4
5 7 Amber Herold
Sinedon is an object relational mapping library designed to interact with the Leginon and Appion databases.
6
7 1 Anchi Cheng
    * An example configuration file is available at:
8
      myami/sinedon/examples/sinedon.cfg
9
10
    * Configurations for all users should be placed at the following path:
11
      $PYTHONSITEPKG/sinedon/sinedon.cfg
12 9 Amber Herold
 
13 8 Amber Herold
Note: You can discover the $PYTHONSITEPKG path by starting python:
14
<pre>
15
python
16
import sys
17
sys.path
18
</pre>
19
The first path to site-packages should hold the config file.
20 1 Anchi Cheng
21 5 Anchi Cheng
    * Modify sinedon.cfg to look like the following example. Set the host, [[Explanation of Sample Names|db, user, and passwd to match the databases created during your Database Server setup]]. Note that the user here is the MySQL user Leginon uses to communicate with the database for all Leginon users. For an Appion or Leginon installation that uses Project database, set the following:
22 1 Anchi Cheng
<pre>
23
[global]
24
#host: your_database_host
25
host: localhost
26
user: usr_object
27
passwd:
28
29
[projectdata]
30
db: projectdb
31
32
[leginondata]
33
db: leginondb
34
</pre>
35 6 Amber Herold
36
*Note:* If you are a developer, and you need to use sinedon.cfg settings that are different from the global settings, you may create your own sinedon.cfg file and place it in your home directory. This version will override the global version located in the site packages directory.