Archive for the ‘Open source’ Category

Inventions évidentes made in USA

Friday, August 25th, 2006

C’est peut-être aux USA que se prépare l’avenir du droit de la propriété intellectuelle pour l’Europe. C’est en tout cas ce que me fait croire l’adoption par la France de la loi DADVSI: j’ai tendance à y voir l’efficacité des lobbies des multinationales de haute technologie, principalement américaines, qui cherchent à freiner l’innovation de leurs concurrents pour prolonger la durée de vie de leurs propres vaches à lait technologiques (c’est en partie à ça que servent les brevets: ils ressemblent alors à des mines anti-innovation créées par des inventeurs). Notez que j’essaie de ne pas non plus cracher dans la soupe: je bosse pour l’une de ces boîtes et je suis notamment payé pour créer des brevets…

Ceci dit, il se passe actuellement Outre-Atlantique un truc intéressant: la plus haute juridiction des USA (la cour suprême) est poussée à définir ce que c’est qu’une invention “évidente”. En effet, pour qu’une invention puisse faire l’objet d’un brevet, il faut qu’elle apporte une véritable nouveauté et qu’il ne s’agisse pas d’une exploitation “évidente” d’une technique déjà connue. Or, aujourd’hui, les magistrats américains n’ont pas de référence claire dans leur droit pour faire la différence entre une idée “évidente” (et qui ne mérite donc pas d’en réserver le monopole d’exploitation à son inventeur par un brevet) et une idée qui ne l’est pas. Morale de l’histoire, les offices de brevets croulent sous des demandes de brevets concernant des inventions qui n’en sont pas et, faute de savoir leur dire non, leur octroient pourtant des brevets. Conséquence: des sociétés fantômes (les méchants “trolls”) sont créées par des faux inventeurs qui obtiennent ainsi des brevets pour des “inventions évidentes” et menacent ensuite d’autres inventeurs de leur faire de coûteux procès si ils ne leur versent pas de l’argent. Une forme de racket à grande échelle sous couvert de protection des idées par les brevets, qui commence à faire grincer pas mal de dents, y compris des grosses multinationales qui en ont un peu marre d’avoir à se défendre contre ces hordes de trulls hurlants. C’est peut-être ce qui suffira à convaincre la Supreme Court de préciser les critères qui permettent de déterminer ce qui distingue une invention évidente d’une invention méritant brevet.

Mais derrière cette bagarre se profile aussi un phénomène intéressant concernant les innovateurs open source. En effet, ceux-ci sont au premier rang des victimes des trolls: comment un innovateur open source qui contribue à titre individuel à un projet libre peut-il se défendre contre un troll armé d’une massue d’avocat et qui le menace de procès interminables et coûteux? C’est pourquoi l’ Electronic Frontier Foundation monte actuellement au créneau et appelle la Cour Suprême à empêcher le massacre. L’argumentation employée me semble pleine de promesses pour l’avenir du droit de la propriété intellectuelle en Europe: l’EFF rappelle que les logiciels libres constituent un bien commun informationnel qui doit être protégé par les Etats au nom de l’intérêt public. La notion de bien commun informationnel est très bien développée et défendue par des intellectuels français tels que Philippe Aigrain. Espérons que toutes ces bonnes idées seront entendus par les magistrats américains et que, par contamination, le droit Européen et Français suivront.

WikiCalc: Web 2.0 spreadsheets wikified

Wednesday, July 26th, 2006

WikiCalc is a nice piece of GPLed software that pusblishes wiki pages that are structured like Excel spreadsheets are: one can view and edit tables, modify calculation formulas in cells, manage their formatting through the web browser, etc. It brings to spreadsheets the inherent advantages of many wikis: ease of use for Web publications, ease of modification, revisions track for undoing unwanted changes by other users, RSS views on recent changes made to the page. It brings to wikis the inherent advantages of spreadsheets: live calculations, nice formatting, compliance with corporate way of thinking and managing things (will we see a WikiSlides with bulletpoints and animations in some future?). More than this, WikiCalc lets spreadsheets grab input data from external web sites and do live calculations from it: some formulas generate HTTP requests to web services in order to retrieve the latest value for a stock quote, weather forecasts, and so on. Last but not least, the flexible architecture of WikiCalc allows an offline use still via the user’s browser and a synchronization mechanism will let the online version get updated once the connection is restored.

A nice 10 min long WikiCalc screencast with audio is available here.

In a former life, I was managing a team of web project managers in a multinational industrial corporation. As my boss wanted to get simple-to-update weekly/monthly status report about every project, we had tried using a wiki page per project in order to publish and update those reports. It was tedious and not nicely formatted for a corporate environment. I imagine that a nice immediate use of WikiCalc would be to let small project teams update project status reports on an intranet, including nicely formatted timelines and budget indicators. It would still maintain the update effort at a minimal and convenient level and would preserve the wiki flexibility of linking to the project documentation and resources.

We knew structured wiki pages for managing forms or category schemes. WikiCalc introduces spreadsheet structures while preserving the open and unstructured spirit of wikis. Next steps for future wikis would be to allow semantic structures to be managed the wiki-way, like in some early semantic wiki prototypes. [update: see Danny Ayers blog entries on how WikiCalc could relate to the Semantic Web vision]

Open innovation

Monday, July 24th, 2006

Here are two interesting CNet articles about :

Le modèle open source

Wednesday, July 12th, 2006

Voici quelques articles de référence pour qui veut comprendre comment les principes de fonctionnement des communautés open source.

Internet Actu fait le point sur le “crowd-sourcing”

Thursday, July 6th, 2006

Moi, j’avais tendance à appeler ça l’open sourcing: le fait de déléguer des tâches à une communauté ouverte de contributeurs, dans l’esprit de la wikipedia ou du cliquage de cratères pour la NASA. Le terme plus général qui s’impose semble maintenant être le “crowd-sourcing”, notamment pour englober les cas où le résultat fourni par la communauté n’est pas partagé ouvertement mais réservé à l’initiateur/propriétaire du projet. Ainsi, le “crowd-sourcing fermé” (non libre) a-t-il besoin du micropaiement comme source de motivation. Le concept me paraît particulièrement prometteur si l’on adhère à la vision de l’intelligence collective. Mais le modèle libre (open sourcing) me semble supérieur et plus durable que celui qui s’appuie sur le micro-paiement.

Apprendre à taper au clavier avec ses dix doigts

Friday, June 30th, 2006

Vous avez une vocation de dactylo? Des enfants qui découvrent l’informatique? Vous bavez d’envie devant vos potes qui tapent à la vitesse de la lumière sur les systèmes de messagerie instantanée (MSN…)? Ou vous en avez simplement marre de passer pour un flic de deuxième zone qui tape ses PV à deux doigts? Accessoirement, vous souhaitez devenir plus performant dans votre boulot sur clavier? Alors ces deux logiciels sont faits pour vous. Ils vous offrent: des leçons pour apprendre comment taper avec quels doigts, des exercices systématiques de dactylographie et des jeux d’arcade très amusants pour améliorer vos performances. Ces logiciels sont open source (GPL) donc pas de souci de piratage. Ils fonctionnent en français aussi bien qu’en anglais, avec clavier azerty comme avec clavier qwerty (ou autre): il suffit d’aller cocher les bonnes options dans les menus de configuration. Ca tourne sous Windows comme sous linux.

  • TypeFaster, c’est du sérieux et de la performance, les exercices sont personnalisés (le logiciel vous propose de vous entraîner sur les touches que vous avez le plus de mal à bien taper d’après ses observations lors des exercices précédents); il permet notamment de bien s’entraîner également sur les accents et caractères de ponctuation. Il propose même un fonctionnement adapté pour les mal-voyants.
  • TuxType est beaucoup plus amusant et vous propose de vous améliorer en permettant à Tux, le pingouin mascotte de linux, de manger des poissons qui tombent du ciel et de sauver la planète menacée par des pluies de météorites. Avantage: c’est beaucoup plus motivant de taper vite (si on aime les poissons et si on n’aime pas les météorites). Inconvénients: on ne peut pas modifier les listes de mots qui défilent et ceux-ci ne contiennent que des lettres en majuscules ce qui ne suffit pas pour apprendre à taper des mots de tous les jours (il faut savoir jouer de la touche majuscule, des accents et des signes de ponctuation…).

