10/15/2006
A second blog
Just to let you know: I have decided to split this blog in two distinct blogs for more clarity, ecm, java and cps related things will remain here, while python related things will now be written in a secondary blog: Carpet Python.
Posted by Tarek Ziadé @ 10/15/2006 07:04 PM. - Categories: python, zope, zope3 -  0 comments
07/04/2006
Europython 2006, Slides
I am here at Europython, and will enjoying a great session that compares web frameworks (Zope 3, Django, Pylons, etc..), I am dropping here the slides from my presentations, done yesterday and today.

At the menu:

  • zope-cookbook.org: the slides presents the website, and moreover good pratices for documenting softwares in an agile way
  • CPSBayes: a bayesian classifier implemented for CPSCourier
  • Ajax, state of the art: a resumé of Ajax usage and good practices, and how developers and designers feel about this technology


(attached files below)
Posted by Tarek Ziadé @ 07/04/2006 01:00 PM. - Categories: AJAX, coding, cps, nuxeo, python, web, zope, zope3 -  0 comments
06/24/2006
Try out CPSBayes, the multipurpose naive bayesian classifier for CPS
CPSBayes is a naive bayesian classifier, that uses the same kind of algorithms than software like SpamAssassin. Its main use case is to categorize incoming mails in CPSCourier, a complete solution for mail and notes managment.

The tool stores data in the ZODB or in any kind of SQL Database, using SQLObject connector.

Categorization can apply to a lot of other use cases as well, and I have coded a small product called CPSBayesExample that shows how simple it is to set and use CPSBayes over a portal.

The product provides a textarea where you can type some text, and show some pictures and categories that are guessed by CPSBayes, with the text. The page is dynamically updated through Ajax, with a simple keystroke.

The categories can be trained as well so you can make it learn new patterns.

This simple demo shows how CPSBayes could be used to do automatic metadata filling with a very few lines of code.

To get it, checkout the code from our subversion:

  # svn co https://svn.nuxeo.org/pub/CPS3/examples/CPSBayesExample/trunk CPSBayesExample

And read the README.txt file


Posted by Tarek Ziadé @ 06/24/2006 01:34 PM. - Categories: AJAX, cps, nuxeo, python, zope, zope3 -  0 comments
06/06/2006
Europython coming up !
Like Julien has started to announce, we are going to be present at Europython this year, and I am really excited to be part of it.

I will present three topics:

  • CPSBayes: a bayesian classifier of Zope ( abstract)
  • Ajax, state of the art: a presentation about Ajax, Javascript, that will mainly focus on agile development techniques with javascript, and how it can be integrated in a Zope project continuous integration. ( abstract)
  • zope-cookbook.org: a presentation on a personal project I am doing to create a cookbook for Zope 3. The talk focuses on the project agility obtained through doctests and efficient writing techniques. This is quite important to document code bases that still moves a lot like Zope 3 ( abstract)

Julien's talk will be very interesting to follow as well (trust me, NXLucene really rocks).

July will be Python fest, since right after EP, the AFPY user group will be part of the Libre Software Meeting in Nancy (FRA) to cover Python in a local meeting that will be juicy as well.


Posted by Tarek Ziadé @ 06/06/2006 12:31 PM. - Categories: AJAX, cps, nuxeo, python, zope, zope311 comments
05/03/2006
JSDoc, a JavaDoc-like for Javascript
I was looking for something similar to docstrings in Python, to make an API static html documentation for nuxeo.javascript.

JSDoc seems to fill the bill, and generates an API documentation similar to what I would get with JavaDoc or Epydoc.

See an example here.

It is also used by tools like JSEclipse
Posted by Tarek Ziadé @ 05/03/2006 04:04 PM. - Categories: AJAX, eclipse12 comments
04/29/2006
Zope community portraits, meet the guys
I have started to collect portraits from Zope community people on this page. Meet them !
Posted by Tarek Ziadé @ 04/29/2006 03:15 PM. - Categories: zope, zope3 -  0 comments
04/25/2006
CPS4/Z3ECM sprint, Final wrapup

The week went very fast, but was very productive indeed, here's a quick wrapup of sprinters work:

Florent & Dario: The boys managed to write a parser to leverage the schemas that exists in JCR into Python structures. They create Zope 3 schemas, rather than CPSSchemas. Everything will be hooked through JackRabbit, so JCR content will become a good citizen for beeing used within Zope 3. They've also created a hierarchy of interfaces for this in Zope 3. All the work is here: nuxeo.jcr

