Posts

Functional/Acceptance Testing Using guitest

Introdution guitest (http://gintas.pov.lt/guitest) by Gintautas Miliauskas is a helper library for unit-testing GUI applications written in Python. In this article I will demonstrate how to test a PyGTK application. This article assume you are familiar with ``unittest`` module and unit testing. Installation The latest version 0.3.1 released on 2005-11-26 is available from here: http://gintas.pov.lt/guitest/guitest-0.3.1.tar.gz . Invoke `python setup.py install` to install the library into the local python's site-packages directory. Alternatively you may simply copy the guitest subdirectory to your project's main source directory. Getting Started Consider this example :: import gtk class HelloWorld(object): def __init__(self): self.window = gtk.Window() self.button = gtk.Button("Hello") self.window.add(self.button) self.window.show_all() def main(self): gtk.main() if __name__ == '__main__':...

What to write?!

For the last one month I didn't wrote anything here. I have always wondered how some peoples write long matters in journal/blog. Is it just like composing reply to a technical mail. Do they feel the pain of creativity. I usually read python, gnome and ubuntu planets. I like new ideas in programming, technology also I read humor and philosophy. I think most of the planets didn't restrict topics. Some of them writes highly technical stuff only, some writes about life some writes what's happening everywhere else. Well, it is something like this, a type is declared "int me1;", "float me2;". Yes some people sometimes upcast or downcast their values :) And there are few dynamically typed journals/blogs and I like those very much, the first example I can point is Guido's blog (http://www.artima.com/weblogs/index.jsp?blogger=guido). So a "Pythonic blog is always dynamically typed" :) What is your favorite dynamically typed blog/journal?

Characters per line for technical documentations

I was wondering what will be the best choice for the number of characters per line for text based technical documentations. Well, better to reduce the scope of question. Ok, let it be a documentation for Python package/product written using ReStructuredText. My choice is now 80 characters. Any reason to reduce that or not use a character limit at all? Python PEPs are using 72 characters, is there any style recommendation from Python coding or other standards? I started thinking about this from https://launchpad.net/products/bzr/+bug/39657

Fortnightly Zope Newsletter

I think Michael Haubenwallner has silently announced a "Fortnightly Zope Newsletter" This is available from here: http://blog.planetzope.org/ This is really content rich and great looking! Kudos to all those who worked behind this.

Creating a hello world is really easy in Zope 3!

Yes! compared to any other Python/Non-Python frameworks, creating a hello world is really easier in Zope 3. See this: http://www.treefernwebservices.co.nz/hello.html http://zissue.berlios.de/z3/hello.swf So Zope 3 can scale down to anything :)

A test post, my first post to planet!

I am Baiju M from Kerala (http://en.wikipedia.org/wiki/Kerala) A relatiely new Python programmer, hmm.. now two years :) I am working for a small company based in Calicut, before one and half years (when I joined here) our main language was VB. Now for almost all projects we are using Python, now we are Python Powerd! . For our GUI apps we are using PyGTK and for web we decided to use Zope3 (not yet started though). I hope this is enough for now.

ZCML is good for Zope3!

I am still feeling dfficulty to unerstand what's happening behind ZCML (Zope Configuration Markup Language). But still I like it, because it is not Python :) Python is my favourite language, so I cann't say what else I won't be doing in my configuration. Jeff Shell's suggestions in this long mail is great! http://mail.zope.org/pipermail/zope3-users/2005-December/001732.html He also warns Rails-ish frameworks in this mail and his recent blogs: http://griddlenoise.blogspot.com/