Conclusion: les deux sont assez complémentaires: TypeFaster pour l’apprentissage et l’entraînement sérieux, TuxType pour le jeu et la motivation à devenir toujours plus performants dans sa force de frappe!

Tapez bien!

Fabriquer le futur

Wednesday, April 19th, 2006

La semaine dernière, j’ai entraperçu le futur en train de se fabriquer dans un restau chinois de Massy. En effet, j’ai eu le plaisir de déjeuner avec Eric Seulliet, l’auteur du livre “Fabriquer le Futur”. Nous avons parlé ensemble innovation ascendante, innovation open source, do-it-yourself innovation ou mouvement Pro/Am (pour Professionals/Amateurs), selon le terme que l’on emploie, pour des concepts qui se recouvrent plus ou moins bien. Réflexions en vrac, suite à ce déjeuner:

De la place de la créativité dans l’innovation privée:

En fait, quelques jours après qu’Eric Seulliet a pris contact avec moi, j’ai reçu un mail du service documentaire de notre centre de recherche qui m’informait que son bouquin venait d’arriver chez nous, à la demande d’un collègue. Je vais voir le collègue: “un peu trop loin de mon quotidien pour moi, je cherchais plutôt un bouquin sur ‘comment rendre mes équipes plus créatives’”, me dit-il en me le passant. C’est vrai que le premier chapitre est très académique: la place de l’imaginaire dans l’innovation. Dans le service R&D où je travaille, dans une grosse boîte high-tech privée, la place de l’imaginaire est curieuse: elle est à la fois inexistante officiellement (on n’y fait jamais référence, ça ne fait ni sérieux, ni gérable) et omniprésente (références permanentes à l’idée que l’on se fait de la concurrence, aux success stories de l’Internet et aux images du futur que l’on se renvoie de labo en labo à travers nos projets). L’imaginaire est implicite ici-bas. On osera parle plutôt parler de créativité (en termes de… combien de propositions de brevets as-tu produites cette année?) sans référence explicite à ce qui la sous-tend: imaginaire, croyances…

Pour revenir au bouquin, j’ai bien aimé un témoignage du troisième chapitre, sur lequel a plus particulièrement travaillé Eric Seulliet. Il s’agit de l’interview d’un consultant qui explique que la difficulté pour les entreprises innovantes n’est pas de manager la technologie nouvelle mais de manager la personnalité de ses créatifs. J’ai bien rigolé en lisant ça, en pensant à des réflexions de certains anciens collègues: “tu es parfois ingérable…”, “un peu difficile à contrôler…”. Amusant quand on entend tant d’entreprises clamer qu’elles cherchent des “intrapreneurs” capable de prendre des initiatives. Là aussi, il y a un imaginaire (“les entreprises modernes aiment les créatifs”) et une réalité qui n’est pas forcément en phase (“zut alors, comment bien gérer des preneurs d’initiative?”). Il n’y a qu’à voir les processus de recrutement d’informaticiens: on recrute des clones pour profiter d’armées de clones à faire du SAP et du J2EE, pas des créateurs de technologie et encore moins des créateurs d’innovation. Dur, dur, de ne pas se retrouver dans un “métier à la con” comme me le fait remarquer un contributeur à ce blog.

De l’innovation open source et du développement durable

En déjeunant ensemble, j’ai pu observé un phénomène étrange: les gens qui aiment l’innovation ascendante aiment généralement le développement durable et peut-être vice-versa. C’est une généralité un peu bête mais, en première approximation, qui m’a l’air assez vraie. L’une des raisons pour lesquelles Eric Seulliet m’a rencontré, c’est que je prétends parfois m’intéresser au “développement durable”, à l’”associatif”, à l’”économie sociale”… “tu devrais faire dans l’humanitaire” me dit-on parfois pour me taquiner. Le directeur telecoms de la multinationale industrielle dans laquelle je bossais jusqu’à l’an dernier ne m’avait-il pas dit lui-même “linux, c’est bon pour les lanceurs de pavé des sommets altermondialistes”. Il est parti à la retraite, depuis… Et l’open source envahit l’entreprise.

Plus sérieusement, pourquoi y a-t-il une corrélation entre open source et altruisme? Innovation ascendante et développement durable, c’est le rendez-vous des rêveurs et des utopistes? Ou bien c’est quelque chose qui peut s’ancrer dans la réalité et nourrir des entreprises et des emplois? Pour faire plus sérieux, plus économique et efficace, ne devrait-on pas au moins essayer de gérer prudemment cette corrélation ou moins de rester humble et d’éviter d’en parler trop? Pas mal d’acteurs économiques de l’open source (sociétés de services autour des logiciels libres) prennent leur distance vis-à-vis des idéologies libertaires ou au moins altruistes que semblent véhiculer les communautés open source. Moi-même, j’ai du mal avec le côté nanar (anarchiste) même si je suis très attaché aux valeurs de partage et de don… Alors quoi? un modèle économique peut-il être en soi porteur de valeurs morales? L’éthique et l’économique ça va ensemble? J’aimerais bien répondre oui. Tant qu’on en est au discours et à la théorie, pas de problème. Mais quand on en arrive à se poser la question “comment faire du développement durable à grande échelle (avec du profit et des moyens financiers) avec de l’innovation ascendante?” il est plus dur de trouver des réponses concrètes. Et quand on rêve à convaincre une multinationale de la possibilité de faire du business avec de l’open source et dans une optique d’entreprenariat social ou de développement durable, on retombe facilement dans l’utopie ou la quête chevaleresque…

De l’odeur et du goût du futur

Dans une grosse boîte privée innovante, pour obtenir des budgets de recherche, l’odeur et le goût d’un projet ont leur importance. En effet, pour obtenir un financement spécial, il faut convaincre que le projet présenté a l’odeur de l’argent et le moins possible le goût du risque. Pas assez profitable ou un tout petit trop risqué et ce n’est pas un projet qui sera retenu. Etant donné qu’on ne peut parfois pas faire grand chose aux aspects risques, il faut souvent que “ça pue le fric”. D’où l’intérêt des machines à retransmettre les odeurs à travers l’Internet (cf. France Telecom par exemple): vous branchez le bidule sur votre PC, vous affichez le descriptif d’un bon projet de R&D et, hop, vous sentez une bonne odeur de blé et d’oseille envahir votre bureau… OK. Le problème, c’est que tout ce qui sent le fric n’est pas profitable. Et l’imaginaire des nez des grandes entreprises est empreint de subjectivité: dur d’anticiper le profit. Morale de l’histoire: on ne peut financer que ce qui pue tellement le fric qu’on ne peut plus se boucher les narines. Je caricature pour le plaisir, certes. Mais tout de même, quelle place pour le développement durable dans tout ça? Le credo du développement durable, c’est de dire que le profit sera triple: pas seulement économique mais également environnemental et social. Alors pour favoriser le financement privé de projet teintés D.D., il faudra sans doute d’abord éduquer le nez et l’imaginaire des entreprises. C’est quoi un projet qui pue le triple profit du DD? Vous sauriez anticiper la profitabilité de tels projets? Pas facile…
Quant au financement de l’innovation open source/innovation ascendante, là il me manque encore des clefs et il faut que je finisse de lire le bouquin de Philippe Aigrain, Cause Commune, pour espérer imaginer de bonnes réponses.

Trophées Le Monde Informatique: victoire pour l’open source

Tuesday, April 11th, 2006

