CINXE.COM

小芯芯斜褖械薪懈械 # 901

<!DOCTYPE HTML> <html> <head> <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=utf-8"> <META HTTP-EQUIV="Case-control" CONTENT="NO-STORE"> <title> 小芯芯斜褖械薪懈械 # 901 </title> <link href="https://anabar.ru/fou.css" rel=styleSheet type=text/css> </head> <body bgcolor="#c1c1c1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <BASEFONT face="Verdana, Helvetica, Arial" size="0"> <font face="Verdana, Helvetica, Arial"> <table width="100%" height="60" cellspacing="0" cellpadding="2" border="0"> <tr bgcolor="#666666" nowrap><td valign="center"> <H1><FONT color=GRAY><TT>Some HAT...</TT></font></H1> </td></tr></table> <script>setCookieDelta( "manifold", "Python", 10000000 )</script> <table width="100%" cellspacing="0" cellpadding="4" border="0"> <tr bgcolor="#88ba88" nowrap><td nowrap> <span class="tfn">= <a href="https://anabar.ru" >袗薪邪斜邪褉.ru</a> =&gt; <a href="/forumz/anafo.py?manifold=Python" >Python-褎芯褉褍屑褘</a> =&gt; <a href="/forumz/anafo.py?forumid=4&page=1" >携蟹褘泻 锌褉芯谐褉邪屑屑懈褉芯胁邪薪懈褟 Python</a> =&gt; 褋芯芯斜褖械薪懈械 901</span> </td></tr></table> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <tr bgcolor="#c1c1c1"><td align="right" width="100%" class="tfn" nowrap>| <a href="/forumz/anafo.py?login" >袙褏芯写</a> | <a href="/forumz/anafo.py?delo=regNewUser" >袪械谐懈褋褌褉邪褑懈褟</a> |&nbsp; </td></tr> </table> <blockquote> <table cellspacing="0" cellpadding="0" border="0"> <tr><td> <table width="100%" cellspacing="0" cellpadding="5" border="0"> <tr ><td align="center" valign="top" width="80" rowspan="3"><span class="t">薪械褌 <br>褎芯褌芯</span></td><td><table cellspacing="0" cellpadding="0" border="0"> <tr><td bgcolor="#888888"> <table width="100%" cellspacing="0" cellpadding="1" border="0"> <tr bgcolor="#bbbbbb"><td align="right" valign="bottom" width="80" class="t">袗胁褌芯褉:&nbsp;</td><td class="bt" nowrap>&nbsp;<b>xman</b></td></tr> <tr bgcolor="#cccccc"><td align="right" class="t">袛邪褌邪:&nbsp;</td><td class="t" nowrap>&nbsp;10-Jul-2006 10:33 (gmt = -3.0)</td></tr> <tr bgcolor="#bbbbbb"><td align="right" class="t">E-mail:&nbsp;</td><td class="bt" nowrap>&nbsp;xman85@inbox.ru</td></tr></table></td></tr></table></td></tr> <tr ><td align="justify"><center><h2>袙芯锌褉芯褋 芯 谐谢芯斜邪谢褜薪褘褏 懈 谢芯泻邪谢薪褘褏 锌械褉械屑械薪薪褘褏 胁 褎褍薪泻褑懈褟褏.</h2></center> <span class="t"> <p class='first'>袨斜褗褟胁谢褟褞 锌邪褉褍 谐谢芯斜邪谢褜薪褘褏 锌械褉械屑械薪薪褘褏, 褏芯褔褍 褞蟹邪褌褜 懈褏 胁 褎-懈懈, 锌懈褕褍 褌邪屑, 褔褌芯 芯薪懈 谐谢芯斜邪谢褜薪褘械, 锌芯谢褍褔邪褞:</p> <p><!-- code : None --> <pre width=121> <FONT COLOR=#999999> 1</FONT> <FONT color=#5555aa>##################################################################</FONT> <FONT COLOR=#999999> 2</FONT> <FONT COLOR=#999999> 3</FONT> Time 2006/07/10 09:48:21.052 GMT+4 <FONT COLOR=#999999> 4</FONT> User Name (User Id) Anonymous User (None) <FONT COLOR=#999999> 5</FONT> Request URL http://www.site.ru/analyser/ws_test_2 <FONT COLOR=#999999> 6</FONT> Exception Type NameError <FONT COLOR=#999999> 7</FONT> Exception Value global name <FONT color=#00aa00>'lnks'</FONT> is not defined <FONT COLOR=#999999> 8</FONT> <FONT COLOR=#999999> 9</FONT> Traceback (innermost last): <FONT COLOR=#999999>10</FONT> Module ZPublisher.Publish, line 101, in publish <FONT COLOR=#999999>11</FONT> Module ZPublisher.mapply, line 88, in mapply <FONT COLOR=#999999>12</FONT> Module ZPublisher.Publish, line 39, in call_object <FONT COLOR=#999999>13</FONT> Module OFS.DTMLMethod, line 144, in __call__ <FONT COLOR=#999999>14</FONT> &lt;DTMLMethod instance at 43cd6da0&gt; <FONT COLOR=#999999>15</FONT> URL: http://www.site.ru/analyser/ws_test_2/manage_main <FONT COLOR=#999999>16</FONT> Physical Path:/analyser/ws_test_2 <FONT COLOR=#999999>17</FONT> Module DocumentTemplate.DT_String, line 474, in __call__ <FONT COLOR=#999999>18</FONT> Module DocumentTemplate.DT_With, line 76, in render <FONT COLOR=#999999>19</FONT> Module DocumentTemplate.DT_With, line 76, in render <FONT COLOR=#999999>20</FONT> Module DocumentTemplate.DT_In, line 626, in renderwob <FONT COLOR=#999999>21</FONT> Module DocumentTemplate.DT_Util, line 198, in eval <FONT COLOR=#999999>22</FONT> __traceback_info__: whole_site_2 <FONT COLOR=#999999>23</FONT> Module &lt;string&gt;, line 1, in &lt;expression&gt; <FONT COLOR=#999999>24</FONT> Module Shared.DC.Scripts.Bindings, line 306, in __call__ <FONT COLOR=#999999>25</FONT> Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec <FONT COLOR=#999999>26</FONT> Module Products.PythonScripts.PythonScript, line 323, in _exec <FONT COLOR=#999999>27</FONT> Module None, line 75, in whole_site_2 <FONT COLOR=#999999>28</FONT> &lt;PythonScript at /analyser/whole_site_2 used for /expert/rus&gt; <FONT COLOR=#999999>29</FONT> Line 75 <FONT COLOR=#999999>30</FONT> Module None, line 63, in recursive_traverse <FONT COLOR=#999999>31</FONT> &lt;PythonScript at /analyser/whole_site_2 used for /expert/rus&gt; <FONT COLOR=#999999>32</FONT> Line 63 <FONT COLOR=#999999>33</FONT> NameError: global name <FONT color=#00aa00>'lnks'</FONT> is not defined <FONT COLOR=#999999>34</FONT> <FONT COLOR=#999999>35</FONT> Display traceback as text <FONT COLOR=#999999>36</FONT> <FONT COLOR=#999999>37</FONT> <FONT color=#5555aa>##################################################################</FONT> </pre> </p> <p>袩芯褔械屑褍 芯薪懈 薪械 芯褗褟胁懈谢懈褋褜 谐谢芯斜邪谢褜薪褘屑懈? 携 锌褉芯斜芯胁邪谢 锌械褉械写邪胁邪褌褜 懈褏 胁 褎-褞 锌邪褉邪屑械褌褉邪屑懈, 薪芯 锌芯褋谢械 胁褘褏芯写邪 懈蟹 褎-懈懈 芯薪懈 胁芯褋褋褌邪薪邪胁谢懈胁邪褞褌 褋胁芯懈 锌褉械卸薪懈械 蟹薪邪褔械薪懈褟, 懈 褟 锌芯谢褍褔邪褞 斜械褋泻芯薪械褔薪褘泄 褑懈泻谢. 袩芯写褋泻邪卸懈褌械 锌谢蟹, 谐写械 谐褉邪斜谢懈?</p> <p>袙芯褌 泻芯写 褋泻褉懈锌褌邪:</p> <p><!-- code : python --> <pre width=121> <FONT COLOR=#999999> 1</FONT> <FONT color=#5555aa>#############################################################################################################</FONT> <FONT COLOR=#999999> 2</FONT> <FONT COLOR=#999999> 3</FONT> <FONT color=#5555aa># 胁芯褌 褝褌懈 锌械褉械屑械薪薪褘械 屑薪械 薪褍卸薪褘 谐谢芯斜邪谢褜薪褘屑懈</FONT> <FONT COLOR=#999999> 4</FONT> <FONT COLOR=#999999> 5</FONT> watchdog = <FONT color=Magenta>0</FONT> <FONT COLOR=#999999> 6</FONT> lnks = [] <FONT COLOR=#999999> 7</FONT> level = <FONT color=Magenta>0</FONT> <FONT COLOR=#999999> 8</FONT> <FONT COLOR=#999999> 9</FONT> filter_for_meta_types = ['<FONT color=#00aa00>ZMetodIssue</FONT>','<FONT color=#00aa00>ZMetodContentFolder</FONT>'] <FONT COLOR=#999999>10</FONT> items_to_show = <FONT color=Magenta>5000</FONT> <FONT COLOR=#999999>11</FONT> <FONT COLOR=#999999>12</FONT> <FONT COLOR=#999999>13</FONT> <B><FONT color=Brown>def</FONT></B> <FONT color=DarkCyan>parse_property</FONT>(property = '', abs_url = '') : <FONT COLOR=#999999>14</FONT> <FONT COLOR=#999999>15</FONT> <B><FONT color=Brown>if</FONT></B> property != '' : <FONT COLOR=#999999>16</FONT> <FONT COLOR=#999999>17</FONT> dirty_links = [] <FONT COLOR=#999999>18</FONT> links = [] <FONT COLOR=#999999>19</FONT> <FONT COLOR=#999999>20</FONT> <FONT color=#5555aa># 薪邪 泻邪泻芯屑 褋邪泄褌械 薪邪褏芯写懈屑褋褟?</FONT> <FONT COLOR=#999999>21</FONT> ac_url = abs_url[abs_url.find('<FONT color=#00aa00>http://</FONT>'):abs_url.find('<FONT color=#00aa00>.ru</FONT>')] <FONT COLOR=#999999>22</FONT> <FONT COLOR=#999999>23</FONT> <FONT color=#5555aa># 褍斜褜械屑 胁褋械 泻芯屑屑械薪褌邪褉懈懈</FONT> <FONT COLOR=#999999>24</FONT> <B><FONT color=Brown>while</FONT></B> property.find('<FONT color=#00aa00>&lt;!--</FONT>') != -<FONT color=Magenta>1</FONT>: <FONT COLOR=#999999>25</FONT> comms = property[property.find('<FONT color=#00aa00>&lt;!--</FONT>'):property.find('<FONT color=#00aa00>--&gt;</FONT>')+<FONT color=Magenta>3</FONT>] <FONT COLOR=#999999>26</FONT> property = property.replace(comms,'') <FONT COLOR=#999999>27</FONT> <FONT COLOR=#999999>28</FONT> <FONT color=#5555aa># 胁褘褉械卸械屑 胁褋械 褋褋褘谢泻懈 胁 屑邪褋褋懈胁 dirty_links</FONT> <FONT COLOR=#999999>29</FONT> <B><FONT color=Brown>while</FONT></B> property.find('<FONT color=#00aa00>&lt;a</FONT>') != -<FONT color=Magenta>1</FONT>: <FONT COLOR=#999999>30</FONT> link = property[property.find('<FONT color=#00aa00>&lt;a</FONT>'):property.find('<FONT color=#00aa00>&lt;/a&gt;</FONT>')+<FONT color=Magenta>4</FONT>] <FONT COLOR=#999999>31</FONT> dirty_links.append(link) <FONT COLOR=#999999>32</FONT> property = property.replace(link,'') <FONT COLOR=#999999>33</FONT> <FONT COLOR=#999999>34</FONT> <B><FONT color=Brown>while</FONT></B> property.find('<FONT color=#00aa00>&lt;A</FONT>') != -<FONT color=Magenta>1</FONT>: <FONT COLOR=#999999>35</FONT> link = property[property.find('<FONT color=#00aa00>&lt;A</FONT>'):property.find('<FONT color=#00aa00>&lt;/A&gt;</FONT>')+<FONT color=Magenta>4</FONT>] <FONT COLOR=#999999>36</FONT> dirty_links.append(link) <FONT COLOR=#999999>37</FONT> property = property.replace(link,'') <FONT COLOR=#999999>38</FONT> <FONT COLOR=#999999>39</FONT> <FONT color=#5555aa># 胁芯 胁褋械褏 芯斜薪邪褉褍卸械薪薪褘褏 褋褋褘谢泻邪褏 蟹邪屑械薪懈屑 [url] 薪邪 邪写褉械褋 褋邪泄褌邪 懈 &quot;芯褔懈褖械薪薪褘械&quot; 褋褋褘谢泻懈 褋芯褏褉邪薪懈屑 胁 links</FONT> <FONT COLOR=#999999>40</FONT> <B><FONT color=Brown>for</FONT></B> link <B><FONT color=Brown>in</FONT></B> dirty_links: <FONT COLOR=#999999>41</FONT> links.append(link.replace('<FONT color=#00aa00>[url]</FONT>', ac_url + '<FONT color=#00aa00>.ru/</FONT>')) <FONT COLOR=#999999>42</FONT> <FONT COLOR=#999999>43</FONT> <FONT color=#5555aa># 写芯斜邪胁懈屑 褋褋褘谢泻褍 写谢褟 懈褋锌褉邪胁谢械薪懈褟 芯斜褜械泻褌邪</FONT> <FONT COLOR=#999999>44</FONT> links.append('<FONT color=#00aa00>&lt;a href=&quot;</FONT>'+ abs_url + '<FONT color=#00aa00>/admin&quot;&gt;懈褋锌褉邪胁懈褌褜&lt;/a&gt;</FONT>') <FONT COLOR=#999999>45</FONT> <FONT COLOR=#999999>46</FONT> <FONT color=#5555aa># 胁芯蟹胁褉邪褌懈屑 屑邪褋褋懈胁 褋褋褘谢芯泻</FONT> <FONT COLOR=#999999>47</FONT> <B><FONT color=Brown>return</FONT></B> links <FONT COLOR=#999999>48</FONT> <FONT COLOR=#999999>49</FONT> <B><FONT color=Brown>else</FONT></B> : <B><FONT color=Brown>return</FONT></B> [] <FONT COLOR=#999999>50</FONT> <FONT COLOR=#999999>51</FONT> <B><FONT color=Brown>def</FONT></B> <FONT color=DarkCyan>recursive_traverse</FONT>(parent): <FONT COLOR=#999999>52</FONT> <FONT COLOR=#999999>53</FONT> <FONT color=#5555aa># 胁芯褌 芯斜褗褟胁谢褟褞 懈褏 谐谢芯斜邪谢褜薪褘屑懈</FONT> <FONT COLOR=#999999>54</FONT> <B><FONT color=Brown>global</FONT></B> lnks, watchdog, level <FONT COLOR=#999999>55</FONT> <FONT COLOR=#999999>56</FONT> items = parent.objectItems(filter_for_meta_types) <FONT COLOR=#999999>57</FONT> <FONT COLOR=#999999>58</FONT> <B><FONT color=Brown>for</FONT></B> item <B><FONT color=Brown>in</FONT></B> items: <FONT COLOR=#999999>59</FONT> <FONT COLOR=#999999>60</FONT> itemname = item[<FONT color=Magenta>0</FONT>] <FONT COLOR=#999999>61</FONT> item = item[<FONT color=Magenta>1</FONT>] <FONT COLOR=#999999>62</FONT> <FONT COLOR=#999999>63</FONT> <B><FONT color=Brown>if</FONT></B> item.visible=='<FONT color=#00aa00>on</FONT>' : <FONT COLOR=#999999>64</FONT> <FONT COLOR=#999999>65</FONT> <FONT color=#5555aa>#lnks += parse_property(item.shortstory, item.absolute_url())</FONT> <FONT COLOR=#999999>66</FONT> lnks.append(<FONT color=DarkCyan>str</FONT>(item.getId())) <FONT COLOR=#999999>67</FONT> <FONT COLOR=#999999>68</FONT> <B><FONT color=Brown>if</FONT></B> item.meta_type == '<FONT color=#00aa00>ZMetodContentFolder</FONT>': <FONT COLOR=#999999>69</FONT> watchdog += <FONT color=Magenta>1</FONT> <FONT COLOR=#999999>70</FONT> <B><FONT color=Brown>if</FONT></B> watchdog &gt; items_to_show: <B><FONT color=Brown>break</FONT></B> <FONT COLOR=#999999>71</FONT> level += <FONT color=Magenta>1</FONT> <FONT COLOR=#999999>72</FONT> lnks += recursive_traverse(parent[itemname]) <FONT COLOR=#999999>73</FONT> <FONT COLOR=#999999>74</FONT> <B><FONT color=Brown>return</FONT></B> lnks <FONT COLOR=#999999>75</FONT> <FONT COLOR=#999999>76</FONT> lnks += recursive_traverse(context) <FONT COLOR=#999999>77</FONT> <FONT COLOR=#999999>78</FONT> <B><FONT color=Brown>return</FONT></B> lnks <FONT COLOR=#999999>79</FONT> <FONT COLOR=#999999>80</FONT> <FONT color=#5555aa>#############################################################################################################</FONT> <FONT COLOR=#999999>81</FONT> </pre> </p> </span></td></tr></table></td></tr></table> <br> <hr noshade class="gr" size="1" align="left" width="70%"> <span class="t">胁褋械 褋芯芯斜褖械薪懈褟 胁械褌胁懈:</span><br> <font face="Verdana, Helvetica, Arial"> <ul compact > <li class="t"><span style="background-color: RGBA(249, 201, 16, 0.3);"><font color="gray" size="-2">901</font>&nbsp;<span class="t">袙芯锌褉芯褋 芯 谐谢芯斜邪谢褜薪褘褏 懈 谢芯泻邪谢薪褘褏 锌械褉械屑械薪薪褘褏 胁 褎褍薪泻褑懈褟褏.</span>&nbsp;&nbsp;<b><font color="#222222">xman</font></b>&nbsp;&nbsp;<font color="#808080" size="-2"><font color="#aaaaaa">|</font> 10-Jul-2006, 10:33 <font color="#aaaaaa">|</font></font> <font color="#405396" size="-2">锌褉芯褋屑芯褌褉芯胁:&nbsp;7265</font>&nbsp;&nbsp;&nbsp;<span class="t"><font color="#DD0000"> &#8656; &#9668;</font></span></span> </li> </ul> </font> <hr noshade class="gr" size="1" align="left" width="70%"> <H2 class="tfn"><a href="/forumz/anafo.py?info=right" ><font size=+1>袨 褌芯屑 泻邪泻 (锌褉邪胁懈谢褜薪芯) 薪邪锌懈褋邪褌褜 褋芯芯斜褖械薪懈械...</font></a></H2> <h2>袧邪锌懈褋邪褌褜 芯褌胁械褌</h2> <form action="/forumz/anafo.py" target="_self" METHOD="POST" > <table width="20%" align="center" cellpadding="0" cellspacing="0" border="0"> <tr><td bgcolor="777777"> <table width="100%" cellpadding="1" cellspacing="0" align="center" border="0"> <tr bgcolor="#c1c1c1"><td align="right" class="t"><font color=red><b>*</b></font> <b>袧懈泻</b>&nbsp;&nbsp;</td><td> <input type="text" name="nik" value="" class = "ffie" ></td><td colspan="2">&nbsp;</td></tr> <tr bgcolor="#c1c1c1"><td align="right" class="t alR">E-mail&nbsp;&nbsp;</td><td> <input type="text" name="email" value="" class = "ffie" ></td><td align="right" class="t alR">袩芯谢褍褔邪褌褜 芯褌胁械褌褘&nbsp;&nbsp;</td><td> <input type="checkbox" name="emailst" value="ITSELF" class = "ffie decUn" checked></td></tr> <tr bgcolor="#c1c1c1"><td align="right" class="t alR">小褋褘谢泻邪 (URL)&nbsp;&nbsp;</td><td> <input type="text" name="urlurl" value="" class = "ffie decUn" ></td><td align="right" class="t alR" nowrap>屑懈薪. 褍褉芯胁械薪褜 褔褌械薪懈褟&nbsp;&nbsp;</td><td> <select name=accessread size=1 class = "ffiesel" > <option value="10" >Administrator</option> <option value="20" >Moderator</option> <option value="30" >CoModerator</option> <option value="40" >Exclusive Privileges</option> <option value="50" >Privileged</option> <option value="60" >Registred</option> <option value="100" SELECTED>Anonymous</option> <option value="120" >Least privileged</option> </select></td></tr> <tr bgcolor="#c1c1c1"><td align="right" class="t alR" nowrap>袣邪褉褌懈薪泻邪 (URL)&nbsp;&nbsp;</td><td> <input type="text" name="urlimg" value="" class = "ffie" ></td><td align="right" class="t alR" nowrap>屑懈薪. 褍褉芯胁械薪褜 芯褌胁械褌邪&nbsp;&nbsp;</td><td> <select name=accessreply size=1 class = "ffiesel" > <option value="10" >Administrator</option> <option value="20" >Moderator</option> <option value="30" >CoModerator</option> <option value="40" >Exclusive Privileges</option> <option value="50" >Privileged</option> <option value="60" SELECTED>Registred</option> <option value="100" >Anonymous</option> <option value="120" >Least privileged</option> </select></td></tr> <tr bgcolor="#c1c1c1"><td align="right" class="t alR" nowrap><font color=red><b>*</b></font> <b>孝械屑邪 芯褌胁械褌邪</b>&nbsp;&nbsp;</td><td colspan="3"> <input type="text" name="subject" value="袙芯锌褉芯褋 芯 谐谢芯斜邪谢褜薪褘褏 懈 谢芯泻邪谢薪褘褏 锌械褉械屑械薪薪褘褏 胁 褎褍薪泻褑懈褟褏." class = "ffie likeA" size="65" maxlength="80"></td></tr> <tr bgcolor="#c1c1c1"><td colspan="4" class="t">孝械泻褋褌 褋芯芯斜褖械薪懈褟 (屑芯卸薪芯 薪械 蟹邪锌芯谢薪褟褌褜)</td></tr> <tr bgcolor="#c1c1c1"><td colspan="4"><textarea class="ffie" name="rmessage" cols="80" rows="11" ></textarea></td></tr> <tr bgcolor="#c1c1c1"><td colspan="4"> <input type="submit" name="" value="袨褌锌褉邪胁懈褌褜 芯褌胁械褌" class = "ffie fbut" ></td></tr></table></td></tr></table> <input type="hidden" name="forumid" value="4" > <input type="hidden" name="userid" value="-1" > <input type="hidden" name="delo" value="creatingReply" > <input type="hidden" name="messid" value="901" ></form> <hr noshade class="gr" size="1" align="left" width="70%"> </blockquote> <blockquote> <span class="t"><i>袙褉械屑褟 谐械薪械褉邪褑懈懈 褋褌褉邪薪懈褑褘 胁 褋械泻褍薪写邪褏: </i><b> 0.224</b></span> </blockquote> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10