general2007-04-28Write nicer Python codeStarting from the basic facts:
It exists a few very interesting softwares that can help you. command Pyflakes :call Pyflakes() command Pylint :call Pylint()
autocmd BufWrite *.{py} :call Pyflakes()2006-10-24Watch my new commit...
Filed Under:
Get notification as soon as somebody commit is really important! A quick note to set it up with emails... We will make this in 4 steps. Step 1: Installing pysvnCheck that you don't have it yet:$ python2.4If you get something else (e.g ImportError: No module named svn) you will need to do this step: You will need the python library to access subversion: pysvn. Note that header of the libsvn are required [should come with your subversion install]! Go to http://pysvn.tigris.org/project_downloads.html and fetch last tarball (MacOSX version also available). Note that pysvn is noted there as "Extension". I fetched last stable version: http://pysvn.tigris.org/files/documents/1233/34994/pysvn-1.5.0.tar.gz $ tar xvzf pysvn-1.5.0.tar.gzNow try again and you should get something like: $ python2.4 Step 2: Installing SVNMailerGo to http://storage.perlig.de/svnmailer/ and fetch last tarball (stable actual one is: http://storage.perlig.de/svnmailer/svnmailer-1.0.8.tar.gz) Fallow these steps: $ tar xvzf svnmailer-1.0.8.tar.gz You have now a brand new svnmailer installed. Check it with: $ ls -l /usr/bin/svnmailer 3) Configure your repository to use svnmailerWe created a svn repository: $ svnadmin create /var/svn/repos1So we have a repository on our local filesystem in /var/svn/repos1 Go into the hooks directory: $ cd /var/svn/repos1/hooksAdd/edit post-commit file. And add the fallowing lines: #!/bin/shChange execute permission on post-commit chmod 755 post-commitIt's time to configure SVNMailer 4) Configure SVNMailerEdit/Add the file /etc/svn-mailer.conf And add the fallowing lines [you might edit few things...]. Imagine that I have mymodule in my repository (so that i can do svn co file:///var/svn/repos1/mymodule) [general]Here it is... Try to commit and you should get email... If you want to traceback error, go to edit /var/svn/repos1/hooks/post-commit and for example log to a file by changing the line /usr/bin/svn-mailer commit "$REPOS" "$REV" /etc/svn-mailer.confIn /usr/bin/svn-mailer commit "$REPOS" "$REV" /etc/svn-mailer.conf 2> 1> /tmp/svnmailer.logHope this helps ... 2006-04-05Blogging...
Filed Under:
What about me blogging? Having a blog seems to be a really new fashion among differents communities (young people, developpeurs, scientists, artists ...). Blog is a short form for weblog in fact, principe is simple: display at the top the newest written article.
Most of my stuffs will be about personal and professional expericences, General will be my personnal thoughts and the others will be topic oriented. As Zope and Plone are part of my professional fun for the moment these are the actual topics. Don't know if I will be enough talkative to express what I see, feel but it's a good exercice for me. Taking also my place into this so big world... My previous thoughts about blogging were very negative, thinking that most are unuseful and never read. They were like books inside a cellar that nobody read. Things are changing as you see. While working on a zope 3 stuff, I was yesterday thinking "hey I should put that somewhere on a page..." and the weblog idea came up again. Don't want to tell myself "you should go there every night and at least write something", something that I will do during few days and stop, I know me. So let's say I will write here when i feel so without any dates constraints. Spelling, grammar... I am a native french speaker that should take more english lessons. I don't want to write here in french as english is thecommon language in the zope/plone community. I hope people don't mind too much about that ? |