Les magazines Le Monde Informatique et CIO viennent de remettre leurs trophées 2006 aux meilleurs projets informatiques. Sur les 9 prix remis:

  • 2 reposent sur des progiciels vendus par des éditeurs classiques: une CRM sur Siebel et Microsoft (Grand Prix, pour la SNCF) et un EDI sur technologie Soget/Bull (Trophée Distribution, Logistique & Transports, pour une communauté portuaire de Guadeloupe)
  • 3 reposent sur des solution spécifiques non open source: un dossier médical partagé réalisé avec SQLI (Prix Spécial Initiative Locale, pour l’ARH Franche Comté), une traçabilité de palette avec technologie RFID (Trophée PME, pour Bénédicta), une carte de contrôle d’accès électronique avec technologies PKI et service de SSO (Trophée Industries et Services, pour le groupe Areva)
  • 4 reposent sur des plates-formes très teintées open source: information aux automobilistes sur technologie LAMP et Flash (Trophée Administrations & Collectivités locales, pour Nantes Métropole), intranet collaboratif sur technologie LAMP (Trophée Associations & Humanitaire, pour l’Association des Paralysés de France), apprentissage chirurgical avec simulation 3D sur technologie LAMP (Trophée Santé, pour l’IRCAD) et portails documentaires sur technologie Zope (Trophée Services Publics, pour le CEA).

Ma lecture très personnelle de ces résultats est la suivante. Les technologies open source sont les technologies les plus célébrées dans le domaine des portails, de la collaboration et de la gestion de contenu Web. Et ceux qui ont le plus de succès dans le domaine sont… les secteurs public et parapublic. Les progiciels vendus par des éditeurs sont les solutions les plus appréciées pour des projets “usine à gaz” (CRM, EDI, …) de grosses entreprises tandis que les architectures sur-mesure sans odeur technologique particulière se disputent le reste du gâteau (sécurité, traçabilité, …).

Et qu’on ne vienne pas me redire que J2EE façon IBM ou BEA, c’est la voie royale de l’intranet !

Sur ce, je vais aller déjeuner avec mes anciens collègues. Ils viennent de me raconter que l’open source a continué à percer depuis mon départ de chez mon ancien employeur (industriel du CAC40) au point que ce sujet est officiellement abordé comme sujet de travail lors des comités informatiques groupe. Ca y est, LAMP s’est taillé une place de choix dans la presse informatique et la mentalité des DSI du CAC40!

Construire son propre téléphone mobile Wifi

Wednesday, March 8th, 2006

Certains s’amusent à construire leur propre téléphone mobile. En Wifi pour s’affranchir de l’opérateur télécom. Ca peut donner ce qu’on appelle de l’open source hardware.

Bookcrossing : le monde est une bibliothèque

Monday, August 8th, 2005

Si vous trouvez un livre dans un lieu public, ne concluez pas trop vite qu’il y a été abandonné. Il se pourrait bien qu’il y ait été libéré (released) par un bookcrosseur généreux. Pour le savoir, vérifiez si, sur la couverture ou dans les premières pages, il ne dispose pas d’un identifiant BCID. Si c’est le cas, alors vous êtes invité à le lire (ou le laisser sur place si il ne vous intéresse pas, bien sûr), à le libérer ailleurs et à laisser un message sur le site du bookcrossing. Avec le bookcrossing, le monde devient une bibliothèque ouverte à tous. Vous êtes vous jamais imaginé la vie d’une goutte d’eau ou d’une pièce de monnaie ? Avec un peu de chance, la vie de vos livres préférés vous sera racontée étape par étape grâce à la traçabilité des BCID. Une nouvelle manière de créer des liens entre lecteurs et de développer des communautés ouvertes de bibliophiles. Et une nouvelle manière d’appliquer la maxime open source : “Release soon, release often”.

Comparator

Sunday, July 24th, 2005

Comparator is a small Plone product I recently hacked for my pleasure. It’s called comparator until it gets a nicer name, if ever. I distribute it here under the GNU General Public License. It allows users to select any existing content type (object class) and to calculate a personnalized comparison of the instances of this class. For example, if you choose to compare “News Items”, then you select the news items properties you want to base your comparison upon (title, creation date, description, …). You give marks to any value of these properties (somewhat a tedious process at the moment but much room for improvement in the future, there). Comparator then let’s you give relative weights to these properties so that the given marks are processed and the compared instances are ranked globally.

It’s a kind of basic block for building a comparison framework, for building Plone applications that compare stuff (any kind of stuff that exists within your portal, including semantically agregated stuff). Let’s say that your Plone portal is full of descriptions of beers (with many details about all kinds of beers). Then adding a comparator to your portal will let your users give weights to every beer property and rank all the beers according to their personal tastes.

Comparator is based on Archetypes and was built from an UML diagram with ArchgenXML. Comparator fits well in my vision of semantic agregation. I hope you can see how. Comments welcome !

Daisy vs. Plone, feature fighting

Thursday, June 9th, 2005

A Gouri-friend of mine recently pointed me to Daisy, a “CMS wiki/structured/XML/faceted” stuff he said. I answered him it may be a nice product but not enough attractive for me at the moment to spend much time analyzing it. Nevertheless, as Gouri asked, let’s browse Daisy’s features and try to compare them with Plone equivalents (given that I never tried Daisy).

The Daisy project encompasses two major parts: a featureful document repository

Plone is based on an object-oriented repository (Zope’s ZODB) rather than a document oriented repository.

and a web-based, wiki-like frontend.

Plone has its own web-based fronted. Wiki features are provided with an additional product (Zwiki).

If you have different frontend needs than those covered by the standard Daisy frontend, you can still benefit hugely from building upon its repository part.

Plone’s frontend is easily customizable either with your own CSS, with inherting from existing ZPT skins or with a WYSIWYG skin module such as CPSSkin.

Daisy is a Java-based application

Plone is Python-based.

, and is based on the work of many valuable open source packages, without which Daisy would not have been possible. All third-party libraries or products we redistribute are unmodified (unforked) copies.

Same for Plone. Daisy seems to be based on Cocoon. Plone is based on Zope.

Some of the main features of the document repository are:
* Storage and retrieval of documents.

Documents are one of the numerous object classes available in Plone. The basic object in Plone is… an object that is not fully extensible by itself unless it was designed to be so. Plone content types are more user-oriented than generic documents (they implement specialized behaviours such as security rules, workflows, displays, …). They will be made very extensible when the next versions of the “Archetypes” underlying layer is released (they include through-the-web schema management feature that allow web users to extend what any existing content type is).

* Documents can consists of multiple content parts and fields, document types define what parts and fields a document should have.

Plone’s perspective is different because of its object orientation. Another Zope product called Silva is more similar to Daisy’s document orientation.

Fields can be of different data types (string, date, decimal, boolean, …) and can have a list of values to choose from.

Same for Archetypes based content types in Plone.

Parts can contain arbitrary binary data, but the document type can limit the allowed mime types. So a document (or more correctly a part of a document) could contain XML, an image, a PDF document, … Part upload and download is handled in a streaming manner, so the size of parts is only limitted by the available space on your filesystem (and for uploading, a configurable upload limit).

I imagine that Daisy allows the upload and download of documents having any structure, with no constraint. In Plone, you are constrained by the object model of your content types. As said above this model can be extended at run time (schema management) but at the moment, the usual way to do is to define your model at design time and then comply with it at run time. At run time (even without schema management), you can still add custom metadata or upload additional attached files if your content type supports attached files.

* Versioning of the content parts and fields. Each version can have a state of ‘published’ or ‘draft’. The most recent version which has the state published is the ‘live’ version, ie the version that is displayed by default (depends on the behaviour of the frontend application of course).

The default behaviour of Plone does not include real versioning but document workflows. It means that a given content can be in state ‘draft’ or ‘published’ and go from one state to another according to a pre-defined workflow (with security conditions, event triggering and so). But a given object has only one version by default.
But there are additional Plone product that make Plone support versioning. These products are to be merged into Plone future distribution because versioning has been a long awaited feature. Note that, at the moment, you can have several versions of a document to support multi-language sites (one version per language).

* Documents can be marked as ‘retired’, which makes them appear as deleted, they won’t show up unless explicitely requested. Documents can also be deleted permanently.

Plone’s workflow mechanism is much more advanced. A default workflow includes a similar retired state. But the admin can define new workflows and modify the default one, always referring to the user role. Plone’s security model is quite advanced and is the underlying layer of every Plone functionality.

