File: connectionAdd.dtml

package info (click to toggle)
psycopg 1.0.8-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 676 kB
  • ctags: 603
  • sloc: ansic: 2,900; python: 1,356; makefile: 99; sh: 27
file content (82 lines) | stat: -rw-r--r-- 2,323 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html>
  <head><title>Add Z Psycopg Database Connection</title></head>
  <body bgcolor="#FFFFFF" link="#000099" vlink="#555555" alink="#77003B">
  
    <h2>Add Z Psycopg Database Connection</h2>
    
    <form action="manage_addZPsycopgConnection" method="POST">
      <table cellspacing="2">
	<tr>
	  <th align="LEFT" valign="TOP">Id</th>
	  <td align="LEFT" valign="TOP">
            <input type="TEXT" name="id" size="40"
                value="Psycopg_database_connection">
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP"><em>Title</em></th>
	  <td align="LEFT" valign="TOP">
            <input type="TEXT" name="title" size="40"
                value="Z Psycopg Database Connection">
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP">
             Enter a Database Connection String
	     <a href="#1"><sup>1</sup></a></th>
	  <td align="LEFT" valign="TOP">
            <input type="TEXT" name="connection_string" size="40">
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP">Connect immediately</th>
	  <td align="LEFT" valign="TOP">
            <input name="check" type="CHECKBOX" value="YES" CHECKED>
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP">Use Zope's internal DateTime <br>
	    module (instead of mxDateTime).</th>
	  <td align="LEFT" valign="TOP">
            <input name="zdatetime" type="CHECKBOX" value="YES" CHECKED>
          </td>
	</tr>
	<tr>
	  <th align="LEFT" valign="TOP">PyGreSQL emulation mode</th>
	  <td align="LEFT" valign="TOP">
            <input name="pygresql" type="CHECKBOX" value="YES">
          </td>
	</tr>
	<tr>
	  <td></td>
	  <td><br><input type="SUBMIT" value="Add"></td>
	</tr>
      </table>
    </form>



<dt><a hname="1"><sup>1</sup></a> Connection Strings</dt>
<dd>

<p>The connection string used for Z Psycopg Database Connection are
exactly the same connection strings required by posgresql tools.  The
connection strings are typically of the form:

<quote><tt>
  dbname=database_name user=user_name password=secret_string 
  host=server_addr port=port_number
</tt></quote>
    
or:

<quote><tt>
  dbname=database_name user=user_name password=secret_string port=port_number
</tt></quote>

to use the unix socket named <tt>port_number</tt>.  See potgresql documentation
for more options.
</dd></dl>

</body>
</html>