Michael & Lennart: They struggled with Zope 2 & 3 publishers to continue Sidnei's work and came up with an advanced prototype. And, as this was one of the concern, they benched a bit twisted behavior in Zope 2, using funkload and it seem not too slow compared to zserver. The work is on a branch on svn.zope.org.

Jean-Marc: That guy knows everything about Zope 2 and Zope 3 branches now ;). Philipp helped a lot through IRC (thanks) and Jean Marc came up with... wait a minute... a blog entry that resumes it all.

Tarek: After a first release of CPSResourceLibrary, and nuxeo.javascript, I focused on doing tests automation in Javascript. OK that might not be very easy to set up on a buildbot, but on my laptop, it's going to be just perfect to TDD js code in zope.

Joachim: He played with Jean-Marc Cpsskins v3 concepts, by creating some Ajax Portlets in CPS 3.4, relying on CPSResourceLibrary, and nuxeo.javascript. Watch it in CPSAjaxPortlets, it's coming soon babe !


Posted by Tarek Ziadé @ 04/25/2006 12:23 AM. - Categories: AJAX, cps, ecm, python, sprint, zope, zope31 comments
04/21/2006
CPS4/Z3ECM sprint, day 4, Javascript unit testing automation
For the last day of sprint, I wanted to set up a Javascript unit test automation,
in order to be able to run all Js unitests like Python tests are through buildbot.

Scriptaculous unit testing framework provides a way to do it: the tests results are sent to a url through an Ajax call.

More infos on unit testing javascript here: Scriptaculous Unit testing

Therefore, I have coded:

  • a small python script that launches html unit tests with mozilla-firefox, then close it
  • a small python http server that retrieves results sent by the javascript

Some caveats to correct before its useable in a Zope project:

  • Right now the results sent by the unit test is just a simple 'SUCESS' or 'ERROR' string, and I need to change it so I can get the full error log when they are errors, like the one displayed in the browser, and convert it to Python assertions.
  • The ajax call to send results is done from the filesystem html to the localhost. So a trick is needed to make cross-domain ajax posts. The python http server could be used to serve the html tests file as well to avoid this problem, so I would have a complete js test server.
  • It needs to work on IE as well, maybe through Wine

So to the question "Can I do TDD in JS as smoothly as in Python ?", I'd answer: "Yes, it's coming up :)"

You can check the work here: nuxeo.javascript cps tests

I might try to release the js test runner in a clean package sometimes, as it might be reused.

This entry contains a screencast, you should check it in a browser

Posted by Tarek Ziadé @ 04/21/2006 04:13 PM. - Categories: AJAX, cps, python, sprint, web, zope3 -  0 comments
04/12/2006
Python event in "Le Monde en Tique" book store in Paris the 13th May
We'll continue our Python evangelism work with Stéfane the 13th May, at le Monde en Tique, a book store in Paris.

We'll meet people from 3 to 6 pm, around the "Programmation Python" book to convince more developers to switch to Python and join the community ;)

Web site: http://lmet.com

Address:  6 rue Maître Albert - 75005 PARIS - FRANCE

Access map: Mappy

Tube, RER:
Ligne 10 : Station Maubert - Mutualité
Rer B : Saint Michel - Notre Dame, Sortie : Notre-Dame
Rer C : Cluny - La  Sorbonne, Sortie : Boulevard Saint-Michel /
Boulevard Saint-Germain


Posted by Tarek Ziadé @ 04/12/2006 02:23 PM. - Categories: python -  0 comments
04/09/2006
zope-cookbook.org, an open Zope 3 cookbook launched !
zope-cookbook.org is a website that starts to gather recipes and tutorials for Zope 3.

The cookbook aims to provide a complete sight of Zope 3 through various recipes written by project participants, both in french and english.

Recipes are made available on the website when they are tagged as 'readable' in all languages.

The code examples in the recipes are run for real by the zope tests tools, so they are up to date and should be therefore with a bit less errors.

If you are a writer, a translator, a z3 developer etc.. please join the zope-cookbook.org project, to enhance its quality and build a good documentation source.

Posted by Tarek Ziadé @ 04/09/2006 09:12 PM. - Categories: python, zope, zope31 comments
Last modified: 01/25/2005 06:15 PM

Nuxeo Bloggers: Log in!
Nuxeo - Indesko - Nuxeo 5 Project
All content is copyrighted by their author.
CPSSkins is Copyright © 2003-2006 by Jean-Marc Orliaguet. | CPS is Copyright © 2002-2006 by Nuxeo SAS.