* The repository doesn’t care much what kind of data is stored in its parts, but if it is “HTML-as-well-formed-XML”, some additional features are provided:
o link-extraction is performed, which allows to search for referers of a document.
o a summary (first 300 characters) is extracted to display in search results
o (these features could potentially be supported for other formats also)

There is no such thing in Plone. Maybe in Silva ? Plone’s reference engine allows you to define associations between objects. These associations are indexed by Plone’s search engine (“catalog”) and can be searched.

* all documents are stored in one “big bag”, there are no directories.

Physically, the ZODB repository can have many forms (RDBMS, …). The default ZODB repository is a single flat file that can get quite big : Data.fs

Each document is identified by a unique ID (an ever-increasing sequence number starting at 1), and has a name (which does not need to be unique).

Each object has an ID but it is not globally unique at the moment. It is unfortunately stored in a hierarchical structure (Zope’s tree). Some Zope/Plone developpers wished “Placeless content” to be implemented. But Daisy must still be superior to Plone in that field.

Hierarchical structure is provided by the frontend by the possibility to create hierarchical navigation trees.

Zope’s tree is the most important structure for objects in a Plone site. It is too much important. You can still create navigation trees with shortcuts. But in fact, the usual solution in order to have maximum flexibility in navigation trees is to use the “Topic” content type. Topics are folder-like object that contain a dynamic list of links to objects matching the Topic’s pre-defined query. Topic are like persistent searches displayed as folders. As a an example a Topic may display the list of all the “Photo”-typed objects that are in “draft” state in a specific part (tree branch) of the site, etc.

* Documents can be combined in so-called “collections”. Collections are sets of the documents. One document can belong to multiple collections, in other words, collections can overlap.

Topics too ? I regret that Plone does easily not offer a default way to display a whole set of objects in just one page. As an example, I would have enjoyed to display a “book” of all the contents in my Plone site as if it were just one single object (so that I can print it…) But there are some Plone additional products (extensions) that support similar functionalities. I often use “Content Panels” to build a page by defining its global layout (columns and lines) and by filling it with “views” from exisiting Plone objects (especially Topics). Content Panels mixed with Topics allow a high flexibility in your site. But this flexibility has some limits too.

* possibility to take exclusive locks on documents for a limitted or unlimitted time. Checking for concurrent modifications (optimistic locking) happens automatically.

See versioning above.

* documents are automatically full-text indexed (Jakarta Lucene based). Currently supports plain text, XML, PDF (through PDFBox), MS-Word, Excel and Powerpoint (through Jakarta POI), and OpenOffice Writer.

Same for Plone except that Plone’s search engine is not Lucene and I don’t know if Plone can read OpenOffice Writer documents. Note that you will require additional modules depending on your platform in order to read Microsoft files.

* repository data is stored in a relation database. Our main development happens on MySQL/InnoDB, but the provisions are there to add support for new databases, for example PostgreSQL support is now included.

Everything is in the ZODB. By default stored as a single file. But can also be stored in a relational database (but this is usually useless). You can also transparently mix several repositories in a same Plone instance. Furthermore, instead of having Plone directly writing in the ZODB’s file, you can configure Plone so that it goes through a ZEO client-server setup so that several Plone instances can share a common database (load balancing). Even better, there is a commercial product, ZRS, that allows you to transparently replicate ZODBs so that several Plone instances setup with ZEO can use several redundant ZODBs (no single point of failure).

The part content is stored in normal files on the file system (to offload the database). The usage of these familiar, open technologies, combined with the fact that the daisywiki frontend stores plain HTML, makes that your valuable content is easily accessible with minimal “vendor” lock-in.

Everything’s in the ZODB. This can be seen as a lock-in. But it is not really because 1/ the product is open source and you can script a full export with Python with minimal effort, 2/ there are default WebDAV + FTP services that can be combined with Plone’s Marshall extension (soon to be included in Plone’s default distribution) that allows you to output your content from your Plone site. Even better, you can also upload your structured semantic content with Marshall plus additional hacks as I mentioned somewhere else.

* a high-level, sql-like query language provides flexible querying without knowing the details of the underlying SQL database schema. The query language also allows to combine full-text (Lucene) and metadata (SQL) searches. Search results are filtered to only contain documents the user is allowed to access (see also access control). The content of parts (if HTML-as-well-formed-XML) can also be selected as part of a query, which is useful to retrieve eg the content of an “abstract” part of a set of documents.

No such thing in Plone as far as I know. You may have to Pythonize my friend… Except that Plone’s tree gives an URL to every object so that you can access any part of the site. But not with a granularity similar to Daisy’s supposed one. See silva for more document-orientation.

* Accesscontrol: instead of attaching an ACL to each individual document, there is a global ACL which allows to specify the access rules for sets of documents by selecting those documents based on expressions. This allows for example to define access control rules for all documents of a certain type, or for all documents in a certain collection.

Access control is based on Plone’s tree, with inheritance (similar to Windows security model in some way). I suppose Plone’s access control is more sophisticated and maintainable than Daisy’s one but it should require more investigation to explain why.

* The full functionality of the repository is available via an HTTP+XML protocol, thus providing language and platform independent access. The documentation of the HTTP interface includes examples on how the repository can be updated using command-line tools like wget and curl.

Unfortunately, Plone is not ReST enough at the moment. But there is some hope the situation will change with Zope 3 (Zope’s next major release that is coming soon). Note that Zope (so Plone) supports HTTP+XML/RPC as a generic web service protocol. But this is nothing near real ReSTful web services…

* A high-level, easy to use Java API, available both as an “in-JVM” implementation for embedded scenarios or services running in the daisy server VM, as well as an implementation that communicates transparently using the HTTP+XML protocol.

Say Python and XML/RPC here.

* For various repository events, such as document creation and update, events are broadcasted via JMS (currently we include OpenJMS). The content of the events are XML messages. Internally, this is used for updating the full-text index, notification-mail sending and clearing of remote caches. Logging all JMS events gives a full audit log of all updates that happened to the repository.

No such mechanism as far as I know. But Plone of course offers fully detailed audit logs of any of its events.

* Repository extensions can provide additional services, included are:
o a notification email sender (which also includes the management of the subscriptions), allowing subscribing to individual documents, collections of documents or all documents.

No such generic feature by default in Plone. You can add scripts to send notification in any workflow transition. But you need to write one or two lines of Python. And the management of subscriptions is not implemented by default. But folder-like object support RSS syndication so that you can agregate Plone’s new objects in your favorite news aggregator;

o a navigation tree management component and a publisher component, which plays hand-in-hand with our frontend (see further on)

I’ll see further on… :)

* A JMX console allows some monitoring and maintenance operations, such as optimization or rebuilding of the fulltext index, monitoring memory usage, document cache size, or database connection pool status.

You have several places to look at for this monitoring within Zope/Plone (no centralized monitoring). An additional Plone product helps in centralizing maintenance operations. Still some ground for progress here.

The “Daisywiki” frontend
The frontend is called the “Daisywiki” because, just like wikis, it provides a mixed browsing/editing environment with a low entry barrier. However, it also differs hugely from the original wikis, in that it uses wysiwyg editing, has a powerful navigation component, and inherits all the features of the underlying daisy repository such as different document types and powerful querying.

Well, then we can just say the same for Plone and rename its skins the Plonewiki frontend… Supports Wysiwyg editing too, with customizable navigation tree, etc.

* wysiwyg HTML editing
o supports recent Internet Explorer and Mozilla/Firefox (gecko) browsers, with fallback to a textarea on other browsers. The editor is customized version of HTMLArea (through plugins, not a fork).

Same for Plone (except it is not an extension of HTMLArea but of a similar product).

o We don’t allow for arbitrary HTML, but limit it to a small, structural subset of HTML, so that it’s future-safe, output medium independent, secure and easily transformable. It is possible to have special paragraph types such as ‘note’ or ‘warning’. The stored HTML is always well-formed XML, and nicely layed-out. Thanks to a powerful (server-side) cleanup engine, the stored HTML is exactly the same whether edited with IE or Mozilla, allowing to do source-based diffs.

