forked from gocept/gocept.mochikit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
130 lines (79 loc) · 2.71 KB
/
README.txt
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
===============
gocept.mochikit
===============
gocept.mochikit integrates MochiKit (http://mochikit.com) into Zope 2 and
Zope 3. Send questions to Christian Zagrodnick <[email protected]>.
Usage (Zope 3)
==============
To use gocept.mochikit you need to add the following to your package
configuration (ZCML)::
<include package="gocept.mochikit" />
This provides several resource libraries using the `zc.resourcelibrary`
package. In a page template you use::
<tal:replace replace="resource_library:mochikit" />
This will automatically load the main MochiKit file in its packed variant.
There are several additional MochiKit files which are not included in the
libarary above:
* mochikit.DragAndDrop
* mochikit.Controls
* mochikit.MockDOM
* mochikit.Selector
* mochikit.Test
You use those like this::
<tal:replace replace="resource_library:mochikit.DragAndDrop" />
Unpacked Variant
----------------
If you need to debug it's often easier to use the plain and unpacked MochiKit
variant. To use you load the package like this::
<include package="gocept.mochikit" file="unpacked" />
Usage (Zope 2)
==============
To use gocept.mochikit in Zope 2 you need to add the following to your package
configuration (ZCML)::
<include package="gocept.mochikit" file="zope2.zcml" />
This provides the packed version of MochiKit, so in your HTML template you
need to include the following::
<script
type="text/javascript"
src="++resource++gocept.mochikit/MochiKit.js">
</script>
Changes
=======
1.4.2.5 (unreleased)
++++++++++++++++++++
* Made Python-3 compatible
1.4.2.4 (2009-05-22)
++++++++++++++++++++
* Changed MochiKit.Signal.signal() so it is reentrant (see
https://trac.mochikit.com/ticket/346)
* Made unpacked.zcml usable again.
1.4.2.3 (2009-04-24)
++++++++++++++++++++
* Added configuration (zope2.zcml) for Zope 2 compatibility.
1.4.2.2 (2009-04-20)
++++++++++++++++++++
* Lightbox: only set "Loading..." message when the lightbox is empty.
* Made unregistering of event handlers more reliable in lightbox.
* Allow to not use ids for the lightbox.
1.4.2.1 (2009-04-06)
++++++++++++++++++++
* Sending a signal before the lightbox closes (before-close).
1.4.2 (2008-12-10)
++++++++++++++++++
* Updated to MochiKit 1.4.2
1.3.2 (2008-02-13)
++++++++++++++++++
* Added styles (CSS) for lightbox
* Updated to Mochikit r1323
1.3.1 (2007-12-07)
++++++++++++++++++
* Created a viewlet manager to allow easy dynamic javascript injection
1.3 (2007-11-26)
++++++++++++++++
* Updated to Mochikit r1320
* Added a lightbox (probably doesn't work in IE)
1.2
+++
* Added an approach for easier inheritance from
http://www.ajaxpath.com/javascript-inheritance/
* Update to Mochikit r1315