|
1 | 1 | <HTML> |
2 | 2 | <HEAD> |
3 | | -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> |
| 3 | +<META HTTP-EQUIV="Content-Type" CONTENT="text/html" charset="utf-8"> |
4 | 4 | <META NAME="Generator" CONTENT="Microsoft Word 97"> |
5 | 5 | <TITLE>Quick Start to Server Side COM and Python</TITLE> |
6 | 6 | <META NAME="Version" CONTENT="8.0.3410"> |
@@ -39,7 +39,7 @@ <H3><A NAME="Using">Implement a stand-alone Python class with your functionality |
39 | 39 |
|
40 | 40 | </CODE><P>This is obviously a very simple server. In particular, custom error handling would be needed for a production class server. In addition, there are some contrived properties just for demonstration purposes.</P> |
41 | 41 | <H3>Make Unicode concessions</H3> |
42 | | -<P>At this stage, Python and Unicode don’t really work well together. All strings which come from COM will actually be Unicode objects rather than string objects.</P> |
| 42 | +<P>At this stage, Python and Unicode don't really work well together. All strings which come from COM will actually be Unicode objects rather than string objects.</P> |
43 | 43 | <P>To make this code work in a COM environment, the last line of the "Hello" method must become:</P><DIR> |
44 | 44 | <DIR> |
45 | 45 | <DIR> |
@@ -85,7 +85,7 @@ <H3>Annotate the class with win32com specific attributes</H3> |
85 | 85 | <P>_public_attrs_ = ['softspace', 'noCalls']</P> |
86 | 86 | <P>_readonly_attrs_ = ['noCalls']</P> |
87 | 87 | <P>def __init__(self):</P> |
88 | | -<P>[Same from here…]</P></DIR> |
| 88 | +<P>[Same from here...]</P></DIR> |
89 | 89 | </DIR> |
90 | 90 |
|
91 | 91 | </CODE><H3><A NAME="Registering">Registering and assigning a CLSID for the object</A></H3> |
@@ -179,7 +179,7 @@ <H2><A NAME="Exception">Exception Handling </A></H2> |
179 | 179 | <H3>Default Policy attributes </H3> |
180 | 180 | <P>The default policy object has a few special attributes that define who the object is exposed to COM. The example above shows the _public_methods attribute, but this section describes all such attributes in detail. </P> |
181 | 181 | <H5>_public_methods_ </H5> |
182 | | -<P>Required list of strings, containing the names of all methods to be exposed to COM. It is possible this will be enhanced in the future (eg, possibly '*' will be recognised to say all methods, or some other ideas…) </P> |
| 182 | +<P>Required list of strings, containing the names of all methods to be exposed to COM. It is possible this will be enhanced in the future (eg, possibly '*' will be recognised to say all methods, or some other ideas...) </P> |
183 | 183 | <H5>_public_attrs_ </H5> |
184 | 184 | <P>Optional list of strings containing all attribute names to be exposed, both for reading and writing. The attribute names must be valid instance variables. </P> |
185 | 185 | <H5>_readonly_attrs_ </H5> |
|
0 commit comments