home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / python / pytexdoc / ext / lib / lib2 / bastion / tex
LaTeX Document  |  1996-11-08  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 53 74 61 6e 64 61 72 |\section|{Standar|
|00000010| 64 20 4d 6f 64 75 6c 65 | 20 5c 73 65 63 74 63 6f |d Module| \sectco|
|00000020| 64 65 7b 42 61 73 74 69 | 6f 6e 7d 7d 0a 5c 73 74 |de{Basti|on}}.\st|
|00000030| 6d 6f 64 69 6e 64 65 78 | 7b 42 61 73 74 69 6f 6e |modindex|{Bastion|
|00000040| 7d 0a 5c 72 65 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b |}.\renew|command{|
|00000050| 5c 69 6e 64 65 78 73 75 | 62 69 74 65 6d 7d 7b 28 |\indexsu|bitem}{(|
|00000060| 69 6e 20 6d 6f 64 75 6c | 65 20 42 61 73 74 69 6f |in modul|e Bastio|
|00000070| 6e 29 7d 0a 0a 25 20 49 | 27 6d 20 63 6f 6e 63 65 |n)}..% I|'m conce|
|00000080| 72 6e 65 64 20 74 68 61 | 74 20 74 68 65 20 77 6f |rned tha|t the wo|
|00000090| 72 64 20 27 62 61 73 74 | 69 6f 6e 27 20 77 6f 6e |rd 'bast|ion' won|
|000000a0| 27 74 20 62 65 20 75 6e | 64 65 72 73 74 6f 6f 64 |'t be un|derstood|
|000000b0| 20 62 79 20 70 65 6f 70 | 6c 65 0a 25 20 66 6f 72 | by peop|le.% for|
|000000c0| 20 77 68 6f 6d 20 45 6e | 67 6c 69 73 68 20 69 73 | whom En|glish is|
|000000d0| 20 61 20 73 65 63 6f 6e | 64 20 6c 61 6e 67 75 61 | a secon|d langua|
|000000e0| 67 65 2c 20 6d 61 6b 69 | 6e 67 20 74 68 65 20 6d |ge, maki|ng the m|
|000000f0| 6f 64 75 6c 65 20 6e 61 | 6d 65 0a 25 20 73 6f 6d |odule na|me.% som|
|00000100| 65 77 68 61 74 20 6d 79 | 73 74 65 72 69 6f 75 73 |ewhat my|sterious|
|00000110| 2e 20 20 54 68 75 73 2c | 20 74 68 65 20 62 72 69 |. Thus,| the bri|
|00000120| 65 66 20 64 65 66 69 6e | 69 74 69 6f 6e 2e 2e 2e |ef defin|ition...|
|00000130| 20 2d 2d 61 6d 6b 0a 0a | 41 63 63 6f 72 64 69 6e | --amk..|Accordin|
|00000140| 67 20 74 6f 20 74 68 65 | 20 64 69 63 74 69 6f 6e |g to the| diction|
|00000150| 61 72 79 2c 20 61 20 62 | 61 73 74 69 6f 6e 20 69 |ary, a b|astion i|
|00000160| 73 20 60 60 61 20 66 6f | 72 74 69 66 69 65 64 20 |s ``a fo|rtified |
|00000170| 61 72 65 61 20 6f 72 0a | 70 6f 73 69 74 69 6f 6e |area or.|position|
|00000180| 27 27 2c 20 6f 72 20 60 | 60 73 6f 6d 65 74 68 69 |'', or `|`somethi|
|00000190| 6e 67 20 74 68 61 74 20 | 69 73 20 63 6f 6e 73 69 |ng that |is consi|
|000001a0| 64 65 72 65 64 20 61 20 | 73 74 72 6f 6e 67 68 6f |dered a |strongho|
|000001b0| 6c 64 2e 27 27 20 20 49 | 74 27 73 20 61 0a 73 75 |ld.'' I|t's a.su|
|000001c0| 69 74 61 62 6c 65 20 6e | 61 6d 65 20 66 6f 72 20 |itable n|ame for |
|000001d0| 74 68 69 73 20 6d 6f 64 | 75 6c 65 2c 20 77 68 69 |this mod|ule, whi|
|000001e0| 63 68 20 70 72 6f 76 69 | 64 65 73 20 61 20 77 61 |ch provi|des a wa|
|000001f0| 79 20 74 6f 20 66 6f 72 | 62 69 64 20 61 63 63 65 |y to for|bid acce|
|00000200| 73 73 0a 74 6f 20 63 65 | 72 74 61 69 6e 20 61 74 |ss.to ce|rtain at|
|00000210| 74 72 69 62 75 74 65 73 | 20 6f 66 20 61 6e 20 6f |tributes| of an o|
|00000220| 62 6a 65 63 74 2e 20 20 | 49 74 20 6d 75 73 74 20 |bject. |It must |
|00000230| 61 6c 77 61 79 73 20 62 | 65 20 75 73 65 64 20 77 |always b|e used w|
|00000240| 69 74 68 20 74 68 65 0a | 5c 63 6f 64 65 7b 72 65 |ith the.|\code{re|
|00000250| 78 65 63 7d 20 6d 6f 64 | 75 6c 65 2c 20 69 6e 20 |xec} mod|ule, in |
|00000260| 6f 72 64 65 72 20 74 6f | 20 61 6c 6c 6f 77 20 72 |order to| allow r|
|00000270| 65 73 74 72 69 63 74 65 | 64 2d 6d 6f 64 65 20 70 |estricte|d-mode p|
|00000280| 72 6f 67 72 61 6d 73 20 | 61 63 63 65 73 73 0a 74 |rograms |access.t|
|00000290| 6f 20 63 65 72 74 61 69 | 6e 20 73 61 66 65 20 61 |o certai|n safe a|
|000002a0| 74 74 72 69 62 75 74 65 | 73 20 6f 66 20 61 6e 20 |ttribute|s of an |
|000002b0| 6f 62 6a 65 63 74 2c 20 | 77 68 69 6c 65 20 64 65 |object, |while de|
|000002c0| 6e 79 69 6e 67 20 61 63 | 63 65 73 73 20 74 6f 0a |nying ac|cess to.|
|000002d0| 6f 74 68 65 72 2c 20 75 | 6e 73 61 66 65 20 61 74 |other, u|nsafe at|
|000002e0| 74 72 69 62 75 74 65 73 | 2e 0a 0a 25 20 49 27 76 |tributes|...% I'v|
|000002f0| 65 20 70 75 6e 74 65 64 | 20 6f 6e 20 74 68 65 20 |e punted| on the |
|00000300| 69 73 73 75 65 20 6f 66 | 20 64 6f 63 75 6d 65 6e |issue of| documen|
|00000310| 74 69 6e 67 20 6b 65 79 | 77 6f 72 64 20 61 72 67 |ting key|word arg|
|00000320| 75 6d 65 6e 74 73 20 66 | 6f 72 20 6e 6f 77 2e 0a |uments f|or now..|
|00000330| 0a 5c 62 65 67 69 6e 7b | 66 75 6e 63 64 65 73 63 |.\begin{|funcdesc|
|00000340| 7d 7b 42 61 73 74 69 6f | 6e 7d 7b 6f 62 6a 65 63 |}{Bastio|n}{objec|
|00000350| 74 5c 6f 70 74 69 6f 6e | 61 6c 7b 5c 2c 20 66 69 |t\option|al{\, fi|
|00000360| 6c 74 65 72 5c 2c 20 6e | 61 6d 65 5c 2c 20 63 6c |lter\, n|ame\, cl|
|00000370| 61 73 73 7d 7d 0a 50 72 | 6f 74 65 63 74 20 74 68 |ass}}.Pr|otect th|
|00000380| 65 20 63 6c 61 73 73 20 | 69 6e 73 74 61 6e 63 65 |e class |instance|
|00000390| 20 5c 76 61 72 7b 6f 62 | 6a 65 63 74 7d 2c 20 72 | \var{ob|ject}, r|
|000003a0| 65 74 75 72 6e 69 6e 67 | 20 61 20 62 61 73 74 69 |eturning| a basti|
|000003b0| 6f 6e 20 66 6f 72 20 74 | 68 65 0a 6f 62 6a 65 63 |on for t|he.objec|
|000003c0| 74 2e 20 20 41 6e 79 20 | 61 74 74 65 6d 70 74 20 |t. Any |attempt |
|000003d0| 74 6f 20 61 63 63 65 73 | 73 20 6f 6e 65 20 6f 66 |to acces|s one of|
|000003e0| 20 74 68 65 20 6f 62 6a | 65 63 74 27 73 20 61 74 | the obj|ect's at|
|000003f0| 74 72 69 62 75 74 65 73 | 20 77 69 6c 6c 0a 68 61 |tributes| will.ha|
|00000400| 76 65 20 74 6f 20 62 65 | 20 61 70 70 72 6f 76 65 |ve to be| approve|
|00000410| 64 20 62 79 20 74 68 65 | 20 5c 76 61 72 7b 66 69 |d by the| \var{fi|
|00000420| 6c 74 65 72 7d 20 66 75 | 6e 63 74 69 6f 6e 3b 20 |lter} fu|nction; |
|00000430| 69 66 20 74 68 65 20 61 | 63 63 65 73 73 20 69 73 |if the a|ccess is|
|00000440| 0a 64 65 6e 69 65 64 20 | 61 6e 20 41 74 74 72 69 |.denied |an Attri|
|00000450| 62 75 74 65 45 72 72 6f | 72 20 65 78 63 65 70 74 |buteErro|r except|
|00000460| 69 6f 6e 20 77 69 6c 6c | 20 62 65 20 72 61 69 73 |ion will| be rais|
|00000470| 65 64 2e 0a 0a 49 66 20 | 70 72 65 73 65 6e 74 2c |ed...If |present,|
|00000480| 20 5c 76 61 72 7b 66 69 | 6c 74 65 72 7d 20 6d 75 | \var{fi|lter} mu|
|00000490| 73 74 20 62 65 20 61 20 | 66 75 6e 63 74 69 6f 6e |st be a |function|
|000004a0| 20 74 68 61 74 20 61 63 | 63 65 70 74 73 20 61 20 | that ac|cepts a |
|000004b0| 73 74 72 69 6e 67 0a 63 | 6f 6e 74 61 69 6e 69 6e |string.c|ontainin|
|000004c0| 67 20 61 6e 20 61 74 74 | 72 69 62 75 74 65 20 6e |g an att|ribute n|
|000004d0| 61 6d 65 2c 20 61 6e 64 | 20 72 65 74 75 72 6e 73 |ame, and| returns|
|000004e0| 20 74 72 75 65 20 69 66 | 20 61 63 63 65 73 73 20 | true if| access |
|000004f0| 74 6f 20 74 68 61 74 0a | 61 74 74 72 69 62 75 74 |to that.|attribut|
|00000500| 65 20 77 69 6c 6c 20 62 | 65 20 70 65 72 6d 69 74 |e will b|e permit|
|00000510| 74 65 64 3b 20 69 66 20 | 5c 76 61 72 7b 66 69 6c |ted; if |\var{fil|
|00000520| 74 65 72 7d 20 72 65 74 | 75 72 6e 73 20 66 61 6c |ter} ret|urns fal|
|00000530| 73 65 2c 20 74 68 65 20 | 61 63 63 65 73 73 0a 69 |se, the |access.i|
|00000540| 73 20 64 65 6e 69 65 64 | 2e 20 20 54 68 65 20 64 |s denied|. The d|
|00000550| 65 66 61 75 6c 74 20 66 | 69 6c 74 65 72 20 64 65 |efault f|ilter de|
|00000560| 6e 69 65 73 20 61 63 63 | 65 73 73 20 74 6f 20 61 |nies acc|ess to a|
|00000570| 6e 79 20 66 75 6e 63 74 | 69 6f 6e 20 62 65 67 69 |ny funct|ion begi|
|00000580| 6e 6e 69 6e 67 0a 77 69 | 74 68 20 61 6e 20 75 6e |nning.wi|th an un|
|00000590| 64 65 72 73 63 6f 72 65 | 20 28 5c 63 6f 64 65 7b |derscore| (\code{|
|000005a0| 5f 7d 29 2e 20 20 54 68 | 65 20 62 61 73 74 69 6f |_}). Th|e bastio|
|000005b0| 6e 27 73 20 73 74 72 69 | 6e 67 20 72 65 70 72 65 |n's stri|ng repre|
|000005c0| 73 65 6e 74 61 74 69 6f | 6e 0a 77 69 6c 6c 20 62 |sentatio|n.will b|
|000005d0| 65 20 5c 63 6f 64 65 7b | 3c 42 61 73 74 69 6f 6e |e \code{|<Bastion|
|000005e0| 20 66 6f 72 20 5c 76 61 | 72 7b 6e 61 6d 65 7d 3e | for \va|r{name}>|
|000005f0| 7d 20 69 66 20 61 20 76 | 61 6c 75 65 20 66 6f 72 |} if a v|alue for|
|00000600| 0a 5c 76 61 72 7b 6e 61 | 6d 65 7d 20 69 73 20 70 |.\var{na|me} is p|
|00000610| 72 6f 76 69 64 65 64 3b | 20 6f 74 68 65 72 77 69 |rovided;| otherwi|
|00000620| 73 65 2c 20 5c 63 6f 64 | 65 7b 72 65 70 72 28 5c |se, \cod|e{repr(\|
|00000630| 76 61 72 7b 6f 62 6a 65 | 63 74 7d 29 7d 20 77 69 |var{obje|ct})} wi|
|00000640| 6c 6c 20 62 65 20 75 73 | 65 64 2e 0a 0a 5c 76 61 |ll be us|ed...\va|
|00000650| 72 7b 63 6c 61 73 73 7d | 2c 20 69 66 20 70 72 65 |r{class}|, if pre|
|00000660| 73 65 6e 74 2c 20 77 6f | 75 6c 64 20 62 65 20 61 |sent, wo|uld be a|
|00000670| 20 73 75 62 63 6c 61 73 | 73 20 6f 66 20 5c 63 6f | subclas|s of \co|
|00000680| 64 65 7b 42 61 73 74 69 | 6f 6e 43 6c 61 73 73 7d |de{Basti|onClass}|
|00000690| 3b 0a 73 65 65 20 74 68 | 65 20 63 6f 64 65 20 69 |;.see th|e code i|
|000006a0| 6e 20 5c 66 69 6c 65 7b | 62 61 73 74 69 6f 6e 2e |n \file{|bastion.|
|000006b0| 70 79 7d 20 66 6f 72 20 | 74 68 65 20 64 65 74 61 |py} for |the deta|
|000006c0| 69 6c 73 2e 20 20 4f 76 | 65 72 72 69 64 69 6e 67 |ils. Ov|erriding|
|000006d0| 20 74 68 65 0a 64 65 66 | 61 75 6c 74 20 5c 63 6f | the.def|ault \co|
|000006e0| 64 65 7b 42 61 73 74 69 | 6f 6e 43 6c 61 73 73 7d |de{Basti|onClass}|
|000006f0| 20 77 69 6c 6c 20 72 61 | 72 65 6c 79 20 62 65 20 | will ra|rely be |
|00000700| 72 65 71 75 69 72 65 64 | 2e 20 20 0a 0a 5c 65 6e |required|. ..\en|
|00000710| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0a |d{funcde|sc}. |
+--------+-------------------------+-------------------------+--------+--------+