No such validity control within Plone. In fact, the structure of a Plone document is always valid because it is managed by Plone according to a specific object model. But a given object may contain an HTML part (a document’s body as an example) that may not be valid. If your documents are to have a recurrent inner structure, then you are invited to make this structure an extension of an object class so that is no more handled as a document structure. See what I mean ?

o insertion of images by browsing the repository or upload of new images (images are also stored as documents in the repository, so can also be versioned, have metadata, access control, etc)

Same with Plone except for versioning. Note that Plone’s Photo content type support automatic server-side redimensioning of images.

o easy insertion document links by searching for a document

Sometimes yes, sometimes no. It depends on the type of link you are creating.

o a heartbeat keeps the session alive while editing

I don’t know how it works here.

o an exlusive lock is automatically taken on the document, with an expire time of 15 minutes, and the lock is automatically refreshed by the heartbeat

I never tried the Plone extension for versioning so I can’t say. I know that you can use the WebDAV interface to edit a Plone object with your favorite text processing package if you want. And I suppose this interface properly manages this kind of issues. But I never tried.

o editing screens are built dynamically for the document type of the document being edited.

Of course.

* Version overview page, from which the state of versions can be changed (between published and draft), and diffs can be requested. * Nice version diffs, including highlighting of actual changes in changed lines (ignoring re-wrapping).

You can easily move any object in its associated workflow (from one state to another, through transitions). But no versioning. Note that you can use Plone’s wiki extension and this extension supports supports diffs and some versioning features. But this is not available for any Plone content type.

* Support for includes, i.e. the inclusion of one document in the other (includes are handled recursively).

No.

* Support for embedding queries in pages.

You can use Topics (persistent queries). You can embed them in Content Panels.

* A hierarchical navigation tree manager. As many navigation trees as you want can be created.

One and only one navigation tree by default. But Topics can be nested. So you can have one main navigation tree plus one or more alternatives with Topics (but these alternatives are limited for some reasons.).

Navigation trees are defined as XML and stored in the repository as documents, thus access control (for authoring them, read access is public), versioning etc applies. One navigation tree can import another one. The nodes in the navigation tree can be listed explicitely, but also dynamically inserted using queries. When a navigation tree is generated, the nodes are filtered according to the access control rules for the requesting user. Navigation trees can be requested in “full” or “contextualized”, this last one meaning that only the nodes going to a certain document are expanded. The navigtion tree manager produces XML, the visual rendering is up to XSL stylesheets.

This is nice. Plone can not do that easily. But what Plone can do is still done with respect to its security model and access control, of course.

* A navigation tree editor widget allows easy editing of the navigation trees without knowledge of XML. The navigation tree editor works entirely client-side (Mozilla/Firefox and Internet Explorer), without annoying server-side roundtrips to move nodes around, and full undo support.

Yummy.

* Powerful document-publishing engine, supporting:
o processing of includes (works recursive, with detection of recursive includes)
o processing of embedded queries
o document type specific styling (XSLT-based), also works nicely combined with includes, i.e. each included document will be styled with its own stylesheet depending on its document type.

OK

* PDF publishing (using Apache FOP), with all the same features as the HTML publishing, thus also document type specific styling.

Plone document-like content type offer PDF views too.

* search pages:
o fulltext search
o searching using Daisy’s query language
o display of referers (“incoming links”)

Fulltext search is available. No query language for the user. Display of refers is only available for content type that are either wiki pages or have been given the ability to include references from other objects.

* Multiple-site support, allows to have multiple perspectives on top of the same daisy repository. Each site can have a different navigation tree, and is associated with a default collection. Newly created documents are automatically added to this default collection, and searches are limited to this default collection (unless requested otherwise).

It might be possible with Plone but I am not sure when this would be useful.

* XSLT-based skinning, with resuable ‘common’ stylesheets (in most cases you’ll only need to adjust one ‘layout’ xslt, unless you want to customise heavily). Skins are configurable on a per-site basis.

Plone’s skins are using the Zope Page Templates technology. This is a very nice and simple HTML templating technology. Plone’s skins make an extensive use of CSS and in fact most of the layout and look-and-feel of a site is now in CSS objects. These skins are managed as objects, with inheritance, overriding of skins and other sophisticated mechanism to configure them.

* User self-registration (with the possibility to configure which roles are assigned to users after self-registration) and password reminder.

Same is available from Plone.

* Comments can be added to documents.

Available too.

* Internationalization: the whole front-end is localizable through resource bundles.

Idem.

* Management pages for managing:
o the repository schema (the document types)
o the users
o the collections
o access control

Idem.

* The frontend currently doesn’t perform any caching, all pages are published dynamically, since this also depends on the access rights of the current user. For publishing of high-trafic, public (ie all public access as the same user), read-only sites, it is probably best to develop a custom publishing application.

Zope includes caching mechanisms that take care of access rights. For very high-trafic public sites, a Squid frontend is usually recommended.

* Built on top of Apache Cocoon (an XML-oriented web publishing and application framework), using Cocoon Forms, Apples (for stateful flow scenarios), and the repository client API.

By default, Zope uses its own embedded web server. But the usual setup for production-grade sites is to put an Apache reverse-proxy in front of it.

My conclusion : Daisy looks like a nice product when you have a very document-oriented project, with complex documents with structures varying much from documents to documents ; its equivalent in Zope’s world would be Silva. But Plone is much more appropriate for everyday CMS sites. Its object-orientation offers both a great flexibility for the developer and more ease of use for Joe-six-pack webmaster. Plone still lacks some important technical features for its future, namely ReSTful web service interfaces, plus placeless content paradigm. Versioning is expected soon.

This article was written in just one raw, late at night and with no re-reading reviewed once thanks to Gouri. It may be wrong or badly lacking information on some points. So your comments are much welcome !

From OWL to Plone

Thursday, April 28th, 2005

I found a working path to transform an OWL ontology into a working Plone content-type. Here is my recipe :

  1. Choose any existing OWL ontology
  2. With Protege equipped with its OWL plugin, create a new project from your OWL file.
  3. Still within Protege, with the help of its UML plugin, convert your OWL-Protege project into a UML classes project. You get an XMI file.
  4. Load this XMI file into an UML project with Poseidon. Save this project under the .zuml Poseidon format.
  5. From poseidon, export your classes a new xmi file. It will be Plone-friendly.
  6. With a text editor, delete some accentuated characters that Poseidon might have added to your file (for example, the Frenchy Poseidon adds a badly accentuated “Modele sans titre” attribute into your XMI) because the next step won’t appreciate them
  7. python Archgenxml.py -o YourProduct yourprojectfile.xmi turns your XMI file into a valid Plone product. Requires Plone and Archetypes (see doc) latest stable version plus ArchgenXML head from the subversion repository.
  8. Launch your Plone instance and install YourProduct as a new product from your Plone control panel. Enjoy YourProduct !
  9. eventually populate it with an appropriate marshaller.

Now you are not far from using Plone as a semantic aggregator.

An open source foundation for Fortune 500 companies

Thursday, March 31st, 2005

