File: source.rst

package info (click to toggle)
rst2pdf 0.103.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 26,860 kB
  • sloc: python: 10,342; sh: 95; makefile: 25
file content (153 lines) | stat: -rw-r--r-- 3,722 bytes parent folder | download | duplicates (10)
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
python
======

.. code-block:: python

    import os, shutil, sys, tempfile, urllib2

    tmpeggs = tempfile.mkdtemp()

    try:
        import pkg_resources
    except ImportError:
        ez = {}
        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
                             ).read() in ez
        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)

        import pkg_resources

apache
======
        
.. code-block:: apache

    WSGIPythonHome ${sandbox}
    WSGIDaemonProcess tmp threads=1 processes=4 maximum-requests=10000 python-path=${sandbox}/lib/python2.4/site-packages
    <VirtualHost *:80>
      ServerName my.machine.local
      WSGIScriptAlias /site ${sandbox}/bin/zope2.wsgi
      WSGIProcessGroup tmp
      WSGIPassAuthorization On
      SetEnv HTTP_X_VHM_HOST http://my.machine.local/site
      SetEnv PASTE_CONFIG ${sandbox}/etc/zope2.ini
    </VirtualHost>


shell
=====

.. code-block:: sh

    #! /bin/bash

    INSTALLDIR=`dirname $0`
    if [ -z "$INSTALLDIR" ] ; then
       INSTALLDIR=`pwd`; export INSTALLDIR
    fi

    ARG1=$1

    echo
    echo This installer actually builds Zenoss.
    echo For a simpler installation try the VMPlayer Appliance image,
    echo or use RPMs for Redhat based systems.
    echo
    echo Building...
    echo

    # interactive install (prompt for usernames and passwords)
    if [ -z "$ARG1" ]; then
        exec $INSTALLDIR/build.sh
    fi

    # non-interactive install (use defaults)
    if [ "${ARG1}" = "--no-prompt" ]; then
        exec $INSTALLDIR/build-noprompt.sh < /dev/null
    fi

traduction
==========

.. code-block:: po

    #. Default: "Switch between visual editor and HTML view"
    #: kupu/plone/kupu_plone_layer/kupu_wysiwyg_support.html:189
    msgid "toggle_source_view"
    msgstr "modifier le code HTML"

config
======

.. code-block:: cfg

    [buildout]
    parts =
        rst2pdf
    find-links =
    #reportlab    
        http://ftp.schooltool.org/schooltool/eggs/3.4
    #wordaxe
        http://sourceforge.net/project/platformdownload.php?group_id=105867

    [rst2pdf]
    recipe = zc.recipe.egg:scripts
    eggs = 
        rst2pdf
        simplejson
        wordaxe

javascript
==========

.. code-block:: js

    WidgeteerDrawerTool.prototype.closeDrawer = function(button) {
        if (!this.current_drawer) {
            return;
        };
        this.current_drawer.hide();
        this.current_drawer.editor.resumeEditing();
        this.current_drawer = null;
        var parentdoc = parent.document;
        var placeholder = parentdoc.getElementById('drawerplaceholder')
        placeholder.style.display = 'none';
    };

XML
===

.. code-block:: xml

    <schema keytype="ZConfig.tests.test_schema.uppercase">
      <sectiontype name="type-2"/>
    </schema>

HTML
====

.. code-block:: html

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html lang="en-ca">
    <head>
      <meta http-equiv="Content-Type"
     content="text/html; charset=windows-1252">
      <title>TwistedSNMP</title>
      <link rel="stylesheet" type="text/css" href="style/sitestyle.css">
    </head>
    <body
     style="background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); direction: ltr;"
     alink="#008000" link="#000080" vlink="#800080">
    <h1>TwistedSNMP<br>
    </h1>
    <p>TwistedSNMP is a set of SNMP protocol implementations for Python's
    Twisted Matrix networking framework using the PySNMP project.&nbsp; It
    provides the following:</p>
    <ul>
      <li>get, set, getnext and getbulk Manager-side queries</li>
      <li>get, set, getnext and getbulk Agent-side services</li>
    </ul>
    <p>Eventual goals of the system:<br>
    </body>
    </html>