-
Testing memoized methods
Read more »: Testing memoized methodsFor a recent Plone project we needed to write unit tests for methods that were using plone.memoize for caching return values. With a standard Plone’s PloneTestCase I got the following error: Error in test test_main_image (niteoweb.elcond.tests.test_stol.TestContent) Traceback (most recent call last): File “/Users/zupo/work/python/parts/opt/lib/python2.6/unittest.py”, line 279, in run testMethod() File “/Users/zupo/work/niteoweb.elcond/src/niteoweb/elcond/tests/test_stol.py”, line 75, in test_main_image image…
-
Order of ‘parts’ when compiling lxml
Read more »: Order of ‘parts’ when compiling lxmlCentOS’s repos don’t have a working version of libxslt (you need 1.1.20, repos have 1.1.17) so we need to statically compile it for collective.xdv to work. But, there is a catch! You need to be careful about how you order your parts in your buildout.cfg. For examle, the following buildout.cfg works perfectly fine, it downloads…
-
Upgrade Cyn.in 2.1 to 3.1.3
Read more »: Upgrade Cyn.in 2.1 to 3.1.3We started using Cyn.in for internal documentation repository about 2 years ago. We are a small team of developers and we don’t use all of it’s features, but we still do use it daily and have grown to love it. It’s just great to have a place to store all little bits and pieces of…
-
Secure IM for internal communication
Read more »: Secure IM for internal communicationDuring this summer we finally got some time to review our internal working processes. One thing clearly missing was a solid IM solution for quick communication when working remotely. After trying out several different approaches we decided to use the old and well-proven one: IRC. Very important feature we were looking for was secure communication.…
-
Click2Sell integration for Plone
Read more »: Click2Sell integration for PloneAfter integrating Clickbank with Plone last month we decided we also need integration with Click2Sell affiliate marketing network. A new Plone add-on was born: niteoweb.click2sell. The add-on has the same feature-set as it’s sister add-on niteoweb.clickbank, enabling you to have paid membership on your Plone site. It’s very simple to install and use. Project page:…
-
Compiling lxml on 64bit CentOS
Read more »: Compiling lxml on 64bit CentOSA few days ago I encountered a problem while deploying Plone 4 with collective.xdv to a CentOS cloud instance. Since CentOS’ repos were a bit out of date I needed to statically compile lxml and it’s dependencies with z3c.recipe.staticlxml. Here’s what you need to add to your buildout.cfg to do so: parts += lxml eggs…
-
DD-WRT + Tunnelblick = OpenVPN
Read more »: DD-WRT + Tunnelblick = OpenVPNDebating about VPNs on the Sauna Sprint, sprinters convinced me that we should use VPN for remote access to our internal services in our office. And for an extra layer of security when using public networks. So here it goes. Certificates I didn’t want to install openssl and openvpn on my Macbook just so I…
-
Back from Helsinki
Read more »: Back from HelsinkiI’m back from another legendary sprint: Plone Sauna Sprint in Helsinki. No need to say anything more, here are the reports: Plone Sauna Sprint mid-term report Plone Sauna Sprint final report Next on schedule: Plone Conference in Bristol.
-
Clickbank integration for Plone
Read more »: Clickbank integration for PloneSo you want paid membership on your Plone site? Look no further, we present to you niteoweb.clickbank. It’s a Plone 4 add-on that integrates ClickBank digital products retailer system with Plone to enable paid memberships on your Plone site. It’s very simple to install and use. Project page: http://pypi.python.org/pypi/niteoweb.clickbank Documentation: http://packages.python.org/niteoweb.clickbank Code: http://svn.plone.org/svn/collective/niteoweb.clickbank