Another un-used business idea to recycle… please follow me :

  • Fortune 500 companies produce a lot of in-house developments, reinventing the wheel again and again, especially in the field of non-critical, non-business applications : reporting applications, technical asset management, collaborative tools, IT security, identity management, content management… Each of them is sitting on a consequent catalog of custom-made “commodity” applications that they develop and maintain on their own.
  • Most of these non-critical-non-business-in-house developments have a limited value but a high cost for businesses.
  • The main priority of corporate IT departments is to reduce their costs ; most of them rely on outsourcing applicative developments to some extent.
  • Open source is now somewhat trendy even among Fortune 500 corporations ; it is reaching a high level of visibility and acceptability.
  • The open source model proposes an optimization of the costs sketched above by sharing them among several users of commodity applications, i.e. by open sourcing them.
  • The “open sourcing” of custom-made applications by Fortune 500 companies would be an alternative to the classical outsourcing of these development and maintenance costs.
  • The offshore outsourcing of corporate development is seen as a threat on jobs for IT programmers in northern countries ; but the open sourcing of this software could be seen as more acceptable.
  • These IT departments are currently converging to common technological frameworks : .Net, J2EE, open source scripting ; that movement enhances their capability to absorb “foreign” developments ; and the standardization of their architectures tends to enhance the re-usability of their in-house developments.
  • Open source foundations are legal entities designed to own the intellectual property of open source applications, to guarantee that the open source licence they are distributed under will be enforced, to promote these applications so that their communities are thriving and the applications make gains in terms of reliability, quality and sustainability.
  • The distribution of software under open source licences is said to represent the highest value transfer ever from rich countries to developping countries.
  • The open sourcing of these Fortune 500 applications would be a positive change both for big corporations themselves and for smaller companies especially in third world countries.
  • Social entrepreneurship is becoming a hot topic today even in mainstream media ; this initiative might qualify as a social entrepreneurship initiative ; the public usefulness of such a move might justify the legal creation of a foundation in France.
  • Recently, in France, foundations have gained in acceptance by big businesses since a new tax law offers higher opportunities for tax reductions.
  • I still work as an IT manager in the global IT department for a Fortune 100 company in France ; our CIO would see such an open source foundation as a positive initiative but, as a cautious manager, he is dubious regarding the willingness of other CIOs of Fortune 500 companies (in France) to share their custom codes under an open source licence.

You work in/for a big corporation willing to reality-check this idea ? What do you think ?

The CMS pseudo-stock market

Wednesday, March 23rd, 2005

The Drupal people produced insightful stock-market-like statistics about the popularity of open source CMS packages (via the precious Amphi-Gouri). But their analysis mixes content management systems (Drupal, Plone) with blog engines (Wordpress) and bulletin boards (phpBB). Anyway, it shows that :

  • The popularity of most Free and Open Source CMS tools is in an upward trend.
  • Bulletin boards like phpBB is the most popular category, maybe the most mature and phpBB is the strong leader in this category
  • In the CMS category, Mambo, Xoops, Drupal and Plone are direct competitors ; Mambo is ahead in terms of popularity, Plone is behind its PHP competitors which certainly benefit from the popularity of PHP compared to Python; PHP-Nuke and PostNuke are quickly loosing some ground.
  • Wordpress is the most dynamic open source blog engine in terms of growth of popularity ; its community is exploding

My conclusion :

  • if you want an open source bulletin board/community forum, then choose phpBB with no hesitation
  • if you want a real content management system and are not religiously opposed to Python, then choose Plone, else stick with PHP and go Mambo (or Xoops ?)
  • if you want an open source blog engine, then enjoy Wordpress

If feel like producing this kind of statistical analysis about the dynamics of open source communities is extremely valuable for organization and people considering several open source options (cf. the activity percentile indicated on sourceforge projets as an example). I would tend to say that the strength of an open source community, measured in term of growth and size, is the one most important criteria to rely on when choosing an open source product.

Nowadays, the (real) stock market relies strongly on rating agencies. There must be a room (and thus a business opportunity) for an open source rating agency that would produce strong evidences about the relative strength of project communities.

What do you think ?

Web scraping with Python (part II)

Friday, March 11th, 2005

The first part of this article dealt with retrieving HTML pages from the web with the help of a mechanize-propelled web crawler. Now your HTML pieces are safely saved locally on your hard drive and you want to extract structured data from them. This is part 2, HTML parsing with Python. For this task, I adopted a slightly more imaginative approach than for my crawling hacks. I designed a data extraction technology based on HTML templates. Maybe this could be called “reverse-templating” (or something like template-based reverse-web-engineering).

You may be used with HTML templates for producing HTML pages. An HTML template plus structured data can be transformed into a set of HTML pages with the help of a proper templating engine. One famous technology for HTML templating is called Zope Page Templates (because this kind of templates is used within the Zope application server). ZPTs use a special set of additional HTML tags and attributes referred to by the “tal:” namespace. One advantage of ZPT (over competing technologies) is that ZPT are nicely rendered in WYSIWYG HTML editors. Thus web designers produce HTML mockups of the screens to be generated by the application. Web developpers insert tal: attributes into these HTML mockups so that the templating engine will know which parts of the HTML template have to be replaced by which pieces of data (usually pumped from a database). As an example, web designers will say <title>Camcorder XYZ</title> then web developpers will modify this into <title tal:content=”camcorder_name”>Camcorder XYZ</title> and the templating engine will further produce a <title>Camcorder Canon MV6iMC</title> when it processes the “MV6iMC” record in your database (it replaces the content of the title element with the value of the camcorder_name variable as it is retrieved from the current database record). This technology is used to merge structured data with HTML templates in order to produce Web pages.

I took inspiration from this technology to design parsing templates. The idea here is to reverse the use of HTML templates. In the parsing context, HTML templates are still produced by web developpers but the templating engine is replaced by a parsing engine (known as web_parser.py, see below for the code of this engine). This engine takes HTML pages (the ones you previously crawled and retrieved) plus ZPT-like HTML templates as input. It then outputs structured data. First your crawler saved <title>Camcorder Canon MV6iMC</title>. Then you wrote <title tal:content=”camcorder_name”>Camcorder XYZ</title> into a template file. Eventually the engine will output camcorder_name = “Camcorder Canon MV6iMC”.

In order to trigger the engine, you just have to write a small launch script that defines several setup variables such as :

  • the URL of your template file,
  • the list of URLs of the HTML files to be parsed,
  • whether you would like or not to pre-process these files with an HTML tidying library (this is useful when the engine complains about badly formed HTML),
  • an arbitrary keyword defining the domain of your parsing operation (may be the name of the web site your HTML files come from),
  • the charset these HTML files are made with (no automatic detection at the moment, sorry…)
  • the output format (csv-like file or semantic web document)
  • an optional separator character or string if ever you chose the csv-like output format

The easiest way to go is to copy and modify my example launch script (parser_dvspot.py) included in the ZIP distribution of this web_parser.

Let’s summarize the main steps to go through :

  1. install utidylib into your python installation
  2. copy and save my modified version of BeautifulSoup into your python libraries directory (usually …/Lib/site-packages)
  3. copy and save my engine (web_parser.py) into your local directory or into you python libraries directory
  4. choose a set of HTML files on your hard drive or directly on a web site,
  5. save one of these files as your template,
  6. edit this template file and insert the required pseudotal attributes (see below for pseudotal instructions, and see the example dvspot template template_dvspot.zpt),
  7. copy and edit my example launch script so that you define the proper setup variables in it (the example parser_dvspot.py contains more detailed instructions than above), save it as my_script.py
  8. launch your script with a python my_script.py > output_file.cowl (or python my_script.py > output_file.cowl)
  9. enjoy yourself and your fresh output_file.owl or output_file.csv (import it within Excel)
  10. give me some feedback about your reverse-templating experience (preferably as a comment on this blog)

This is just my first attempt at building such an engine and I don’t want to make confusion between real (and mature) tal attributes and my pseudo-tal instructions. So I adopted pseudotal as my main namespace. In some future, when the specification of these reverse-templating instructions are somewhat more stabilized (and if ever the “tal” guys agree), I might adopt tal as the namespace. Please also note that the engine is somewhat badly written : the code and internal is rather clumsy. There is much room for future improvement and refactoring.

The current version of this reverse-templating engine now supports the following template attributes/instructions (see source code for further updates and documentation) :

  • pseudotal:content gives the name of the variable that will contain the content of the current HTML element
  • pseudotal:replace gives the name of the variable that will contain the entire current HTML element
  • (NOT SUPPORTED YET) pseudotal:attrs gives the name of the variable that will contain the (specified?) attribute(s ?) of the current HTML element
  • pseudotal:condition is a list of arguments ; gives the condition(s) that has(ve) to be verified so that the parser is sure that current HTML element is the one looked after. This condition is constructed as a list after BeautifulSoup fetch arguments : a python dictionary giving detailed conditions on the HTML attributes of the current HTML element, some content to be found in the current HTML element, the scope of research for the current HTML element (recursive search or not)
  • pseudotal:from_anchor gives the name of the pseudotal:anchor that is used in order to build the relative path that leads to the current HTML element ; when no from_anchor is specified, the path used to position the current HTML element is calculted from the root of the HTML file
  • pseudotal:anchor specifies a name for the current HTML element ; this element can be used by a pseudotal:from_anchor tag as the starting point for building the path to the element specified by pseudotal:from_anchor ; usually used in conjunction with a pseudotal:condition ; the default anchor is the root of the HTML file.
  • pseudotal:option describes some optional behavior of the HTML parser ; is a list of constants ; contains NOTMANDATORY if the parser should not raise an error when the current element is not found (it does as default) ; contains FULL_CONTENT when data looked after is the whole content of the current HTML element (default is the last part of the content of the current HTML element, i.e. either the last HTML tags or the last string included in the current element)
  • pseudotal:is_id_part a special ‘id’ variable is automatically built for every parsed resource ; this id variable is made of several parts that are concatenated ; this pseudotal:is_id_part gives the index the current variable will be used at for building the id of the current resource ; usually used in conjunction with pseudotal:content, pseudotal:replace or pseudotal:attrs
  • (NOT SUPPORTED YET) pseudotal:repeat specifies the scope of the HTML tree that describes ONE resource (useful when several resources are described in one given HTML file such as in a list of items) ; the value of this tag gives the name of a class that will instantiate the parsed resource scope plus the name of a list containing all the parsed resource

The current version of the engine can output structured data either as a CSV-like output (tab-delimited for example) or as an RDF/OWL document (of Semantic-Web fame). Both formats can easily be imported and further processed with Excel. The RDF/OWL format gives you the ability to process it with all the powerful tools that are emerging along the Semantic Web effort. If you feel adventurous, you may thus import your RDF/OWL file into Stanford’s Protege semantic modeling tool (or into Eclipse with its SWEDE plugin) and further process your data with the help of a SWRL rules-based inference engine. The future Semantic Web Rules Language will help at further processing this output so that you can powerfully compare RDF data coming from distinct sources (web sites). In order to be more productive in terms of fancy buzz-words, let’s say that this reverse-templating technology is some sort of a web semantizer. It produces semantically-rich data out of flat web pages.

The current version of the engine makes an extensive use of BeautifulSoup. Maybe it should have been based on a more XMLish approach instead (using XML pathes ?). But it would have implied that the HTML templates and HTML files to be processed should then have been turned into XHTML. The problem is that I would then have relied on utidylib but this library breaks too much some mal-formed HTML pages so that they are not valuable anymore.

Current known limitation : there is currently no way to properly handle some situations where you need to make the difference between two similar anchors. In some cases, two HTML elements that you want to use as distinct anchors have in fact exactly the same attributes and content. This is not a problem as long as these two anchors are always positioned at the same place in all the HTML page that you will parse. But, as soon as one of the anchors is not mandatory or it is located after a non mandatory element, the engine can get lost and either confuse the two anchors or complain that one is missing. At the moment, I don’t know how to handle this kind of situation. Example : long lists of specifications with similar names where some specifications are optional (see canon camcorders as an example : difference between lcd number of pixels and viewfinder number of pixels). The worst case scenario would be when there is a flat list of HTML paragraphs. The engine will try to identify these risks and should output some warnings in this kind of situations.


Here are the contents of the ZIP distribution of this project (distributed under the General Public License) :

  • web_parser.py : this is the web parser engine.
  • parser_dvspot.py : this is an example launch script to be used if you want to parser HTML files coming from the dvspot.com web site.
  • template_dvspot.zpt : this is the example template file corresponding to the excellent dvspot.com site
  • BeautifulSoup.py : this is MY version of BeautifulSoup. Indeed, I had to modify Leonard Richardson’s official one and I couldn’t obtain any answer from him at the moment regarding my suggested modifications. I hope he will soon answer me and maybe include my modifications in the official version or help me overcoming my temptation to fork. My modifications are based on the official 1.2 release of beautifulsoup : I added “center” as a nestable tag and added the ability to match the content of an element with the help of wildcards. You should save this BeautifulSoup.py file into the “Lib\site-packages” folder of your python installation.
  • README.html is the file you are currently reading, also published on my blog.

Economie de communion : utiliser l’entreprise pour rendre le monde meilleur

Wednesday, March 9th, 2005

L’économie de communion est un concept issu d’un mouvement charismatique de l’Eglise catholique appelé les Focolari. Autant les Focolari semblent avoir une saveur un peu hippie-catho/communautaire/charismatique qui peut faire peur ou rigoler, autant l’Economy of Communion (EoC) est un concept que je trouve très percutant et pertinent, notamment mis en perspective du phénomène open source avec lequel il partage de nombreux points communs du point de vue idéologique tout du moins. Il s’agit d’un concept d’autant plus percutant qu’il a déjà été adopté et mis en oeuvre au sein de plus de 700 PME en Italie, au Brésil et ailleurs.

Les ambitions de l’EoC

L’Ecole pour les Entrepreneurs de l’Economie de la Communion propose à des dirigeants d’entreprise de les aider à comprendre

comment il [leur a été] possible de [...] faire les bons choix : en étant les premiers à aimer les autres, en induisant ainsi un amour réciproque au sein de la firme, ce qui à son tour attire l’attention des cieux et l’action de notre partenaire caché et divin directement au sein de l’entreprise

Tout un programme théologico-économique ! Mais qu’est-ce qui se cache sous ce jargon catho ? Les entrepreneurs de l’EoC se donnent comme objectif de

démontrer qu’il est effectivement possible d’appliquer la communion dans l’économie et montrer ainsi que ce nouveau comportement économique est basé sur une rationnalité plus large qui anticipe un modus operandi qui deviendra inévitable dans un futur raisonnable.

D’après le professeur Bruni,

L’EoC espère transformer les structures d’entreprise de l’intérieur en réussissant à éclairer les relations internes et externes des sociétés à la lumière d’un style de vie basé sur la communion c’est-à-dire sur le ‘don réciproque’ que ce terme implique [...] Le challenge de l’EoC est de relire les pratiques organisationnelles quotidiennes à la lumière de cette notion de don et de communion.

Tout cela a vraiment l’air d’avoir quelque chose en commun avec les challenges (et l’idéologie) de l’économie open source : économie du don, pratiques communautaires, comportement et rationnalité économiques paradoxaux mais promis à un large succès… L’économie de la communion est-elle l’open source de l’Eglise catholique ?

Les difficultés auxquelles s’affronte l’EoC

Si les entreprises telles qu’on les connaît ne sont pas toujours des petits nids d’amour, c’est que

le raisonnement moral des gens [y] est coupé des réalités profondes de leurs vies, créant ainsi ce que de nombreuses personnes appellent “une vie fracturée”. C’est je pense l’une des raisons principales pour lesquelles construire des communautés authentiques au travail est si difficile. [...] Il y a une forte tentation dans l’organisation de voir toute chose professionnelle [...] comme un simple instrument d’accès aux profits ou au succès individuel. [...] L’ubiquité [de ce type de rationnalité] exclut toute forme de rationnalité morale [...] Cette rationnalité instrumentale tend à concentrer la responsabilité sociale de l’entreprise sur [...] le don de bénéfices à des pauvres [(mécénat caritatif)], le don de temps personnel à des activités caritatives, la fourniture d’avantages divers aux employés, etc. au détriment de la manière dont s’effectue réellement le travail [quotidien] telle que la manière de rémunérer les gens, de concevoir les postes de travail, les processus de prise de décision, le marketing, les structures de propriété [(d'actionnariat)], la stratégie, le gouvernement d’entreprise, etc. L’instrumentalisme ambiant empêche la transformation morale et spirituelle de la manière dont chacun appréhende son travail et sa manière de travailler.

Du point de vue théorique, les tenants de l’EoC défendent que la théorie économique entre dans le champ plus large des théories morales, que l’idée selon laquelle la rationnalité économique est guidée par l’optimisation de ses stricts intérêts par l’individu a ses limites, qu’il n’est pas théoriquement impossible qu’un système économique tout entier puisse petit à petit voir des formes de rationalité économiques paradoxales devenir monnaie courante et qu’enfin une rationalité économique basée sur la notion chrétienne de communion (ou, plus largement, sur le don réciproque) est tout à fait… rationelle. Finalement, du point de vue théorique, l’EoC essaie de renvoyer l’homo economicus à la responsabilité morale qui guide forcément ses comportements économiques.

L’EoC en pratique

Les entreprises de l’EoC pratiquent la distribution d’une partie de leurs bénéfices à des oeuvres caritatives. Mais Lorna Gold explique que

la logique de communion [qui sous-tend l'EoC] ne se limite à cette dimension de distribution. Elle concerne la manière dont on traite les clients, la structure de tarification, la gestion de crises, la gestion des débiteurs etc. Très clairement, l’efficacité globale est essentielle, mais l’approche “au cas par cas” domine et est guidée par le désir de comprendre les besoins de son prochain.

En prenant l’exemple des politiques de rémunérations, Naughton note que

les rémunérations sont génératrices d’insatisfaction et non de satisfaction. Les rémunérations en elles-mêmes ne peuvent bâtir une communauté mais peuvent empêcher une communauté. [...] [Du point de vue chrétien] le travail ne peut jamais être réduit au salaire versé. [...] Il vaut mieux éviter de parler des salaires comme un échange [économique] mais plutôt comme éléments d’une relation de travail entre employeur et employé, relation qui a en son centre une dimension de don qui peut servir à renforcer une communauté professionnelle. [Cependant, il faut bien noter que] certains postes sont conçus tellement mal, de manière tellement idiote et bureaucratique qu’il devient très difficile [pour l'employé] de pouvoir faire preuve de don dans une telle situation. [Selon l'EoC, trois principes doivent guider les décisions de rémunérations :] satisfaire les besoins des employés (salaire minimal), reconnaître leurs contributions (salaire équitable), permettre un ordre économique durable pour l’entreprise (salaire durable).

Pour Michael Naughton, cet exemple des politiques de rémunérations illustre bien du point de vue de l’EoC

l’art de la réflexion de niveau intermédiaire qui fait le lien entre la théologie de la communion et les pratiques opérationnelles et quotidiennes de l’entreprise

Leo Andringa illustre la question des relations hiérarchiques dans l’entreprise et des modèles organisationnels en évoquant le fait que

l’organisation des entreprises est un “résidu de la société féodale”. Les idées révolutionnaires de liberté et d’égalité ont influencé l’Eglise, la famille et les institutions mais [...] à l’opposé, n’ont pas touché l’essence capitaliste du système de l’entreprise. [... ] Du point de vue de la théorie de l’organisation, il est clair qu’une organisation [...] ayant une finalité unique exprimée en cibles financières (chiffre d’affaires, bénéfices, trésorerie, valeur pour l’actionnaire) peut être relativement simple et [...] très hiérarchique. [Mais] la principale motivation de l’entrepreneur EoC est de vivre la communion dans un environnement commercial. [...] Plus l’objectif d’une organisation est complexe [...] plus sa forme organisationnelle le sera.

Benedetto Gui précise que, dans l’EoC,

être un entrepreneur (ou un dirigeant ou quiconque ayant des responsabilités dans l’entreprise) est vu comme une véritable vocation : la vocation d’atteindre des valeurs élevées (et même des valeurs spirituelles) à travers l’accomplissement de tâches séculaires.

M. Andringa cite son expérience personnelle et ses relations en tant que patron avec son assistant :

Chaque fois que j’avais une décision importante à prendre pour l’entreprise, je lui faisais part de mes motivations et arguments. Il était une sorte de miroir pour moi. Lorsque je lui exposais mes arguments, je sentais immédiatement si ils tenaient ou non la route. En tant que directeur, c’était une expérience particulière que de prendre les décisions en [communion]. C’était une réalité que je vivais déjà dans ma vie privée et dans ma famille mais je la transposais pour la première fois dans la réalité de la direction d’une entreprise. [...] En pratique, on voit qu’un grand nombre d’entrepreneurs veulent confronter leurs décisions d’importance avec autrui. [...] Il est clair qu’une telle vision de l’entreprise ne peut se concrétiser sans la coopération de la majorité des actionnaires et la coopération ou la connaissance de la plus grande part des employés. Ce n’est que dans les entreprises où la communion est à tous les niveaux que ceux qui ont les rênes de l’entreprise peuvent être l’expression de la solidarité plutôt que celle de leur vision personnelle.

Le lien entre l’EoC et la responsabilité sociale des entreprises

Leo Andringa rappelle que

bien que de nombreuses multinationales ont gardé leurs oeillères fixées sur la croissance de leurs profits, nombre d’entre elles se sont impliquées dans l’augmentation de leur responsabilité sociale d’entreprise. [...] La philosophie de l’EoC ne coïncide pas avec ce que l’on appelle maintenant la “Corporate Social Responsability” : en fait l’EoC a une responsabilité environnementale “par vocation” et non pour des buts de communication, d’image ou de [réponse à une] pression sociale. [L'EoC] exige beaucoup plus. [...] Comment l’entreprise peut-elle réconcilier les intérêts de tous ceux qui dépendent d’elle : les actionnaires, les clients, les fournisseurs, la société civile ? Du point de vue [de l'EoC] il n’y a pas de réponse théorique à ce problème. Lorsqu’il est impossible de résoudre ce problème méthodologique à un niveau matériel, une solution est à trouver à un autre niveau [(spirituel, moral)].

Les atouts des entreprises EoC

Benedetto Gui explique que

les préoccupations [éthiques] des entreprises EoC font peser une charge additionnelle sur les dirigeants qui se sentent dans l’obligation implicite de garantir à leurs employés non seulement de bons emplois mais également des occasions de développer des relations interpersonnelles positives et de s’engager dans leurs activités professionnelles en accord avec leurs valeurs morales. Cependant, il y a un avantage à cet inconvénient : celui d’un surplus de motivation et de mobilisation de ressources volontaires. C’est grâce à ce phénomène que de nombreuses entreprises EoC survivent ou même connaissent le succès, malgré le “handicap” que représente leur adhésion à des principes de comportements telles que le respect de l’environnement, de la loi, etc.

Un témoignage dans le magazine de l’EoC illustre ce phénomène : Marcelle, responsable d’une toute petite exploitation agricole en Côte d’Ivoire, raconte sa surprise lorsqu’elle a constaté que ses ouvriers venaient prendre soin des plantations pendant leurs congés ou lorsque les événements politiques l’ont éloignée de son exploitation…

Avez-vous déjà repéré des sociétés françaises pratiquant l’économie de la communion ?

Web-SSO : A CAS client for Zope

Thursday, February 24th, 2005

The Central Authentication Service (aka CAS) is an open source lightweight framework that provides Web Single Sign On to big organizations (universities, agencies, corporations). It seems to be wildly used and seen as as much mature and reliable as the struts framework.

An existing server can benefit CAS WebSSO features if its technology is supported by a CAS client. So, please welcome Zope’s CAS User Folder, that SSOizes Zope within complex SSO infrastructures.

Zemantic: a Zope Semantic Web Catalog

Monday, February 14th, 2005

Zemantic is an RDF module for Zope (read its announcement). From what I read (not tested by me yet), it implements services similar to zope catalogs and enables universal management of references (such as the Archetypes reference engine but in a more sustainable way). It is based on RDFLib, similarly to ROPE.

I feel enthusiastic about this product since it sounds to me like a good future-proof solution for the management of metadata, references and structured data within content management systems and portals. Plus Zemantic would sit well in my vision of Plone as a semantic aggregator.

Firefox gagne 5% des parts de marché de MS Internet Explorer

Wednesday, November 24th, 2004

Le navigateur web Firefox, de la fondation Mozilla, a pris 5% des parts de marché des navigateurs web à son concurrent, Microsoft Internet Explorer. Et pourtant cela ne fait que quelques semaines que la version 1.0 de Firefox a été publiée. Mais la supériorité de Firefox sur IE est déjà largement vantée par la presse, ce qui accélère le mouvement de migration…
Ces données de part de marché sont publiées par OneStat, le “leader mondial des statistiques du web en temps réel”, bref une source a priori fiable. Plus de commentaires, sur Slashdot.