<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title>Blog entries (CubicWeb's Forge) RSS Feed</title>
    <description />
    <link>http://www.cubicweb.org/project?rql=Any%20X%2CT%2CCD%20ORDERBY%20CD%20DESC%20LIMIT%2020%20WHERE%20X%20is%20BlogEntry%2C%20X%20title%20T%2C%20X%20creation_date%20CD</link>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/cubicweborg" /><feedburner:info uri="cubicweborg" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2727288</guid>
  <title>data.bnf.fr gets the Stanford Prize for Innovation in Research Libraries</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/bkqZ2Gu6HL0/2727288</link>
  <description>&lt;p&gt;&lt;a class="reference" href="http://data.bnf.fr"&gt;data.bnf.fr&lt;/a&gt; and &lt;a class="reference" href="http://gallica.bnf.fr"&gt;Gallica&lt;/a&gt; just got awarded the &lt;a class="reference" href="http://library.stanford.edu/projects/stanford-prize-innovation-research-libraries-spirl/2013-spirl-winners"&gt;Stanford Prize for Innovation in Research Libraries 2013&lt;/a&gt;. The CubicWeb community is very pleased to see that data.bnf.fr, which is built with CubicWeb, is being recognized at the top international level as leading innovation its domain! Read the &lt;a class="reference" href="http://library.stanford.edu/projects/stanford-prize-innovation-research-libraries-spirl/biblioth%C3%A8que-nationale-de-france-judges"&gt;comments of the judges&lt;/a&gt; for more details.&lt;/p&gt;
</description>
  <dc:date>2013-03-01T17:01-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2727288</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2715922</guid>
  <title>CubicWeb at Data Tuesday on Feb 26th 2013</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/89ZkVPksxUQ/2715922</link>
  <description>&lt;p&gt;CubicWeb was showcased at &lt;a class="reference" href="http://data-tuesday.com/2013/02/13/decouvrez-le-programme-du-26-fevrier-2013/"&gt;Data Tuesday on Feb 26th 2013&lt;/a&gt;. The other presentations were interesting, especially &lt;a class="reference" href="http://www.shacache.org/"&gt;shacache.org&lt;/a&gt;, the soon-to-be-launched &lt;a class="reference" href="http://www.openmeteodata.org"&gt;OpenMeteoData&lt;/a&gt; and the very useful &lt;a class="reference" href="http://www.scikit-learn.org"&gt;scikit.learn&lt;/a&gt;.&lt;/p&gt;
</description>
  <dc:date>2013-02-15T00:47-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2715922</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2710208</guid>
  <title>CubicWeb rewarded at Dataconnexion 2013</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/4n7kSmR7wNk/2710208</link>
  <description>&lt;p&gt;CubicWeb got rewarded yesterday at the award ceremony of the Dataconnexions 2013 contest.&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/2710848?vid=download" src="http://www.cubicweb.org/2710848?vid=download" /&gt;
&lt;p&gt;&lt;a class="reference" href="http://www.dataconnexions.fr"&gt;Dataconnexions&lt;/a&gt; is a contest organized by &lt;a class="reference" href="http://www.etalab.gouv.fr/"&gt;Etalab&lt;/a&gt;, the organization part of the French State that is in charge of &lt;a class="reference" href="http://data.gouv.fr"&gt;data.gouv.fr&lt;/a&gt;, that catalogs the open data published by the french administration.&lt;/p&gt;
&lt;p&gt;Congratulations to all the developers and users of CubicWeb and welcome to the people who will join the CW community thanks to the media coverage we are now experiencing.&lt;/p&gt;
&lt;p&gt;Read the &lt;a class="reference" href="https://www.cubicweb.org/file/2710828?vid=download"&gt;announce to the press&lt;/a&gt; and the &lt;a class="reference" href="http://www.slideshare.net/logilab/cubicweb-laurat-dataconnexions-2013"&gt;slides&lt;/a&gt;.&lt;/p&gt;
</description>
  <dc:date>2013-02-08T10:43-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2710208</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2709670</guid>
  <title>Logilab's roadmap for CubicWeb as of February 2013</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/VGxsbAJpgAw/2709670</link>
  <description>&lt;p&gt;The Logilab team now holds a roadmap meeting every two months to plan its CubicWeb development effort. Here are the decisions that were taken on Feb 1st, 2013.&lt;/p&gt;
&lt;div class="section" id="version-3-17"&gt;
&lt;h3&gt;&lt;a&gt;Version 3.17&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This version should be published before the end of March and will finish all the things
that are work in progress. It will include:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;the refactoring necessary to introduce persistant sessions,&lt;/li&gt;
&lt;li&gt;the shrinking of web/views: everything that does not deserve its own cube (like sioc, embed,
geocoding, etc) will go into a cube named legacyui (this will open the door to squareui),&lt;/li&gt;
&lt;li&gt;stop serving pages with &amp;quot;content-type: application/xhtml&amp;quot;,&lt;/li&gt;
&lt;li&gt;handling postgresql schemas (will require a new version of logilab.database),&lt;/li&gt;
&lt;li&gt;a new logo.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="squareui"&gt;
&lt;h3&gt;&lt;a&gt;Squareui&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Once the cube legacyui extracted (in version 3.17), it will be possible to move forward
swiftly with squareui. Due to its other duties, one can not expect the core CW team to develop squareui.
People interested will be in charge and ideally the squareui cube could be released when cubicweb 3.17
will be published.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="cleaning-up-the-backlog"&gt;
&lt;h3&gt;&lt;a&gt;Cleaning up the backlog&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The lead CW developers will spend about 20% of their time cleaning up the ticket backlog at the forge (900 open tickets and 50 in progress !)&lt;/p&gt;
&lt;p&gt;The first step will be to reduce the number of tickets &amp;quot;in progress&amp;quot;, then to organize the open tickets and merge the duplicates.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="version-3-18"&gt;
&lt;h3&gt;&lt;a&gt;Version 3.18&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This version is due at the end of may 2013. It will include:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;persisting sessions,&lt;/li&gt;
&lt;li&gt;WSGI,&lt;/li&gt;
&lt;li&gt;RESTfulness: support for HTTP verbs PUT / DELETE, enforcement of the semantics of
GET / POST (may be difficult to maintain backward-compatibility)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="mid-term-goals"&gt;
&lt;h3&gt;&lt;a&gt;Mid-term goals&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The mid-term goals are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class="first"&gt;possibility to add new base types (&lt;em&gt;Array&lt;/em&gt;, &lt;em&gt;HStore&lt;/em&gt;,
&lt;em&gt;Geometry&lt;/em&gt;, &lt;em&gt;TSVector&lt;/em&gt;, etc.) that would use extensions from the
SQL backend&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;tt class="docutils literal"&gt;FROM&lt;/tt&gt; clause in rql queries&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;websockets&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;defining attribute on relations and defining &amp;quot;virtual&amp;quot; relations or rules:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Contribution&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;EntityType&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;author&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SubjectRelation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Person&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cardinality&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;1*&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inlined&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;book&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SubjectRelation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Book&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cardinality&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;1*&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inlined&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;role&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SubjectRelation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Role&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cardinality&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;1*&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;inlined&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;preface_writer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VirtualRelation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;C is Contribution, C author S, C book O, &amp;#39;&lt;/span&gt;
                                 &lt;span class="s"&gt;&amp;#39;C role R, R name &amp;quot;preface writer&amp;quot;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
Any P WHERE B is Book, P preface_writer B
&lt;/pre&gt;
&lt;p&gt;Will we need a materialized view in the database, a standard relation maintained by hooks,
rewrite the RQL on-the-fly ? Time will tell.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;cards with logic (mustache js templates for example)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;coffeescript ? brython ? javascript ? prototype something with CubicDB + WebService that
outputs json + user interface in full javascript&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;package separately Cubic(Web)DB et CubicWeb ?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;think about the overall architecture (using WSGI, persistent sessions, etc.), and find
solutions that fit a distributed architecture (look at paste.deploy, circus, etc.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;clean up the javascript en web/data/*.js&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;configurable metadata, managing the size of the &lt;tt class="docutils literal"&gt;entities&lt;/tt&gt; table&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;more SPARQL&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;namespaces for the data models of the cubes&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As already said on the mailing list, other developers and contributors are more than welcome to share their own goals in order to define a roadmap that best fits everyone's needs.&lt;/p&gt;
&lt;p&gt;Logilab's next roadmap meeting will be held at the beginning of April 2013.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2013-02-04T14:45-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2709670</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2580877</guid>
  <title>What's new in CubicWeb 3.16</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/9HxIMhW_a7o/2580877</link>
  <description>&lt;h3 class="title"&gt;What's new in CubicWeb 3.16?&lt;/h3&gt;
&lt;div class="section" id="new-functionalities"&gt;
&lt;h3&gt;&lt;a&gt;New functionalities&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Add a new dataimport store (&lt;cite&gt;SQLGenObjectStore&lt;/cite&gt;). This store enables a fast
import of data (entity creation, link creation) in CubicWeb, by directly
flushing information in SQL.  This may only be used with PostgreSQL, as it
requires the 'COPY FROM' command.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="api-changes"&gt;
&lt;h3&gt;&lt;a&gt;API changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class="first"&gt;Orm: &lt;cite&gt;set_attributes&lt;/cite&gt; and &lt;cite&gt;set_relations&lt;/cite&gt; are unified (and
deprecated) in favor of &lt;cite&gt;cw_set&lt;/cite&gt; that works in all cases.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;db-api/configuration: all the external repository connection information is
now in an URL (see &lt;a class="reference" href="http://www.cubicweb.org/2521848"&gt;#2521848&lt;/a&gt;),
allowing to drop specific options of pyro nameserver host, group, etc and fix
broken &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; source. Configuration related changes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Dropped 'pyro-ns-host', 'pyro-instance-id', 'pyro-ns-group' from the client side
configuration, in favor of 'repository-uri'. &lt;strong&gt;NO MIGRATION IS DONE&lt;/strong&gt;,
supposing there is no web-only configuration in the wild.&lt;/li&gt;
&lt;li&gt;Stop discovering the connection method through &lt;cite&gt;repo_method&lt;/cite&gt; class attribute
of the configuration, varying according to the configuration class. This is
a first step on the way to a simpler configuration handling.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;DB-API related changes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Stop indicating the connection method using &lt;cite&gt;ConnectionProperties&lt;/cite&gt;.&lt;/li&gt;
&lt;li&gt;Drop &lt;cite&gt;_cnxtype&lt;/cite&gt; attribute from &lt;cite&gt;Connection&lt;/cite&gt; and &lt;cite&gt;cnxtype&lt;/cite&gt; from
&lt;cite&gt;Session&lt;/cite&gt;. The former is replaced by a &lt;cite&gt;is_repo_in_memory&lt;/cite&gt; property
and the later is totaly useless.&lt;/li&gt;
&lt;li&gt;Turn &lt;cite&gt;repo_connect&lt;/cite&gt; into &lt;cite&gt;_repo_connect&lt;/cite&gt; to mark it as a private function.&lt;/li&gt;
&lt;li&gt;Deprecate &lt;cite&gt;in_memory_cnx&lt;/cite&gt; which becomes useless, use &lt;cite&gt;_repo_connect&lt;/cite&gt; instead
if necessary.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;the &amp;quot;&lt;a class="reference" href="tcp://"&gt;tcp://&lt;/a&gt;&amp;quot; uri scheme used for &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt;
communications (in a way reminiscent of Pyro) is now named
&amp;quot;zmqpickle-tcp://&amp;quot;, so as to make room for future zmq-based lightweight
communications (without python objects pickling).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Request.base_url gets a &lt;cite&gt;secure=True&lt;/cite&gt; optional parameter that yields
an https url if possible, allowing hook-generated content to send
secure urls (e.g. when sending mail notifications)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;Dataimport ucsvreader gets a new boolean &lt;cite&gt;ignore_errors&lt;/cite&gt;
parameter.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="unintrusive-api-changes"&gt;
&lt;h3&gt;&lt;a&gt;Unintrusive API changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Drop of &lt;cite&gt;cubicweb.web.uicfg.AutoformSectionRelationTags.bw_tag_map&lt;/cite&gt;,
deprecated since 3.6.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="user-interface-changes"&gt;
&lt;h3&gt;&lt;a&gt;User interface changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;The RQL search bar has now some auto-completion support. It means
relation types or entity types can be suggested while typing. It is
an awesome improvement over the current behaviour !&lt;/li&gt;
&lt;li&gt;The &lt;cite&gt;action box&lt;/cite&gt; associated with &lt;cite&gt;table&lt;/cite&gt; views (from &lt;cite&gt;tableview.py&lt;/cite&gt;)
has been transformed into a nice-looking series of small tabs; it
means that the possible actions are immediately visible and need not
be discovered by clicking on an almost invisible icon on the upper
right.&lt;/li&gt;
&lt;li&gt;The &lt;cite&gt;uicfg&lt;/cite&gt; module has moved to web/views/ and ui configuration
objects are now selectable. This will reduce the amount of
subclassing and whole methods replacement usually needed to
customize the ui behaviour in many cases.&lt;/li&gt;
&lt;li&gt;Remove changelog view, as neither cubicweb nor known cubes/applications
were properly feeding related files.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="other-changes"&gt;
&lt;h3&gt;&lt;a&gt;Other changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;'pyrorql' sources will be automatically updated to use an URL to locate the source
rather than configuration option. 'zmqrql' sources were broken before this change,
so no upgrade is needed...&lt;/li&gt;
&lt;li&gt;Debugging filters for Hooks and Operations have been added.&lt;/li&gt;
&lt;li&gt;Some cubicweb-ctl commands used to show the output of &lt;cite&gt;msgcat&lt;/cite&gt; and
&lt;cite&gt;msgfmt&lt;/cite&gt;; they don't anymore.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description>
  <dc:date>2013-01-25T18:13-01:00</dc:date>
  <dc:creator>Aurelien Campeas</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2580877</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2544502</guid>
  <title>December 2012 CubicWeb Sprint Report</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/WOB8BlAEkpU/2544502</link>
  <description>&lt;p&gt;For two days, on dec 13th/14th 2012, ten hackers gathered at &lt;a class="reference" href="http://www.logilab.fr"&gt;Logilab&lt;/a&gt; to improve the user interface of &lt;a class="reference" href="http://www.cubicweb.org/"&gt;CubicWeb&lt;/a&gt;. This hackathon was initiated by
&lt;a class="reference" href="http://www.crealibre.com"&gt;Crealibre&lt;/a&gt;. About a year ago, they started the &lt;a class="reference" href="http://www.orbui.com"&gt;Orbui&lt;/a&gt; project, a new user interface for CubicWeb based on the &lt;a class="reference" href="http://twitter.github.com/bootstrap/"&gt;Bootstrap&lt;/a&gt; HTML/CSS framework.&lt;/p&gt;
&lt;img alt="http://www.orbui.com/images/itisa960.png" src="http://www.orbui.com/images/itisa960.png" style="width: 700px;" /&gt;
&lt;p&gt;Several projects at Logilab and Crealibre proved that Orbui was heading in the right direction, but that it had to fight with the default user interface of Cubicweb. Orbui makes different design/ergonomic choices and needs different HTML/CSS structure and Javascript components.&lt;/p&gt;
&lt;p&gt;Sylvain published a &lt;a class="reference" href="http://www.cubicweb.org/blogentry/2356431"&gt;roadmap&lt;/a&gt; back in may with a section titled &amp;quot;on the road to Bootstrap&amp;quot;. After more than half a day of heated debate on the firts day, it was decided to follow the direction he pointed to. We started extracting from CubicWeb the default user interface and turning it into a set of cubes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.cubicweb.org/project/cubicweb-legacyui"&gt;cubicweb-legacyui&lt;/a&gt;: css, views and templates extracted from CubicWeb 3.16, so as to provide full backward compatibility&lt;/li&gt;
&lt;li&gt;cubicweb-bootstrap: empty cube with only bootstrap version 2.2.2 in data/&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.cubicweb.org/project/cubicweb-squareui"&gt;cubicweb-squareui&lt;/a&gt;: bootstrapified version of legacyui (slightly altered to benefit from the bootstrap css without breaking backward compatibility too hard)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;At the end of the sprint, one could &lt;cite&gt;add_cube('squareui')&lt;/cite&gt; on an existing application and keep it usable... and get &amp;quot;some kind of responsiveness&amp;quot; for free, thus proving that we were on the right track.&lt;/p&gt;
&lt;p&gt;A lot of work is still ahead of us, but we have moved a few step forward towards the goal of making it easier to implement different UIs on top of CubicWeb 3.17.&lt;/p&gt;
&lt;p&gt;For the curious, here is what the skeleton of legacyui.views.maintemplate (aka cw.web.views.maintemplate) looks like:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt; (MainTemplate.template_body_header)
  &lt;span class="nt"&gt;&amp;lt;table&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;header&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; (HTMLPageHeader.main_header)
    for header in self.headers:
       &lt;span class="nt"&gt;&amp;lt;td&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;header-{left,center,right}&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
           render selected components(ctxcomponents, header-{left,center,right})
       &lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;stateheader&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; HTMLPageHeader.call
     &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;stateMessage&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; HTMLPageHeader.state_header
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;page&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; MainTemplate.template_body_header
    &lt;span class="nt"&gt;&amp;lt;table&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;mainLayout&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; MainTemplate.template_body_header
      if boxes (selected components(ctxcomponents, left): MainTemplate.nav_column
        &lt;span class="nt"&gt;&amp;lt;td&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;navColumnLeft&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;navboxes&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
             render boxes
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;td&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentColumn&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; MainTemplate.template_body_header
         render selected components(rqlinput)
         render selected components(applmessages)
         if navtop (selected components(ctxcomponents, navtop): HTMLContentHeader.call
           &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentheader&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
             render components
           &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
           &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;clear&amp;#39;&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
         &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;pageContent&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; MainTemplate.call
           if vtitle:
              &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;vtitle&amp;quot;&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
           if etypenavigation:
              render etypenavigation
           view pagination
           &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentmain&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
              render view
           &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
           view pagination
         &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
         if navbottom (selected components(ctxcomponents, navbottom): HTMLContentFooter.call
           &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentfooter&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
             render components
           &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/td&amp;gt;&lt;/span&gt;
      if boxes (selected components(ctxcomponents, right): MainTemplate.nav_column
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;navColumnRight&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;navboxes&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
             render boxes
          &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;footer&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt; HTMLPageFooter.call
     render actions selected (actions, &amp;#39;footer&amp;#39;)
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;and here is what the skeleton from squareui.views.maintemplate looks like:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;container-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;header&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;row-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- .header --&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;row-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;navColumnLeft&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;span3&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- .leftcolumn --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentColumn&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;span6&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- .contentcol --&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;row-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentheader&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;span12&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="c"&gt;&amp;lt;!-- .contentheader --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;row-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentmain&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;span12&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="c"&gt;&amp;lt;!-- .contentmain --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;row-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;contentfooter&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;span12&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="c"&gt;&amp;lt;!-- .contentfooter --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;navColumnRight&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;span3&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- .rightcolumn --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;footer&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;row-fluid&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- .footer --&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Stay tuned for the updates on this (important) topic!&lt;/p&gt;
</description>
  <dc:date>2012-12-21T22:02-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2544502</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2544372</guid>
  <title>Candidature au concours dataconnexions#2</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/UPMhLyT2p_E/2544372</link>
  <description>&lt;p&gt;Au nom de la communauté des utilisateurs et développeurs de CubicWeb, je viens de déposer la candidature suivante au &lt;a class="reference" href="http://www.etalab.gouv.fr/pages/inscription-au-concours-8312011.html"&gt;concours dataconnexions#2&lt;/a&gt;.&lt;/p&gt;
&lt;div class="section" id="questionnaire-de-description-du-projet"&gt;
&lt;h3&gt;&lt;a&gt;1. Questionnaire de description du Projet&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="intitule-du-projet"&gt;
&lt;h4&gt;&lt;a&gt;Intitulé du projet&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;CubicWeb - plate-forme libre de développement pour le web sémantique&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="categorie-de-concours-choisie"&gt;
&lt;h4&gt;&lt;a&gt;Catégorie de concours choisie&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Choisir parmi: Grand public / Professionnel / Utilité publique / Mobilité et
territoires&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Utilité publique (?)&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="quel-probleme-tentez-vous-de-resoudre"&gt;
&lt;h4&gt;&lt;a&gt;Quel problème tentez-vous de résoudre ?&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Décrivez le (ou les) problème(s) que votre projet tente de résoudre, ainsi que
son (leur) importance : taille du marché, fréquence d’utilisation potentielle,
population concernée, bénéfices éventuels de service public, etc.  (maximum 1000
signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;L'avènement du web sémantique et de l'Open Data nécessite de disposer d'outils
adaptés pour développer des applications centrées sur les données.&lt;/p&gt;
&lt;p&gt;Ces outils doivent permettre d'importer des données facilement, de les mettre en
relation lorsqu'elles proviennent de sources disjointes, de les republier et de
faciliter leur interrogation et leur visualisation.&lt;/p&gt;
&lt;p&gt;Idéalement, ces outils doivent utiliser et respecter les standards ouverts
d'internet afin de simplifier les communications et les échanges, mais aussi
faciliter le développement pour les terminaux multiples (ordinateur, tablette,
smartphone).&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="comment-tentez-vous-de-le-resoudre"&gt;
&lt;h4&gt;&lt;a&gt;Comment tentez-vous de le résoudre ?&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Décrivez votre produit, service ou visualisation, dans sa forme actuelle et le
cas échéant après les développements futurs éventuels que vous envisagez.
Précisez le ou les jeux de données publiques que vous utilisez à cet effet
(maximum 1000 signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;CubicWeb est une plate-forme libre de développement pour le web sémantique.&lt;/p&gt;
&lt;p&gt;CubicWeb permet aux développeurs de se concentrer sur les spécificités de leur
application plutôt que d'avoir à réinventer les briques essentielles de
l'import, la fusion, la publication, l'interrogation et la visualisation de
données.&lt;/p&gt;
&lt;p&gt;CubicWeb est un logiciel libre développé ouvertement sur internet par une
communauté réduite mais déjà internationale. CubicWeb est disponible sous
licence LGPL, respecte les standards du W3C (RDF, SPARQL, HTML5, CSS3,
Responsive Design) et sait gérer nativement plusieurs modèles de données
faisant office de standards de fait (FOAF, SIOC, DOAP, etc).&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="quel-est-votre-modele-daffaire"&gt;
&lt;h4&gt;&lt;a&gt;Quel est votre modèle d’affaire ?&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Décrivez le modèle d’affaire de votre projet, c’est-à-dire les conditions de sa
pérennité et de son développement : plan d’affaires et projections commerciales
dans le cas d’un projet entrepreneurial ; objectifs, donneurs clés, partie
prenantes dans le cas d’un projet d’ordre civique (maximum 1000 signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Plusieurs sociétés commerciales s'appuient aujourd'hui sur CubicWeb pour vendre
des services informatiques. L'objectif de cette communauté est de croître pour
bénéficier d'une audience plus large et d'une mutualisation plus importante des
coûts de maintenance et de développement de la plate-forme CubicWeb.&lt;/p&gt;
&lt;p&gt;Parmi les utilisateurs de CubicWeb, on compte à ce jour la Bibliothèque
nationale de France, EDF, GDF-Suez, le Commissariat à l'Energie Atomique, le
Centre National d'Etudes Spatiales, l'Institut Radioprotection et Sûreté
Nucléaire, l'INRIA, des laboratoires de recherche médicale et des entreprises
du domaine informatique.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="quel-est-letat-davancement-de-votre-projet"&gt;
&lt;h4&gt;&lt;a&gt;Quel est l’état d’avancement de votre projet ?&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Décrivez les étapes que vous avez franchies, les ressources mobilisées, les
indicateurs et métriques déjà établies, etc. (maximum 1000 signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Le projet CubicWeb est issu d'un effort de R&amp;amp;D commencé en 2001 par la société
Logilab, qui avait comme objectif de se doter d'un outil permettant le
développement d'applications centrées sur les données et respectant les
standards du web sémantique en cours d'élaboration au W3C.&lt;/p&gt;
&lt;p&gt;Depuis 2008, CubicWeb est un logiciel libre dont le développement est mené
ouvertement sur internet.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="qui-vous-accompagne-sur-ce-projet"&gt;
&lt;h4&gt;&lt;a&gt;Qui vous accompagne sur ce projet ?&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Décrivez l’équipe qui vous accompagne dans votre projet (le cas échéant), vos
compétences, expériences et réalisations, ainsi que les partenaires éventuels
qui vous soutiennent (maximum 1000 signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;N/A.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="comment-dataconnexions-peut-il-vous-aider"&gt;
&lt;h4&gt;&lt;a&gt;Comment DataConnexions peut-­il vous aider ?&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Détaillez toutes les précisions additionnelles que vous souhaiteriez apporter
au sujet de votre projet, et expliquez en quoi DataConnexions peut contribuer à
pérenniser son développement (maximum 1000 signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Plusieurs sociétés commerciales s'appuient aujourd'hui sur CubicWeb pour vendre
des services informatiques. Les utilisations industrielles de CubicWeb sont
variées et concernent des applications importantes, voire critiques.&lt;/p&gt;
&lt;p&gt;CubicWeb est un outil peu (re)connu et sa communauté est aujourd'hui réduite,
malgré ses solides références et le récent engouement pour l'Open Data.&lt;/p&gt;
&lt;p&gt;DataConnexions pourrait être une tribune et une vitrine permettant à CubicWeb de
trouver de nouveaux développeurs d'applications préférant bénéficier de
l'expérience capitalisée dans cet outil libre plutôt que de rédécouvrir et
déjouer un par un les pièges rencontrés au cours des dix ans qui ont été
nécessaires à sa réalisation.&lt;/p&gt;
&lt;p&gt;L'objectif de cette candidature est donc de faire croître la communauté des
utilisateurs et contributeurs de CubicWeb.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="video-de-presentation"&gt;
&lt;h3&gt;&lt;a&gt;2. Vidéo de présentation&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Lien permettant de télécharger une vidéo décrivant le Projet et ses
fonctionnalités, d’une durée maximale de 3 minutes&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Ce n’est pas la qualité de la vidéo qui est jugée, mais le projet lui-même. La
vidéo doit permettre de rendre compte des fonctionnalités du projet. Les
candidats sont encouragés à réaliser une capture d’écran ou un « screencast »
(par exemple avec des outils tels que CamStudio, Jing ou Screenr).&lt;/em&gt;&lt;/p&gt;
&lt;iframe width="560" height="315" src="http://www.youtube.com/embed/5-3J5-PzSu0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;!-- https://www.youtube.com/watch?v=5-3J5-PzSu0 --&gt;
&lt;p&gt;Démonstration de l'utilisation de CubicWeb pour importer et visualiser la liste
des gares françaises téléchargée depuis data.gouv.fr. Sélection des gares par le
filtre à facettes et affichage sur fond de carte openstreetmap, puis export en
RDF, JSON et CSV.&lt;/p&gt;
&lt;p&gt;CubicWeb est une plate-forme libre de développement pour le web sémantique, qui
permet aux développeurs de se concentrer sur les spécificités de leur
application plutôt que d'avoir à réinventer les briques essentielles de
l'import, la fusion, la publication, l'interrogation et la visualisation de
données.&lt;/p&gt;
&lt;p&gt;Lien vers &lt;a class="reference" href="https://www.youtube.com/watch?v=5-3J5-PzSu0"&gt;vidéo sur youtube&lt;/a&gt;. Miroir de la vidéo sur &lt;a class="reference" href="https://vimeo.com/56005936"&gt;vimeo.com&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="acces-en-ligne-au-projet"&gt;
&lt;h3&gt;&lt;a&gt;3. Accès en ligne au projet&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Lien permettant d’accéder au Projet, ou au code informatique compilé et
interprétable du Projet&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Par exemple : URL permettant de consulter, ou, le cas échéant, de télécharger
l’application, accompagnée, si nécessaire, d’instructions à cet
effet. L’application devra être facile à installer et aisément démontrable sur
sa plateforme de destination.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="reference" href="http://www.cubicweb.org"&gt;http://www.cubicweb.org&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="supports-de-communication"&gt;
&lt;h3&gt;&lt;a&gt;4. Supports de communication&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="description-non-confidentielle"&gt;
&lt;h4&gt;&lt;a&gt;Description Non Confidentielle&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Décrivez le Projet dans des termes compatibles avec une diffusion au grand
public : non confidentiels, compréhensibles par le plus grand nombre, et mettant
en avant l’intérêt du projet (maximum 1000 signes).&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;cf &amp;quot;comment tentez-vous de le résoudre&amp;quot;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="element-visuel-de-description"&gt;
&lt;h4&gt;&lt;a&gt;Elément visuel de description&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Lien vers un élément visuel décrivant et mettant en valeur le projet et ses
fonctionnalités (capture d’écran, page d’accueil, schéma de description).&lt;/em&gt;&lt;/p&gt;
&lt;img alt="/file/2544364?vid=download" src="/file/2544364?vid=download" style="width: 700px;" /&gt;
&lt;/div&gt;
&lt;div class="section" id="logo-du-projet"&gt;
&lt;h4&gt;&lt;a&gt;Logo du projet&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;Lien vers le logo du projet.&lt;/em&gt;&lt;/p&gt;
&lt;img alt="/file/2544362?vid=download" src="/file/2544362?vid=download" /&gt;
&lt;/div&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-12-20T12:07-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2544372</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2532796</guid>
  <title>Links roundup from dotjs.eu</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/goU_XNyUKjA/2532796</link>
  <description>&lt;p&gt;A few people from Logilab attended the &lt;a class="reference" href="http://www.dotjs.eu"&gt;dotjs&lt;/a&gt; conference in Paris last week. The conference wasn't exactly what we expected, we were hoping for more technical talks. Nevertheless, some of the things we saw were quite interesting. Some of them could be relevant to &lt;a class="reference" href="http://www.cubicweb.org"&gt;CubicWeb&lt;/a&gt;.&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2532779?vid=download" src="http://www.cubicweb.org/file/2532779?vid=download" /&gt;
&lt;p&gt;Here is a raw roundup of links collected last friday :&lt;/p&gt;
&lt;p&gt;&lt;div class="section"&gt;&lt;a href="https://developers.google.com/chrome-developer-tools/docs/overview" title="&amp;lt;p&amp;gt;advanced web developer tools inside Chrome Canary&amp;lt;/p&amp;gt;
"&gt;Chrome developer tools&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://yeoman.io/" title="&amp;lt;p&amp;gt;set of tools to create projects with many nodejs/javascript/css dependencies, initialize your project with test and run a local server before build.&amp;lt;/p&amp;gt;
"&gt;yeoman&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://gruntjs.com/" title="&amp;lt;p&amp;gt;task based command line tools for javascript projects (used by yeoman)&amp;lt;/p&amp;gt;
"&gt;grunt.js&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://backbonejs.org/" title="&amp;lt;p&amp;gt;clean MVC structured javascript library&amp;lt;/p&amp;gt;
"&gt;backbone.js&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://www.dartlang.org/" title="&amp;lt;p&amp;gt;Google language that compiles into javascript&amp;lt;/p&amp;gt;
"&gt;Dart&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://www.typescriptlang.org/" title="&amp;lt;p&amp;gt;Language that compiles to javascript (Microsoft)&amp;lt;/p&amp;gt;
"&gt;TypeScriptLang&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://expressjs.com/" title="&amp;lt;p&amp;gt;web application framework for node.js&amp;lt;/p&amp;gt;
"&gt;Express.js&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://visionmedia.github.com/mocha/" title="&amp;lt;p&amp;gt;Javascript test framework runs in node and in the browser (used in yeoman)&amp;lt;/p&amp;gt;
"&gt;Mocha&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://vojtajina.github.com/testacular/" title="&amp;lt;p&amp;gt;test framework in nodejs.&amp;lt;/p&amp;gt;
"&gt;Testacular&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://sass-lang.com/" title="&amp;lt;p&amp;gt;SASS is a language that compiles into CSS, high-level functionnality available (nested rules, variables, mixins, etc)&amp;lt;/p&amp;gt;
"&gt;SASS&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://angularjs.org/" title="&amp;lt;p&amp;gt;javascript library to &amp;amp;quot;enhance&amp;amp;quot; HTML. Scary syntax.&amp;lt;/p&amp;gt;
"&gt;Angular.js&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://enyojs.com/" title="&amp;lt;p&amp;gt;framework to develop web applications that also run on mobile (used in webOS). Strengths are supposed to be the components architecture. For samples see : &amp;lt;a class=&amp;quot;reference&amp;quot; href=&amp;quot;http://enyojs.com/sampler/&amp;quot;&amp;gt;http://enyojs.com/sampler/&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
"&gt;Enyo.js&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://socket.io/" title="&amp;lt;p&amp;gt;enables realtime apps in the browser. Interresting architecture of fallback usage (try websockets, then flash socket, then ajax long poling, then ajax multipart streaming, then forever iframe and finally jsonp polling).&amp;lt;/p&amp;gt;
"&gt;Socket.io&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="https://npmjs.org/package/when" title="&amp;lt;p&amp;gt;when.js is a javascript implementation of the &amp;amp;quot;Promises&amp;amp;quot; pattern &amp;lt;a class=&amp;quot;reference&amp;quot; href=&amp;quot;https://en.wikipedia.org/wiki/Futures_and_promises&amp;quot;&amp;gt;https://en.wikipedia.org/wiki/Futures_and_promises&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
"&gt;when.js&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://coffeescript.org/" title="&amp;lt;p&amp;gt;is a little language that compiles into Javascript. Notion of transpiler (as opposed to compiler)&amp;lt;/p&amp;gt;
"&gt;Coffeescript&lt;/a&gt;&lt;/div&gt;&lt;div class="section"&gt;&lt;a href="http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/" title="&amp;lt;p&amp;gt;Javascript Source Maps : a way to find the original code when the browser only sees compiled javascript code.&amp;lt;/p&amp;gt;
"&gt;Source Maps explained&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
</description>
  <dc:date>2012-12-10T14:26-01:00</dc:date>
  <dc:creator>Arthur Lutz</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2532796</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2517540</guid>
  <title>CubicWeb sprint in Paris - 2012/12/13-14</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/ASrXnNTccFA/2517540</link>
  <description>&lt;div class="section" id="topics"&gt;
&lt;h3&gt;&lt;a&gt;Topics&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;To be decided. Some possible topics are :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Work on CubicWeb front end : Anything related to Themaintemplate, primaryview, reledit, tables handling etc.&lt;/li&gt;
&lt;li&gt;Share the Evolution and more integration of the OrbUI project for CW&lt;/li&gt;
&lt;li&gt;Things to do for HTML5 and bootstrap integration&lt;/li&gt;
&lt;li&gt;Work on ideas from &lt;a class="reference" href="http://www.cubicweb.org/blogentry/2356431"&gt;Thoughts on CubicWeb 4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;other ideas are welcome&lt;/strong&gt;, please bring them up on &lt;a class="reference" href="mailto:cubicweb&amp;#64;lists.cubicweb.org"&gt;cubicweb&amp;#64;lists.cubicweb.org&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="location"&gt;
&lt;h3&gt;&lt;a&gt;Location&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This sprint will take place in decembre 2012 from thursday the 13th to friday the 14th. You are more than welcome to come along, help out and contribute. An introduction is planned for newcomers.&lt;/p&gt;
&lt;p&gt;Network resources will be available for those bringing laptops.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Address&lt;/strong&gt; : 104 Boulevard Auguste-Blanqui, Paris. Ring &amp;quot;Logilab&amp;quot; (&lt;a class="reference" href="http://maps.google.fr/maps?f=q&amp;amp;source=s_q&amp;amp;hl=fr&amp;amp;geocode=&amp;amp;q=104+boulevard+blanqui,+paris&amp;amp;aq=&amp;amp;sll=46.75984,1.738281&amp;amp;sspn=9.726294,22.214355&amp;amp;ie=UTF8&amp;amp;hq=&amp;amp;hnear=104+Boulevard+Auguste+Blanqui,+75013+Paris,+Ile-de-France&amp;amp;z=16"&gt;googlemap&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Metro&lt;/strong&gt; : Glacière&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Contact&lt;/strong&gt; : &lt;a class="reference" href="http://www.logilab.fr/contact"&gt;http://www.logilab.fr/contact&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dates&lt;/strong&gt; : 13/12/2012 to 14/12/2012&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="participants"&gt;
&lt;h3&gt;&lt;a&gt;Participants&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Celso Flores (Crealibre - Mexico)&lt;/li&gt;
&lt;li&gt;Carine Fourrier (Crealibre - Mexico)&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-11-11T21:12-01:00</dc:date>
  <dc:creator>Nicolas Chauvat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2517540</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2497043</guid>
  <title>Building your URLs in cubicweb</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/_67-TZqlVao/2497043</link>
  <description>&lt;h3 class="title"&gt;Building your URLs in cubicweb&lt;/h3&gt;
&lt;div class="section" id="aim"&gt;
&lt;h3&gt;&lt;a&gt;Aim&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;In &lt;a class="reference" href="http://www.cubicweb.org/"&gt;cubicweb&lt;/a&gt;, you often have to build url's that redirect the current view to
a specific entity view or allow the execution of a given action. Moreover, you
often want also to fallback to the previous view once the specific action or
edition is done, or redirect also to another entity's specific view.&lt;/p&gt;
&lt;p&gt;To do so, &lt;a class="reference" href="http://www.cubicweb.org/"&gt;cubicweb&lt;/a&gt; provides you with a set of powerful tools, however as
there is often &lt;em&gt;more than one way to do it&lt;/em&gt;, this blog entry is here to help
you in choosing the preferred way.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="tools-at-your-disposal"&gt;
&lt;h3&gt;&lt;a&gt;Tools at your disposal&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="the-universal-url-builder-build-url"&gt;
&lt;h4&gt;&lt;a&gt;The universal URL builder: &lt;tt class="docutils literal"&gt;build_url()&lt;/tt&gt;&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;em&gt;build_url&lt;/em&gt; is accessible in any context, so for instance in the rendering of a
given entity view you can call &lt;tt class="docutils literal"&gt;self._cw.build_url&lt;/tt&gt; to build you URLs easily,
which is the most common case. In class methods (for instance, when declaring the
rendering methods of an &lt;em&gt;EntityTableView&lt;/em&gt;), you can access it through the context
of instantiated appobject which are usually given as argument,
e.g. &lt;tt class="docutils literal"&gt;entity._cw.build_url&lt;/tt&gt;. For test purposes you can also call
&lt;tt class="docutils literal"&gt;session.build_url&lt;/tt&gt; in cubicweb shells.&lt;/p&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;build_url&lt;/tt&gt; basically take a first optional, the &lt;em&gt;path&lt;/em&gt;, relative to the base
url of the site, and arbitrary named arguments that will be encoded as url
parameters. Unless you wish to direct to a custom controller, or to match
an URL rewrite url, you don't have to specify the &lt;em&gt;path&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Extra parameters given to &lt;em&gt;build_url&lt;/em&gt; will vary according to your needs, however
most common arguments understood by default cubicweb views are the followings:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;vid&lt;/tt&gt;: the built view &lt;tt class="docutils literal"&gt;__regid__&lt;/tt&gt;;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;rql&lt;/tt&gt;: the RQL query used to retreive data on which the view should be
applied;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;eid&lt;/tt&gt;: the identifier of an entity, which you should use instead of &lt;tt class="docutils literal"&gt;rql&lt;/tt&gt;
when the view apply to a single entity (most often);&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;__message&lt;/tt&gt;: an information message to display inside the view;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;__linkto&lt;/tt&gt;: in case of an entity creation url, will allow to set some
specific relations between both entities;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;__redirectpath&lt;/tt&gt;: the URL of the entity of the redirection;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;__redirectvid&lt;/tt&gt;: the view id of the redirection.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;tt class="docutils literal"&gt;__redirectvid&lt;/tt&gt; and &lt;tt class="docutils literal"&gt;__redirectpath&lt;/tt&gt; are used to control redirection after
posting a form and are more detailed in the cubicweb documentation, chapter
related to the edition control
(&lt;a class="reference" href="http://docs.cubicweb.org/devweb/edition/editcontroller.html"&gt;http://docs.cubicweb.org/devweb/edition/editcontroller.html&lt;/a&gt;).&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="exploring-entities-associated-urls"&gt;
&lt;h4&gt;&lt;a&gt;Exploring entities associated URLs&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Generally, an entity has two important methods that retrieve its absolute or
relative urls:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;entity.rest_path()&lt;/tt&gt; will return something like &lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;&amp;lt;type&amp;gt;/&amp;lt;eid&amp;gt;&lt;/span&gt;&lt;/tt&gt; where
&amp;lt;type&amp;gt; corresponds to the entity type and &amp;lt;eid&amp;gt; the entity eid;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;entity.absolute_url()&lt;/tt&gt; will return the full url of the entity
&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;http://&amp;lt;baseurl&amp;gt;/&amp;lt;type&amp;gt;/&amp;lt;eid&amp;gt;&lt;/span&gt;&lt;/tt&gt;. In case you want to access a specific view
of the entity, just pass the &lt;em&gt;vid='myviewid'&lt;/em&gt; argument. You can give
arbitrary arguments to this method that will be encoded as url parameters.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="getting-a-proper-rql"&gt;
&lt;h4&gt;&lt;a&gt;Getting a proper RQL&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Passing the rql to the &lt;em&gt;build_url&lt;/em&gt; method requires to have a proper RQL
expression. To do so, there is a convenience method, &lt;em&gt;printable_rql()&lt;/em&gt;, that is
accessible in rset resulting from RQL queries. This allows to apply a view to the
same result set as the one currently process, simply using &lt;tt class="docutils literal"&gt;rql =
self.cw_rset.printable_rql()&lt;/tt&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="getting-urls-from-the-current-view"&gt;
&lt;h4&gt;&lt;a&gt;Getting URLs from the current view&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;There are several ways to get URL of the current view, the canonical one being to
use &lt;tt class="docutils literal"&gt;self._cw.relative_path(includeparams=True)&lt;/tt&gt; which will return the path of
the current view relative to the base url of the site (otherwise use
&lt;tt class="docutils literal"&gt;self._cw.url()&lt;/tt&gt;, including parameters or not according to value given as
&lt;tt class="docutils literal"&gt;includeparams&lt;/tt&gt;).&lt;/p&gt;
&lt;p&gt;You can also retrieve values given to individual parameters using &lt;tt class="docutils literal"&gt;self._cw.form&lt;/tt&gt;, eg:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;self._cw.form.get('vid',&lt;/span&gt; '')&lt;/tt&gt; will return only the view id;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;self._cw.form.get('rql',&lt;/span&gt; '')&lt;/tt&gt; will return only the RQL;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;self._cw.form.get('__redirectvid',&lt;/span&gt; '')&lt;/tt&gt; will return the redirection
view if defined;&lt;/li&gt;
&lt;li&gt;&lt;tt class="docutils literal"&gt;&lt;span class="pre"&gt;self._cw.form.get('__redirectpath',&lt;/span&gt; '')&lt;/tt&gt; will return the redirection
path if defined.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="how-to-redirect-to-non-entity-view"&gt;
&lt;h3&gt;&lt;a&gt;How to redirect to non-entity view?&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This case often appears when you want to create a link to a startup view or a
controller. It the first case, you simply build you URL like this:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
self._cw.build_url('view', vid='my_view_id')
&lt;/pre&gt;
&lt;p&gt;The latter case appears when you want to call a controller directly without
having to define a form in your view. This can happen for instance when you
want to create a URL that will set a relation between 2 objects and do not need
any confirmation for that. The URL construction is done like this:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
self._cw.build_url('my_controller_id', arg1=value1, arg2=value2, ...)
&lt;/pre&gt;
&lt;p&gt;Any extra arguments passed to the &lt;tt class="docutils literal"&gt;build_url&lt;/tt&gt; method will be available in the
controller as key, values pairs of the &lt;tt class="docutils literal"&gt;self._cw.forms&lt;/tt&gt; dictionary. This is
especially useful when you want to define some kind of hidden attributes
but there is not form to put them into.&lt;/p&gt;
&lt;p&gt;And, last but not least, a convenient way to get the root URL of the instance:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
self._cw.base_url()
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="how-to-link-to-a-registered-action"&gt;
&lt;h3&gt;&lt;a&gt;How to link to a registered action?&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;There are other ways to create a link to registered actions than using
&lt;em&gt;build_url&lt;/em&gt;, mostly by accessing them &lt;em&gt;via&lt;/em&gt; the registry &lt;em&gt;vreg&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;For instance, the action registry holds effectively all possible actions in a
given context: a specific action can be selected using the &lt;em&gt;select_or_none()&lt;/em&gt;
method, or even using the &lt;em&gt;possible_action()&lt;/em&gt; method which will return a list of
categorized actions. The url of the action is then available as
&lt;tt class="docutils literal"&gt;action.url()&lt;/tt&gt;. For contextual components (e.g. boxes), you can even directly
get a link to the selected action(s) using the &lt;tt class="docutils literal"&gt;self.action_link(this_action)&lt;/tt&gt;
method.&lt;/p&gt;
&lt;p&gt;If the action corresponds to the creation of a new entity, there is an even
faster and elegant way to do it, using the schema of your cube:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
url = self._cw.vreg[&amp;quot;etypes&amp;quot;].etype_class('MyEntity').cw_create_url(self._cw)
&lt;/pre&gt;
&lt;/div&gt;
&lt;div class="section" id="some-concrete-cases"&gt;
&lt;h3&gt;&lt;a&gt;Some concrete cases&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Get the URL of the &lt;em&gt;outofcontext&lt;/em&gt; view of an entity:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;link&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;absolute_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;outofcontext&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Create a link to a given controller then fall back to the current view:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;In your entity view:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;&amp;lt;a href=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&amp;gt;Click me&amp;lt;/a&amp;gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;xml_escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;mycontrollerid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;arg1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;value1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;arg2&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;value2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;rql&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;printable_rql&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
                &lt;span class="n"&gt;__redirectvid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;vid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;In your controller:&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;publish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
     &lt;span class="n"&gt;value1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;arg1&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;arg2&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
     &lt;span class="c"&gt;# do some stuff with value1 and value2 here...&lt;/span&gt;
     &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="n"&gt;Redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rql&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;rql&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
         &lt;span class="n"&gt;vid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;__redirectvid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
         &lt;span class="n"&gt;__message&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;you message&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Create a link to add a given entity and relate this entity to the current one
with a relation &lt;em&gt;'child_of'&lt;/em&gt;, then go back to the current entity's view:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;entity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_entity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;&amp;lt;a href=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&amp;gt;Click me&amp;lt;/a&amp;gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;xml_escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;add/Mychildentity&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;__linkto&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;child_of:&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;:object&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;__redirectpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rest_path&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
                &lt;span class="n"&gt;__redirectvid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;vid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Same example, but we suppose that we are in a multiple rset entity view, and we
want to go back afterwards to this view:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;entity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_entity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;&amp;lt;a href=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&amp;gt;Click me&amp;lt;/a&amp;gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;xml_escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;add/Mychildentity&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;rql&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;printable_rql&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
                &lt;span class="n"&gt;__linkto&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;child_of:&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt;:object&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;__redirectvid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;vid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Create links to all &lt;em&gt;'menuactions'&lt;/em&gt; in a view:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;actions&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vreg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;actions&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;possible_actions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;action_links&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;unicode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;action_link&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;actions&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;menuactions&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;())]&lt;/span&gt;
&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt; &lt;span class="s"&gt;u&amp;#39;  |  &amp;#39;&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;action_links&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-09-25T16:17-01:00</dc:date>
  <dc:creator>Stéphane Bugat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2497043</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2469531</guid>
  <title>How to create your own forms and controllers?</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/wgFPANEiUGU/2469531</link>
  <description>&lt;div class="section" id="aim"&gt;
&lt;h3&gt;&lt;a&gt;Aim&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Sometimes you need to associate to a given view your own specific form
and the associated controller. We will see in this blog entry how it
can be done in &lt;a class="reference" href="http://www.cubicweb.org/"&gt;cubicweb&lt;/a&gt; on a concrete case.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="the-case"&gt;
&lt;h3&gt;&lt;a&gt;The case&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Let's suppose you're working on a social network project where you have
to develop friend-of-a-frient (foaf) relationships between persons.
For that purpose, we use the cubicweb-person cube and create in our
scheme relations between persons like &lt;tt class="docutils literal"&gt;X in_contact_with Y&lt;/tt&gt;:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
class in_contact_with(RelationDefinition):
      subject = 'Person'
      object = 'Person'
      cardinality = '**'
      symmetric = True
&lt;/pre&gt;
&lt;p&gt;We will also assume that a given Person corresponds to a unique CWUser through
the relation &lt;tt class="docutils literal"&gt;is_user&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Although it is not evident, we would like that any connected person can chose
to &lt;em&gt;disconnect&lt;/em&gt; himself from another person at any time. For that, we will
create a table view that will display the list of connected users, with a
custom column giving the ability to &amp;quot;disconnect&amp;quot; with the person.&lt;/p&gt;
&lt;p&gt;Before disconnecting with this particular person, we would like also to have
a confirmation form.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="how-to-proceed"&gt;
&lt;h3&gt;&lt;a&gt;How to proceed&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The following steps were defined to address the above issue:&lt;/p&gt;
&lt;ol class="arabic simple"&gt;
&lt;li&gt;Define a &amp;quot;contact view&amp;quot; that will display the list of known contacts
of the connected user ;&lt;/li&gt;
&lt;li&gt;In this contact view, allow the user to click on a specific contact
so as to remove him ;&lt;/li&gt;
&lt;li&gt;Create a deletion confirmation view, that will contain:&lt;ul&gt;
&lt;li&gt;A form holding the buttons for deletion confirmation or cancel;&lt;/li&gt;
&lt;li&gt;A controller responsible for the actual deletion or the cancelling.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class="section" id="the-contact-view"&gt;
&lt;h3&gt;&lt;a&gt;The contact view&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="rendering-a-table-view-of-connected-persons"&gt;
&lt;h4&gt;&lt;a&gt;Rendering a table view of connected persons&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;To display the list of connected persons to the current person, but also to add
custom columns that do not refer specifically to attributes of a given entity,
the best choice is to use &lt;tt class="docutils literal"&gt;EntityTableView&lt;/tt&gt; (see &lt;a class="reference" href="http://docs.cubicweb.org/devweb/views/table.html"&gt;here&lt;/a&gt; for more information):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;ContactView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;EntityTableView&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;__regid__&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;contacts_tableview&amp;#39;&lt;/span&gt;
    &lt;span class="n"&gt;__select__&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;is_instance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Person&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;columns&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;person&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;firstname&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;surname&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;email&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;phone&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;remove&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;layout_args&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;display_filter&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;top&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;add_view_actions&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cell_remove&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;link to the suppression of the relation between both contacts&amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
        &lt;span class="n"&gt;icon_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;img/user_delete.png&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;action_url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;vid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;suppress_contact_view&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;__redirectpath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;relative_path&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
                &lt;span class="n"&gt;__redirectvid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;__redirectvid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;&amp;lt;a href=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%(actionurl)s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot; title=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%(title)s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;&amp;gt;&amp;#39;&lt;/span&gt;
                &lt;span class="s"&gt;u&amp;#39;&amp;lt;img alt=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%(title)s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot; src=&amp;quot;&lt;/span&gt;&lt;span class="si"&gt;%(url)s&lt;/span&gt;&lt;span class="s"&gt;&amp;quot; /&amp;gt;&amp;lt;/a&amp;gt;&amp;#39;&lt;/span&gt;
                &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;actionurl&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;xml_escape&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;action_url&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                   &lt;span class="s"&gt;&amp;#39;title&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;remove from contacts&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
                   &lt;span class="s"&gt;&amp;#39;url&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;icon_url&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;

    &lt;span class="n"&gt;column_renderers&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="s"&gt;&amp;#39;person&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;MainEntityColRenderer&lt;/span&gt;&lt;span class="p"&gt;(),&lt;/span&gt;
            &lt;span class="s"&gt;&amp;#39;email&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;RelatedEntityColRenderer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;getrelated&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primary_email&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;primary_email&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; \
                        &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="s"&gt;&amp;#39;phone&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;RelatedEntityColRenderer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;getrelated&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;lambda&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;phone&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;phone&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="s"&gt;&amp;#39;remove&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;EntityTableColRenderer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;renderfunc&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;cell_remove&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;header&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;),}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;A few explanations about the above view:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;By default, the &lt;tt class="docutils literal"&gt;column&lt;/tt&gt; attribute contains a list of displayable attributes
of the entity. If one element of the list does not correspond to an attribute,
which is the case for &lt;tt class="docutils literal"&gt;'remove'&lt;/tt&gt; here, it has to have rendering function
defined in the dictionnary &lt;tt class="docutils literal"&gt;column_renderers&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;However, when the column header refers to a related entity attribute, we can
easily use the rendering function &lt;tt class="docutils literal"&gt;RelatedEntityColRenderer&lt;/tt&gt;, as it is the
case for the email and phone display.&lt;/li&gt;
&lt;li&gt;As for concerns the 'remove' column, we render a clickable image in the
&lt;tt class="docutils literal"&gt;cell_remove&lt;/tt&gt; method.  Here we have chosen an icon from famfamsilk that
is putted in our &lt;tt class="docutils literal"&gt;data/&lt;/tt&gt; directory, but feel free to chose a predefined
icon in the cubicweb shared data directory.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;em&gt;redirection&lt;/em&gt; URL associated to each image has to be a link to a specific
action allowing the user to remove the selected person from its contacts.
It is built using the &lt;tt class="docutils literal"&gt;self._cw.build_url()&lt;/tt&gt; convenience function. The
redirection view, &lt;tt class="docutils literal"&gt;'suppress_contact_view'&lt;/tt&gt;, will be defined later on. The
&lt;tt class="docutils literal"&gt;eid&lt;/tt&gt; argument passed refers to the id of the contact person the user wants
to remove.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="calling-the-contact-view"&gt;
&lt;h4&gt;&lt;a&gt;Calling the contact view&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The above view has to be called with a given rset which corresponds to the
list of known contacts for the connected user. In our case, we have defined
a &lt;cite&gt;StartupView&lt;/cite&gt; for the contact management, in which in the call function we
have added the following piece of code:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="n"&gt;person&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;is_user&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;object&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_entity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;rset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s"&gt;&amp;#39;Any X WHERE X is Person, X in_contact_with Y, &amp;#39;&lt;/span&gt;
        &lt;span class="s"&gt;&amp;#39;Y eid &lt;/span&gt;&lt;span class="si"&gt;%(eid)s&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;eid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;person&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;&amp;lt;h3&amp;gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Number of contacts in my network:&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;unicode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s"&gt;u&amp;#39;&amp;lt;/h3&amp;gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;wview&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;contacts_tableview&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The Person corresponding to the connected user is retrieved thanks to the
use of the &lt;cite&gt;related&lt;/cite&gt; method and the &lt;tt class="docutils literal"&gt;is_user&lt;/tt&gt; relation. The contact table
view is displayed inside the parent &lt;cite&gt;StartupView&lt;/cite&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="creation-of-the-deletion-confirmation-view"&gt;
&lt;h3&gt;&lt;a&gt;Creation of the deletion confirmation view&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="defining-the-confirmation-view-for-contact-deletion"&gt;
&lt;h4&gt;&lt;a&gt;Defining the confirmation view for contact deletion&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The corresponding view is a simple &lt;tt class="docutils literal"&gt;View&lt;/tt&gt; class instance, that will display
a confirmation message and the related buttons. It could be defined as follows:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SuppressContactView&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;View&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;__regid__&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;suppress_contact_view&amp;#39;&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;cell_call&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;col&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;entity&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_entity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;col&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Are you sure you want to remove &lt;/span&gt;&lt;span class="si"&gt;%(name)s&lt;/span&gt;&lt;span class="s"&gt; from your contacts?&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;&amp;lt;p&amp;gt;&amp;#39;&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;name&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dc_long_title&lt;/span&gt;&lt;span class="p"&gt;()}&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s"&gt;u&amp;#39;&amp;lt;/p&amp;gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;vreg&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;forms&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;suppress_contact_form&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cw_rset&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add_hidden&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;eidto&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;entity&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;add_hidden&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;u&amp;#39;eidfrom&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;related&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;is_user&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s"&gt;&amp;#39;object&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;get_entity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;eid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Inside the &lt;tt class="docutils literal"&gt;cell_call()&lt;/tt&gt; method of this view, we will have to render a form
which aims at displaying both buttons (confirm deletion or cancel deletion).
This form will be described later on.&lt;/p&gt;
&lt;p&gt;The Person contact to remove is retrieved easily thanks to &lt;tt class="docutils literal"&gt;cw_rset&lt;/tt&gt;. The
Person corresponding to the connected user is here also retrieved thanks to the
&lt;em&gt;is_user&lt;/em&gt; relation. To make both of them available in the form, we add them at
the instanciation of the form using the convenience function
&lt;tt class="docutils literal"&gt;add_hidden(key,val)&lt;/tt&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="defining-the-deletion-form"&gt;
&lt;h4&gt;&lt;a&gt;Defining the deletion form&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The deletion form as mentioned previously is only here to hold both buttons for
the deletion confirmation or the cancelling. Both buttons are declared thanks
to the form_buttons attribute of the form, which is instanciated from
forms.FieldsForm:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SuppressContactForm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;forms&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;FieldsForm&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;__regid__&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;suppress_contact_form&amp;#39;&lt;/span&gt;
    &lt;span class="n"&gt;domid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;delete_contact_form&amp;#39;&lt;/span&gt;
    &lt;span class="n"&gt;form_renderer_id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;base&amp;#39;&lt;/span&gt;

    &lt;span class="nd"&gt;@property&lt;/span&gt;
    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;suppress_contact_controller&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="n"&gt;form_buttons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="n"&gt;fw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Button&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stdmsgs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BUTTON_DELETE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cwaction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;delete&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="n"&gt;fw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Button&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stdmsgs&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;BUTTON_CANCEL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cwaction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;cancel&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Specifying a given &lt;tt class="docutils literal"&gt;domid&lt;/tt&gt; will ensure that your form will have a specific DOM identifier,the controller defined in the
action method will be called without any ambiguity. The &lt;tt class="docutils literal"&gt;form_renderer_id&lt;/tt&gt; is
precised here so as to avoid additional display of informations which don't make sense here.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="defining-the-controller"&gt;
&lt;h4&gt;&lt;a&gt;Defining the controller&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The custom controller is instanciated from the Controller class in
&lt;tt class="docutils literal"&gt;cubicweb.web.controller&lt;/tt&gt;. The declaration of the controller should have the
same &lt;tt class="docutils literal"&gt;domid&lt;/tt&gt; than the calling form, as mentioned previously. The related
actions are described in the &lt;tt class="docutils literal"&gt;publish()&lt;/tt&gt; method of the controller:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;SuppressContactController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;Controller&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;__regid__&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;suppress_contact_controller&amp;#39;&lt;/span&gt;
    &lt;span class="n"&gt;domid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;delete_contact_form&amp;#39;&lt;/span&gt;

    &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;publish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rset&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;__action_cancel&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
            &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;Deletion canceled&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="n"&gt;Redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;vid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;contact_management_view&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;__message&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;__action_delete&amp;#39;&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;keys&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
            &lt;span class="n"&gt;xid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;eidfrom&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="n"&gt;dead_contact&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;entity_from_eid&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;xid&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="n"&gt;yid&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;eidto&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;execute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                    &lt;span class="s"&gt;&amp;#39;DELETE X in_contact_with Y&amp;#39;&lt;/span&gt;
                    &lt;span class="s"&gt;&amp;#39;  WHERE X eid &lt;/span&gt;&lt;span class="si"&gt;%(xid)s&lt;/span&gt;&lt;span class="s"&gt;, Y eid &lt;/span&gt;&lt;span class="si"&gt;%(yid)s&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                    &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;xid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;xid&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;&amp;#39;yid&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;yid&lt;/span&gt;&lt;span class="p"&gt;})&lt;/span&gt;
            &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;&lt;/span&gt;&lt;span class="si"&gt;%s&lt;/span&gt;&lt;span class="s"&gt; removed from your contacts&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt;\
                &lt;span class="n"&gt;dead_contact&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dc_long_title&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="n"&gt;Redirect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;self&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;_cw&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;build_url&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
                &lt;span class="n"&gt;vid&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;contact_management_view&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="n"&gt;__message&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Retrieving of the user action is performed by testing if the
&lt;tt class="docutils literal"&gt;'__action_&amp;lt;action&amp;gt;'&lt;/tt&gt;, where &lt;tt class="docutils literal"&gt;&amp;lt;action&amp;gt;&lt;/tt&gt; refers to the cwaction in the
button declaration, is present in the form keys. In the case of a cancelling,
we simply redirect to the contact management view with a message specifying
that the deletion has been cancelled. In the case of a deletion confirmation,
both Person id's  for the connected user and for the contact to remove are
retrieved from the form hidden arguments.&lt;/p&gt;
&lt;p&gt;The deletion is performed using an RQL request on the relation
&lt;tt class="docutils literal"&gt;in_contact_with&lt;/tt&gt;. We also redirect the view to the contact management view,
this time with another message confirming the deletion of the contact link.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-09-05T15:37-01:00</dc:date>
  <dc:creator>Stéphane Bugat</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2469531</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2424191</guid>
  <title>Logilab at the LawFactory</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/u_EwPlAZsdk/2424191</link>
  <description>&lt;p&gt;We have been playing along with political data for a while, using CubicWeb
to store and query various sets of open data
(e.g. &lt;a class="reference" href="http://2012.nosdeputes.fr/"&gt;NosDeputes&lt;/a&gt;, &lt;a class="reference" href="http://www.data.gouv.fr/content/search?SearchText=%C3%A9lections"&gt;data.gouv.fr&lt;/a&gt;),
and testing different visualization tools.
In particular, we have extended our prototype of News Analysis (see the
&lt;a class="reference" href="http://www.euroscipy.org/talk/4291/"&gt;presentation we made last year at Euroscipy&lt;/a&gt;),
in order to use these political datasets as reference for the &lt;a class="reference" href="https://en.wikipedia.org/wiki/Named-entity_recognition"&gt;named
entities extraction&lt;/a&gt; part.
Last week's conference &amp;quot;&lt;a class="reference" href="http://www.lafabriquedelaloi.fr/conference/"&gt;The Law Factory&lt;/a&gt;&amp;quot; at Sciences Po was a really nice opportunity to meet people with similar interests in
opendata for political sciences, and to find out which questions we should be asking our data !
Check out &lt;a class="reference" href="https://www.cubicweb.org/file/2424192?vid=download"&gt;the talk of our presentation&lt;/a&gt; and a few screencasts (no sound) :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="https://www.cubicweb.org/file/2424147?vid=download"&gt;Query - Example 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="https://www.cubicweb.org/file/2424148?vid=download"&gt;Query - Example 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="https://www.cubicweb.org/file/2424149?vid=download"&gt;Query - Example 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="https://www.cubicweb.org/file/2424151?vid=download"&gt;Visualization - Example 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="https://www.cubicweb.org/file/2424152?vid=download"&gt;Visualization - Example 2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="https://www.cubicweb.org/file/2424150?vid=download"&gt;Visualization - Example 3&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Comments are welcome !&lt;/p&gt;
&lt;div class="section" id="interresting-things-seen-at-olpc"&gt;
&lt;h3&gt;&lt;a&gt;Interresting things seen at #OLPC&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Among the different things that we have seen, we want to emphasize on:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Law is Code (&lt;a class="reference" href="http://gitorious.org/law-is-code/"&gt;http://gitorious.org/law-is-code/&lt;/a&gt;) - This project by the team of Regards Citoyens, aims at analysing the laws and amendments, by extracting information from the French National Assembly website, and by pushing the contributions of the members of parlement to a given law in a git repository. If we can find the time, we'll turn that into a mercurial repository and integrate it into our above application using cubicweb-vcsfile.&lt;/li&gt;
&lt;/ul&gt;
&lt;img alt="http://www.cubicweb.org/file/2423768?vid=download" src="http://www.cubicweb.org/file/2423768?vid=download" /&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Both national websites (Assemblée Nationale, Sénat), do not allow (yet...) to get data any other way than parsing the sites. However, it seems that the people involved are aware of the issues of opendata, and this may changed in the next months. In particular, the Senat use two databases (Basile and Ameli), and opening them to the public could be really interesting&lt;/li&gt;
&lt;li&gt;Different projects about African parlements can be found on the following website : &lt;a class="reference" href="http://www.parliaments.info"&gt;http://www.parliaments.info&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Check out, &lt;a class="reference" href="http://www.ictparliament.org/"&gt;ITCparliement&lt;/a&gt; which gives tools to analyse and share  data from many different parliments.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Saturday, at &lt;a class="reference" href="http://lacantine.org/"&gt;La Cantine Numérique&lt;/a&gt;, the discussions focused on the
possibilities to share tools, and the possible collaborations. I think that this is the crucial point: How people can share tools and use them in a efficient way, without being an IT expert ?&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="how-does-this-inspire-us-for-cubicweb"&gt;
&lt;h3&gt;&lt;a&gt;How does this inspire us for CubicWeb ?&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;In this way, we have are thinking about some evolutions of &lt;a class="reference" href="http://www.cubicweb.org"&gt;CubicWeb&lt;/a&gt; that can fullfill (part) of these requirements:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;easier installation, especially on Windows, and easier Postgresql configuration. This could perhaps be made by allowing some graphical interface for creating/managing the instances and the databases.&lt;/li&gt;
&lt;li&gt;a graphical tool for schema construction. Even if the construction of a data model in CubicWeb is quite simple, and rely on the straightforward Python syntax, it could be interesting to expose a  graphical tool for adding/removing/modifying entities from the schema, as well as some attributes or relations.&lt;/li&gt;
&lt;li&gt;easier ways to import data. This point is not trivial, and we don't want to develop a specific language  for defining import rules, that could be used for 80% of the cases, but will be painful to extend to the 20% exotic cases. We would rather develop some helpers to ease the building of some import scripts in Python, and to upload some CubicWeb instances already filled with open databases.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="demo-of-cubicweb-as-a-follow-up"&gt;
&lt;h3&gt;&lt;a&gt;Demo of CubicWeb as a follow up&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;As a follow up of the conference, we are openning a demo site using CubicWeb
to &lt;a class="reference" href="http://demo.cubicweb.org/elections/"&gt;expose data of the past legislative and presidential elections&lt;/a&gt; (2002, 2007, 2012)&lt;/p&gt;
&lt;img alt="https://www.cubicweb.org/file/2425136?&amp;amp;vid=download" src="https://www.cubicweb.org/file/2425136?&amp;amp;vid=download" style="width: 600px;" /&gt;
&lt;p&gt;The data used is published under &lt;a class="reference" href="http://www.data.gouv.fr/Licence-Ouverte-Open-Licence"&gt;Licence Ouverte / Open Licence&lt;/a&gt; by &lt;a class="reference" href="http://data.gouv.fr"&gt;http://data.gouv.fr&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This demo site allows you to deeply explore the data, with different visualisations, and complex queries. Again, comments are welcome, especially if you want to retrieve some information but you don't know how to! This demo site will probably evolve in the next weeks, and we will use it to test different cubes that we have been building.&lt;/p&gt;
&lt;p&gt;PS: We are sorry we cannot open the propotype of news aggregator for now, as there are still
licensing issues concerning the reusability of the different news sources that we get articles from.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-07-17T15:28-01:00</dc:date>
  <dc:creator>Vincent Michel</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2424191</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2356443</guid>
  <title>What's new in CubicWeb 3.15</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/4rZsXO9i9YY/2356443</link>
  <description>&lt;p&gt;CubicWeb 3.15 introduces a bunch of new functionalities. In short (more details below):&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;ability to use &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; instead of &lt;a class="reference" href="http://pypi.python.org/pypi/Pyro"&gt;Pyro&lt;/a&gt; to connect to repositories&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; inter-instances messages bus&lt;/li&gt;
&lt;li&gt;new LDAP source using the datafeed approach, much more flexible than the legacy 'ldapuser' source&lt;/li&gt;
&lt;li&gt;full undo support&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Plus some refactorings regarding Ajax function calls, WSGI, the registry, etc. Read more for the detail.&lt;/p&gt;
&lt;div class="section" id="new-functionalities"&gt;
&lt;h3&gt;&lt;a&gt;New functionalities&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Add &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; server, based on the cutting edge &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; socket
library.  This allows to access distant instances, in a similar way as Pyro.&lt;/li&gt;
&lt;li&gt;Publish/subscribe mechanism using &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; for communication among cubicweb
instances.  The new zmq-address-sub and zmq-address-pub configuration variables
define where this communication occurs.  As of this release this mechanism is
used for entity cache invalidation.&lt;/li&gt;
&lt;li&gt;Improved WSGI support. While there are still some caveats, most of the code
which was &lt;a class="reference" href="http://twistedmatrix.com"&gt;twisted&lt;/a&gt; only is now generic and allows related functionalities to work
with a WSGI front-end.&lt;/li&gt;
&lt;li&gt;Full undo/transaction support: undo of modifications has finally been
implemented, and the configuration simplified (basically you activate it or not
on an instance basis).&lt;/li&gt;
&lt;li&gt;Controlling HTTP status code returns is now much easier:&lt;ul&gt;
&lt;li&gt;&lt;cite&gt;WebRequest&lt;/cite&gt; now has a &lt;cite&gt;status_out&lt;/cite&gt; attribute to control the response status ;&lt;/li&gt;
&lt;li&gt;most web-side exceptions take an optional &lt;tt class="docutils literal"&gt;status&lt;/tt&gt; argument.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="api-changes"&gt;
&lt;h3&gt;&lt;a&gt;API changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p class="first"&gt;The base registry implementation has been moved to a new
&lt;cite&gt;logilab.common.registry&lt;/cite&gt; module (see &lt;a class="reference" href="http://www.cubicweb.org/ticket/1916014"&gt;#1916014&lt;/a&gt;). This includes code from :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;cubicweb.vreg&lt;/cite&gt; (everything that was in there)&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;cw.appobject&lt;/cite&gt; (base selectors and all).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the process, some renaming was done:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;the top level registry is now &lt;cite&gt;RegistryStore&lt;/cite&gt; (was &lt;cite&gt;VRegistry&lt;/cite&gt;), but that
should not impact CubicWeb client code;&lt;/li&gt;
&lt;li&gt;former selectors functions are now known as &amp;quot;predicate&amp;quot;, though you still use
predicates to build an object'selector;&lt;/li&gt;
&lt;li&gt;for consistency, the &lt;cite&gt;objectify_selector&lt;/cite&gt; decorator has hence been renamed to
&lt;cite&gt;objectify_predicate&lt;/cite&gt;;&lt;/li&gt;
&lt;li&gt;on the CubicWeb side, the &lt;cite&gt;selectors&lt;/cite&gt; module has been renamed to
&lt;cite&gt;predicates&lt;/cite&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Debugging refactoring dropped the need for the &lt;cite&gt;lltrace&lt;/cite&gt; decorator.  There
should be full backward compat with proper deprecation warnings.  Notice the
&lt;cite&gt;yes&lt;/cite&gt; predicate and &lt;cite&gt;objectify_predicate&lt;/cite&gt; decorator, as well as the
&lt;cite&gt;traced_selection&lt;/cite&gt; function should now be imported from the
&lt;cite&gt;logilab.common.registry&lt;/cite&gt; module.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;All login forms are now submitted to &amp;lt;app_root&amp;gt;/login. Redirection to requested
page is now handled by the login controller (it was previously handled by the
session manager).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p class="first"&gt;&lt;cite&gt;Publisher.publish&lt;/cite&gt; has been renamed to &lt;cite&gt;Publisher.handle_request&lt;/cite&gt;. This
method now contains a generic version of the logic previously handled by
Twisted. &lt;cite&gt;Controller.publish&lt;/cite&gt; is &lt;strong&gt;not&lt;/strong&gt; affected.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="unintrusive-api-changes"&gt;
&lt;h3&gt;&lt;a&gt;Unintrusive API changes&lt;/a&gt;&lt;/h3&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;New 'ldapfeed' source type, designed to replace 'ldapuser' source with
data-feed (i.e. copy based) source ideas.&lt;/li&gt;
&lt;li&gt;New 'zmqrql' source type, similar to 'pyrorql' but using ømq instead of Pyro.&lt;/li&gt;
&lt;li&gt;A new registry called 'services' has appeared, where you can register
server-side &lt;cite&gt;cubicweb.server.Service&lt;/cite&gt; child classes. Their &lt;cite&gt;call&lt;/cite&gt; method can be
invoked from a web-side AppObject instance using the new &lt;cite&gt;self._cw.call_service&lt;/cite&gt;
method or a server-side one using &lt;cite&gt;self.session.call_service&lt;/cite&gt;. This is a new
way to call server-side methods, much cleaner than monkey patching the
Repository class, which becomes a deprecated way to perform similar tasks.&lt;/li&gt;
&lt;li&gt;a new &lt;cite&gt;ajaxfunction&lt;/cite&gt; registry now hosts all remote functions (i.e. functions
callable through the &lt;cite&gt;asyncRemoteExec&lt;/cite&gt; JS api). A convenience &lt;cite&gt;ajaxfunc&lt;/cite&gt;
decorator will let you expose your python functions easily without all the
appobject standard boilerplate. Backwards compatibility is preserved.&lt;/li&gt;
&lt;li&gt;the 'json' controller is now deprecated in favor of the 'ajax' one.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;WebRequest.build_url&lt;/cite&gt; can now take a __secure__ argument.  When True, cubicweb
tries to generate an https url.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="user-interface-changes"&gt;
&lt;h3&gt;&lt;a&gt;User interface changes&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;A new 'undohistory' view exposes the undoable transactions and gives access to undo
some of them.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-06-19T10:34-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2356443</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2356431</guid>
  <title>Thoughts on CubicWeb 4.0</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/TcdinjESViY/2356431</link>
  <description>&lt;p&gt;This is a fairly technical post talking about the structural changes I would like to see in CubicWeb's near future. Let's call that CubicWeb 4.0! It also drafts ideas on how to go from here to there. Draft, really. But that will eventually turn into a nice roadmap hopefully.&lt;/p&gt;
&lt;div class="section" id="the-great-simplification"&gt;
&lt;h3&gt;&lt;a&gt;The great simplification&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Some parts of cubicweb are sometimes too hairy for different reasons (some good,
most bad). This participates in the difficulty to get started quickly. The goal of CubicWeb 4.0 should be to make things simpler :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Fix some bad old design.&lt;/li&gt;
&lt;li&gt;Stop reinventing the wheel and use widely used libraries in the Python Web
World. This extends to benefitting from state of the art libraries to build nice
and flexible UI such as Bootstrap, on top of the JQuery foundations (which could
become as prominent as the Python standard library in CubicWeb, the development team should get
ready for it).&lt;/li&gt;
&lt;li&gt;If there is a best way to do something, just do it and refrain from providing configurability and options.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="on-the-road-to-bootstrap"&gt;
&lt;h3&gt;&lt;a&gt;On the road to Bootstrap&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;First, a few simple things could be done to simplify the UI code:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;drop xhtml support: always return text/html content type, stop bothering
with this stillborn stuff and use html5&lt;/li&gt;
&lt;li&gt;move away everything that should not be in the framework: calendar?, embedding,
igeocodable, isioc, massmailing, owl?, rdf?, timeline, timetable?, treeview?,
vcard, wdoc?, xbel, xmlrss?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then we should probably move the default UI into some cubes (i.e. the content of
cw.web.views and cw.web.data). Besides making the move to Bootstrap easier, this
should also have the benefit of making clearer that this is the default way to
build an (automatic) UI in CubicWeb, but one may use other, more usual,
strategies (such as using a template language).&lt;/p&gt;
&lt;p&gt;At a first glance, we should start with the following core cubes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;corelayout&lt;/cite&gt;, the default interface layout and generic components. Modules to
backport there: application (not an appobject yet), basetemplates, error,
boxes, basecomponents, facets, ibreadcrumbs, navigation, undohistory.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;coreviews&lt;/cite&gt;, the default generic views and forms. Modules to backport there:
actions, ajaxedit, baseviews, autoform, dotgraphview, editcontroller,
editforms, editviews, forms, formrenderers, primary, json, pyviews, tableview,
reledit, tabs.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;corebackoffice&lt;/cite&gt;, the concrete views for the default back-office that let you
handle users, sources, debugging, etc. through the web. Modules to backport
here: cwuser, debug, bookmark, cwproperties, cwsources, emailaddress,
management, schema, startup, workflow.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;coreservices&lt;/cite&gt;, the various services, not directly related to display of
something. Modules to backport here: ajaxcontroller, apacherewrite,
authentication, basecontrollers, csvexport, idownloadable, magicsearch,
sessions, sparql, sessions, staticcontrollers, urlpublishing, urlrewrite.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is a first draft that will need some adjustements. Some of the listed
modules should be split (e.g. actions, boxes,) and their content moved to
different core cubes. Also some modules in &lt;cite&gt;cubicweb.web&lt;/cite&gt; packages may be moved
to the relevant cube.&lt;/p&gt;
&lt;p&gt;Each cube should provide an interface so that one could replace it with another
one. For instance, move from the default &lt;cite&gt;coreviews&lt;/cite&gt; and &lt;cite&gt;corelayout&lt;/cite&gt; cube to
bootstrap based ones. This should allow a nice migration path from the current UI
to a Bootstrap based UI. Bootstrap should probably be introduced bottom-up: start
using it for tables, lists, etc. then go up until the layout defined in the main
template. The &lt;a class="reference" href="http://orbui.com/"&gt;Orbui&lt;/a&gt; experience should greatly help us by pointing at hot spots
that will have to be tackled, as well as by providing a nice code base from which
we should start.&lt;/p&gt;
&lt;p&gt;Regarding current implementation, we should take care that Contextual components
are a powerful way to build &amp;quot;pluggable&amp;quot; UI, but we should probably add an
intermediate layer that would make more obvious / explicit:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;what the available components are&lt;/li&gt;
&lt;li&gt;what the available slots are&lt;/li&gt;
&lt;li&gt;which component should go in which slot when possible&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Also at some point, we should take care to separate view's logic from HTML
generation: our experience with client works shows that a common need is to use
the logic but produce a different HTML. Though we should wait for more use of
Bootstrap and related HTML simplification to see if the CSS power doesn't
somewhat fulfill that need.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="on-the-road-to-wsgi-and-related"&gt;
&lt;h3&gt;&lt;a&gt;On the road to WSGI and related&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;For the record regarding WSGI:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;a class="reference" href="http://mongrel2.org/"&gt;http://mongrel2.org/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://projects.unbit.it/uwsgi/"&gt;http://projects.unbit.it/uwsgi/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="reference" href="http://wiki.nginx.org/NgxWSGIModule"&gt;http://wiki.nginx.org/NgxWSGIModule&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;At some point, the whole &lt;cite&gt;cw.etwist&lt;/cite&gt; package should be dropped in favor of &lt;cite&gt;cw.wsgi&lt;/cite&gt;.&lt;/p&gt;
&lt;div class="section" id="werkzeug"&gt;
&lt;h4&gt;&lt;a&gt;Werkzeug&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;&lt;a class="reference" href="http://werkzeug.pocoo.org/"&gt;http://werkzeug.pocoo.org/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The Werkzeug framework sounds like a good candidate to use as a library that
would replace/simplify the request, httpcache, session, authentication (maybe
more) modules as well as the wsgi package. It sounds like the right candidate for
the following reasons:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;it's a non-intrusive WSGI library, not a web framework,&lt;/li&gt;
&lt;li&gt;it's used by fairly popular frameworks (&lt;a class="reference" href="http://www.openerp.com/community"&gt;openerp&lt;/a&gt;, &lt;a class="reference" href="http://flask.pocoo.org/"&gt;flask&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;I'm +1 on A. Ronacher idea of a common request implementation for python web
frameworks, let's experiment and promote this idea.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="route-url-handling"&gt;
&lt;h4&gt;&lt;a&gt;Route (URL handling)&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Investigate URL routing modules as a replacement for urlpublishing, urlrewrite and
apacherewrite.&lt;/p&gt;
&lt;p&gt;Candidates are :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;werkzeug.routing&lt;/cite&gt;, which has noticable pros: celebrated by A. Martelli,
provided by an already-in-wishlist library, URL routing &lt;em&gt;AND&lt;/em&gt; generation.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;routes&lt;/cite&gt; (&lt;a class="reference" href="http://routes.readthedocs.org/en/latest/"&gt;http://routes.readthedocs.org/en/latest/&lt;/a&gt;), pros: used by pylons,
features conditional matching based on domain, cookies, HTTP method... and
sub-domain support.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;selector&lt;/cite&gt; (&lt;a class="reference" href="http://lukearno.com/projects/selector/"&gt;http://lukearno.com/projects/selector/&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I've to say I'm somewhat impatient to find some time to give a try to
&lt;cite&gt;werkzeug.routing&lt;/cite&gt;. IMO, used well, that may introduce a structural change that
would make things much easier to understand and configure properly.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="on-the-road-to-proper-tasks-management"&gt;
&lt;h3&gt;&lt;a&gt;On the road to proper tasks management&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The current looping task / repo thread mecanism is used for various sort of
things and has several problems:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;tasks don't behave similarly in a multi-instances configuration (some should
be executed in a single instance, some in a subset); the tasks system has been
originally written in a single instance context; as of today this is (sometimes)
handled using configuration options (that will have to be properly set in each
instance configuration file);&lt;/li&gt;
&lt;li&gt;tasks is a repository only api but we also need web-side tasks;&lt;/li&gt;
&lt;li&gt;there is probably some abuse of the system that may lead to unnecessary
resources usage.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Analyzing a sample &lt;a class="reference" href="http://www.logilab.org/"&gt;http://www.logilab.org/&lt;/a&gt; instance, below are the running looping
task by categories. Tasks that have to run on each web instance:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;clean_sessions&lt;/cite&gt;, automatically closes unused repository sessions. Notice
&lt;cite&gt;cw.etwist.server&lt;/cite&gt; also records a twisted task to clean web sessions. Some
changes are imminent on this, they will be addressed in the upcoming refactoring session  (that will
become more and more necessary to move on several points listed here).&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;regular_preview_dir_cleanup&lt;/cite&gt; (&lt;cite&gt;preview&lt;/cite&gt; cube), cleanup files in the
preview filesystem directory. Could be executed by a (some of the) web
instance(s) provided that the preview directory is shared.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Tasks that should run on a single instance:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;update_feeds&lt;/cite&gt;, update copy based sources (e.g. datafeed, ldapfeed). Controlled
by 'synchronize' source configuration (persistent source attribute that may be
overridden by instance using &lt;cite&gt;CWSourceHostConfig&lt;/cite&gt; entities)&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;expire_dataimports&lt;/cite&gt;, delete &lt;cite&gt;CWDataImport&lt;/cite&gt; entities older than an amount of
time specified in the 'logs-lifetime' configuration option. &lt;strong&gt;Not controlled
yet&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;cleanup_auth_cookies&lt;/cite&gt; (&lt;em&gt;rememberme&lt;/em&gt; cube), delete &lt;cite&gt;CWAuthCookie&lt;/cite&gt; entities
whose life-time is exhausted. &lt;strong&gt;Not controlled yet&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;cleaning_revocation_key&lt;/cite&gt; (&lt;em&gt;forgotpwd&lt;/em&gt; cube), delete &lt;cite&gt;Fpasswd&lt;/cite&gt; entities with
past &lt;cite&gt;revocation_date&lt;/cite&gt;. &lt;strong&gt;Not controlled yet&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;cleanup_plans&lt;/cite&gt; (&lt;em&gt;narval&lt;/em&gt; cube), delete &lt;cite&gt;Plan&lt;/cite&gt; entities instance older than an
amount of time specified in the configuration. If 'plan-cleanup-delay' is set
to an empty value, the task isn't started.&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;refresh_local_repo_caches&lt;/cite&gt; (&lt;em&gt;vcsfile&lt;/em&gt; cube), pull or clone vcs repositories
cache if the &lt;cite&gt;Repository&lt;/cite&gt; entity ask to import_revision_content (hence web
instance should have up to date cache to display files content) or if
'repository-import' configuration option is set to 'yes'; import vcs repository
content as entities if 'repository-import' configuration option and it is
coming from the system source.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Some deeper thinking is needed here so we can improve things. That includes
thinking about:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;the inter-instances messages bus based on zmq and introduced in 3.15,&lt;/li&gt;
&lt;li&gt;the Celery project (&lt;a class="reference" href="http://celeryproject.org/"&gt;http://celeryproject.org/&lt;/a&gt;), an asynchronous task queue,
widely used and written in Python,&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Remember the more cw independent the tasks are, the better it is. Though we still want an
'all-integrated' approach, e.g. not relying on external configuration of Unix
specific tools such as CRON. Also we should see if a hard-dependency on Celery or
a similar tool could be avoided, and if not if it should be considered as a
problem (for devops).&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="on-the-road-to-an-easier-configuration"&gt;
&lt;h3&gt;&lt;a&gt;On the road to an easier configuration&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;First, we should drop the different behaviour according to presence of a '.hg' in
cubicweb's directory. It currently changes the location where cubicweb external
resources (js, css, images, gettext catalogs) are searched for. Speaking of
implementation:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;cite&gt;shared_dir&lt;/cite&gt; returns the &lt;cite&gt;cubicweb.web&lt;/cite&gt; package path instead of the path to the
&lt;cite&gt;shared&lt;/cite&gt; cube,&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;i18n_lib_dir&lt;/cite&gt; returns the &lt;cite&gt;cubicweb/i18n&lt;/cite&gt; directory path instead of the path to the
&lt;cite&gt;shared/i18n&lt;/cite&gt; cube,&lt;/li&gt;
&lt;li&gt;&lt;cite&gt;migration_scripts_dir&lt;/cite&gt; returns the &lt;cite&gt;cubicweb/misc/migration&lt;/cite&gt; directory path
instead of &lt;cite&gt;share/cubicweb/migration&lt;/cite&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Moving web related objects as proposed in the Bootstrap section would resolve the
problem for the content &lt;cite&gt;web/data&lt;/cite&gt; and most of &lt;cite&gt;i18n&lt;/cite&gt; (though some messages
will remain and additional efforts will be needed here). By going further this
way, we may also clean up some schema code by moving &lt;cite&gt;cubicweb/schemas&lt;/cite&gt; and
&lt;cite&gt;cubicweb/misc/migration&lt;/cite&gt; to a cube (though only a small benefit is to be expected
here).&lt;/p&gt;
&lt;p&gt;We should also have fewer environment variables... Let's see what we have today:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;CW_INSTANCES_DIR, where to look for instances configuration&lt;/li&gt;
&lt;li&gt;CW_INSTANCES_DATA_DIR, where to look for instances persistent data files&lt;/li&gt;
&lt;li&gt;CW_RUNTIME_DIR, where to look for instances run-time data files&lt;/li&gt;
&lt;li&gt;CW_MODE, set to 'system' or 'user' will predefine above environment variables differently&lt;/li&gt;
&lt;li&gt;CW_CUBES_PATH, additional directories where to look for cubes&lt;/li&gt;
&lt;li&gt;CW_CUBES_DIR, location of the system 'cubes' directory&lt;/li&gt;
&lt;li&gt;CW_INSTALL_PREFIX, installation prefix, from which we can compute path to 'etc', 'var', 'share', etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I would propose the following changes:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;CW_INSTANCES_DIR is turned into CW_INSTANCES_PATH, and defaults to
~/etc/cubicweb.d if it exists and /etc/cubicweb.d (on Unix platforms) otherwise;&lt;/li&gt;
&lt;li&gt;CW_INSTANCES_DATA_DIR and CW_RUNTIME_DIR are replaced by configuration file
options, with smart values generated at instance creation time;&lt;/li&gt;
&lt;li&gt;the above change should make CW_MODE useless;&lt;/li&gt;
&lt;li&gt;CW_CUBES_DIR is to be dropped, CW_CUBES_PATH should be enough;&lt;/li&gt;
&lt;li&gt;regarding CW_INSTALL_PREFIX, I'm lacking experience with non-hg-or-debian
installations and don't know if this can be avoided or not.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Last but not least (for the moment), the 'web' / 'repo' / 'all-in-one'
configurations, and the fact that the associated configuration file changes
stinks. Ideas to stop doing this:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;one configuration file per instance, with all options provided by installed
parts of the framework used by the application.&lt;/li&gt;
&lt;li&gt;activate 'services' (or not): web server, repository, zmq server, pyro
server. Default services to be started are stored in the configuration file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is probably more that can be done here (less configuration options?), but
that would already be a great step forward.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="on-the-road-to"&gt;
&lt;h3&gt;&lt;a&gt;On the road to...&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The following projects should be investigated to see if we could benefit from them:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Paste (&lt;a class="reference" href="http://pythonpaste.org/"&gt;http://pythonpaste.org/&lt;/a&gt;, Configuration and all)&lt;/li&gt;
&lt;li&gt;Beaker (&lt;a class="reference" href="http://beaker.readthedocs.org/en/latest/index.html"&gt;http://beaker.readthedocs.org/en/latest/index.html&lt;/a&gt;, More on Session / cache handling than what will be found in Werkzeug?)&lt;/li&gt;
&lt;li&gt;Pyramid's debug toolbar
(&lt;a class="reference" href="http://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/"&gt;http://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest/&lt;/a&gt;). See
also &lt;a class="reference" href="http://firelogger.binaryage.com/#python"&gt;http://firelogger.binaryage.com/#python&lt;/a&gt;. Notice Werkzeug comes with an
integrated js console as well.&lt;/li&gt;
&lt;li&gt;zc.buildout (Deployment)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class="section" id="discussion"&gt;
&lt;h3&gt;&lt;a&gt;Discussion&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Remember the following goals: migration of legacy code should go smoothly. In a perfect world every application should be able to run with CubicWeb 4.0 until the backwards compatibility code is removed (and CubicWeb 4.0 will probably be released as 4.0 at that time).&lt;/p&gt;
&lt;p&gt;Please provide feedbacks:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;do you think choices proposed above are good/bad choices? Why?&lt;/li&gt;
&lt;li&gt;do you know some additional libraries that should be investigated?&lt;/li&gt;
&lt;li&gt;do you have other changes in mind that could/should be done in cw 4.0?&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-05-21T15:04-01:00</dc:date>
  <dc:creator>Sylvain Thenault</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2356431</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2315258</guid>
  <title>Follow up of IRI conference about Museums and the Web #museoweb</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/BUbRAJ-8avw/2315258</link>
  <description>&lt;p&gt;I attented the conference organised by &lt;a class="reference" href="http://www.iri.centrepompidou.fr/"&gt;IRI&lt;/a&gt; in a series of conferences about &amp;quot;&lt;a class="reference" href="http://www.iri.centrepompidou.fr/evenement/museologie-museographie-et-nouvelles-formes-dadresse-au-public/#tabsSeminaire-6"&gt;Muséologie, muséographie et nouvelles formes d’adresse au public&lt;/a&gt;&amp;quot; (hashtag &lt;a class="reference" href="https://twitter.com/#!/search/%23museoweb"&gt;#museoweb&lt;/a&gt;). This particular occurence was about &amp;quot;Le Web devient audiovisuel&amp;quot; (the web is also audio and video content). Here are a few notes and links we gathered. The event was organised by Alexandre Monnin &lt;a class="reference" href="http://twitter.com/aamonnz"&gt;&amp;#64;aamonnz&lt;/a&gt;.&lt;/p&gt;
&lt;img alt="http://polemictweet.com/2011-2012-museo-audiovisuel/images/slide4_museo_fr.png" src="http://polemictweet.com/2011-2012-museo-audiovisuel/images/slide4_museo_fr.png" /&gt;
&lt;div class="section" id="yves-raimond-from-the-bbc"&gt;
&lt;h3&gt;&lt;a&gt;Yves Raimond from the BBC&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Yves Raimond &lt;a class="reference" href="http://twitter.com/moustaki"&gt;&amp;#64;moustaki&lt;/a&gt; made a presentation about his work at the BBC around semantic web technologies and speech recognition over large quantities of digitized archives. Parts of the BCC web sites use semantic web data as the database and do mashups with external sources of data (musicbrainz, dbpedia, wikipedia). For example Tom Waits has an html web page : &lt;a class="reference" href="http://www.bbc.co.uk/music/artists/c3aeb863-7b26-4388-94e8-5a240f2be21b"&gt;http://www.bbc.co.uk/music/artists/c3aeb863-7b26-4388-94e8-5a240f2be21b&lt;/a&gt; add .rdf at the end of the URL &lt;a class="reference" href="http://www.bbc.co.uk/music/artists/c3aeb863-7b26-4388-94e8-5a240f2be21b.rdf"&gt;http://www.bbc.co.uk/music/artists/c3aeb863-7b26-4388-94e8-5a240f2be21b.rdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;He also made an introduction about the &lt;a class="reference" href="http://www.bbc.co.uk/rd/projects/abc_ip.shtml"&gt;ABC-IP The Automatic Broadcast Content Interlinking Project&lt;/a&gt; and the Kiwi-API project that uses &lt;a class="reference" href="http://cmusphinx.sourceforge.net/"&gt;CMU Sphinx&lt;/a&gt; on Amazon Web Services to process large quantities of archives. A screenshot of Kiwi-API is shown on the &lt;a class="reference" href="http://www.bbc.co.uk/blogs/researchanddevelopment/2012/02/prototyping-weeknotes-96.shtml"&gt;BBC R&amp;amp;D blog&lt;/a&gt;. The code should be open sourced soon and should appear on the &lt;a class="reference" href="https://github.com/bbcrd/"&gt;BBC R&amp;amp;D github page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Following his presentation, the question was asked if using Wikipedia content on an institutional web site would be possible in France, I pointed to the use of Wikipedia on &lt;a class="reference" href="http://data.bnf.fr"&gt;http://data.bnf.fr&lt;/a&gt; , for example at the bottom of the &lt;a class="reference" href="http://data.bnf.fr/11907966/victor_hugo/#other-ressources"&gt;Victor Hugo page&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="raphael-troncy-about-media-fragments"&gt;
&lt;h3&gt;&lt;a&gt;Raphaël Troncy about Media Fragments&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Raphaël Troncy &lt;a class="reference" href="http://twitter.com/rtroncy"&gt;&amp;#64;rtroncy&lt;/a&gt; made a presentation about &amp;quot;Media Fragments&amp;quot; which will enable sharing parts of a video on the web. Two major features : the sharing of specific extracts and the optimization of bandwith use when streaming the extract (usefull for mobile devices for example). It is a W3C working draft : &lt;a class="reference" href="http://www.w3.org/TR/media-frags-reqs/"&gt;http://www.w3.org/TR/media-frags-reqs/&lt;/a&gt;. Here are a few links of demos and players :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Temporal Media Fragment Test Builds &lt;a class="reference" href="http://www.bluishcoder.co.nz/mediafrag/"&gt;http://www.bluishcoder.co.nz/mediafrag/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;NinSuna &lt;a class="reference" href="http://ninsuna.elis.ugent.be/"&gt;http://ninsuna.elis.ugent.be/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;yuma.min.js &lt;a class="reference" href="http://yuma-js.github.com/index.html"&gt;http://yuma-js.github.com/index.html&lt;/a&gt; a javascript framework to annotate videos on the web&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Part of the presentation was about the ACAV project done jointly with Dailymotion : &lt;a class="reference" href="http://www.capdigital.com/projet-acav/"&gt;http://www.capdigital.com/projet-acav/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The slides of his presentation are available here : &lt;a class="reference" href="http://www.slideshare.net/troncy/addressing-and-annotating-multimedia-fragments"&gt;http://www.slideshare.net/troncy/addressing-and-annotating-multimedia-fragments&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="iri-presentation"&gt;
&lt;h3&gt;&lt;a&gt;IRI presentation&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Vincent Puig &lt;a class="reference" href="http://twitter.com/vincentpuig"&gt;&amp;#64;vincentpuig&lt;/a&gt; and Raphaël Velt &lt;a class="reference" href="http://twitter.com/raphv"&gt;&amp;#64;raphv&lt;/a&gt; made a presentation of various projects led by &lt;a class="reference" href="http://www.iri.centrepompidou.fr/"&gt;IRI&lt;/a&gt; :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Lignes des temps : &lt;a class="reference" href="http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/"&gt;http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/&lt;/a&gt; (here is an example of a conference about opendata during which I tweeted : &lt;a class="reference" href="http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/59c0026e-5a4d-11e0-a24f-00145ea49a02/"&gt;RSLN open data&lt;/a&gt; )&lt;/li&gt;
&lt;li&gt;PolemicTweet &lt;a class="reference" href="http://polemictweet.com/"&gt;http://polemictweet.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Bubble-T visualization of tweets about the french presidential elections : &lt;a class="reference" href="http://www.iri.centrepompidou.fr/experimentations/bubble-t/"&gt;http://www.iri.centrepompidou.fr/experimentations/bubble-t/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;HDA Labs &lt;a class="reference" href="http://hdalab.iri-research.org/hdalab/"&gt;http://hdalab.iri-research.org/hdalab/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;img alt="http://www.iri.centrepompidou.fr/wp-content/themes/IRI-Theme/images/logo-iri-petit_fr_fr.png" src="http://www.iri.centrepompidou.fr/wp-content/themes/IRI-Theme/images/logo-iri-petit_fr_fr.png" /&gt;
&lt;/div&gt;
&lt;div class="section" id="final-words"&gt;
&lt;h3&gt;&lt;a&gt;Final words&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The technologies seen during this conference are often related to semantic web technologies or at least web standards. Some of the visualizations are quite impressive and could mean new uses of the Web and an inspiration for &lt;a class="reference" href="http://www.cubicweb.org"&gt;CubicWeb&lt;/a&gt; projects.&lt;/p&gt;
&lt;p&gt;A few of the people present at the conference will be attending or presenting talks at &lt;a class="reference" href="http://www.semweb.pro"&gt;SemWeb.Pro&lt;/a&gt; which will take place in Paris on the 2nd and 3rd of may 2012.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-04-12T14:47-01:00</dc:date>
  <dc:creator>Arthur Lutz</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2315258</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2223885</guid>
  <title>Undoing changes in CubicWeb</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/FIKRh_cBffc/2223885</link>
  <description>&lt;p&gt;Many desktop applications offer the possibility for the user to
undo the recent changes : a similar &lt;em&gt;undo feature&lt;/em&gt; has now been
integrated into the CubicWeb framework.&lt;/p&gt;
&lt;p&gt;Because a semantic web application and a common desktop
application are not the same thing at all, especially as far as
undoing is concerned, we will first introduce &lt;em&gt;what&lt;/em&gt; is the &lt;em&gt;undo
feature&lt;/em&gt; for now.&lt;/p&gt;
&lt;div class="section" id="what-s-undoing-in-a-cubicweb-application"&gt;
&lt;h3&gt;&lt;a&gt;What's &lt;em&gt;undoing&lt;/em&gt; in a CubicWeb application&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;A CubicWeb application acts upon an &lt;em&gt;Entity-Relationship&lt;/em&gt; model,
described by a schema. This ensures some data integrity
properties. It also implies that changes are made by group called &lt;em&gt;transaction&lt;/em&gt; : so as to insure the data integrity the transaction is completely applied &lt;em&gt;or&lt;/em&gt; none of it is applied.
What may appear as a simple atomic action to a user can actually consist in several actions for the framework. The end-user has no need to know the details of all actions in those transactions. Only the so-called &lt;em&gt;public&lt;/em&gt; actions will appear in the description of the an undoable transaction.&lt;/p&gt;
&lt;p&gt;Lets take a simple example: posting a &amp;quot;comment&amp;quot; for a blog entry will create the entity itself and the link to the blog entry.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="the-undo-feature-for-cubicweb-end-users"&gt;
&lt;h3&gt;&lt;a&gt;The &lt;em&gt;undo feature&lt;/em&gt; for CubicWeb end-users&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;For now there are two ways to access the &lt;em&gt;undo feature&lt;/em&gt; when
it has been activated in the instance configuration file with
the option &lt;em&gt;undo-support=yes&lt;/em&gt;. Immediately after having done something the undo** link appears in the &amp;quot;creation&amp;quot; message.&lt;/p&gt;
&lt;img alt="Screenshot of the undo link in the message" class="align-center" src="/file/2198577?vid=download" /&gt;
&lt;p&gt;Otherwise, one can access at any time the &lt;strong&gt;undo-history view&lt;/strong&gt;
accessible from the start-up page.&lt;/p&gt;
&lt;img alt="Screenshot of the undo link in the message" class="align-center" src="/file/2198579?vid=download" /&gt;
&lt;p&gt;This view shows the transactions, and each provides its own
&lt;strong&gt;undo&lt;/strong&gt; link. Only the transactions the user has permissions to
see and undo will be shown.&lt;/p&gt;
&lt;img alt="Screenshot of the **undo** link in the message" class="align-center" src="/file/2198582?vid=download" /&gt;
&lt;p&gt;If the user attempts to undo a transaction which can't be undone or whose undoing fails, then a message will explain the situation and
no partial undoing will be left behind.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="what-s-next"&gt;
&lt;h3&gt;&lt;a&gt;What's next&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The undo feature is functional but the interface and configuration
options are quite limited. One major, planned, improvement would be enable the user to filter which transactions or actions
he sees in the &lt;em&gt;undo-history view&lt;/em&gt;. Another critical
improvement would be to selectively enable the undo feature on  part of the entity-relationship schema to avoid storing too much
data and reduce the underlying overhead.&lt;/p&gt;
&lt;p&gt;Feedback on this undo feature for specific CubicWeb applications is welcome.
More detailed information regarding the &lt;em&gt;undo feature&lt;/em&gt; will be published in the &lt;a class="reference" href="http://docs.cubicweb.org"&gt;CubicWeb book&lt;/a&gt; when the patches make it through the review process.&lt;/p&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-02-29T18:06-01:00</dc:date>
  <dc:creator>Anthony Truchet</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2223885</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2219569</guid>
  <title>CubicWeb Sprint report for the "ZMQ" team</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/Wc6g5vsfbsw/2219569</link>
  <description>&lt;p&gt;There has been a growing interest in &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; in the past months, due to its ability to efficiently deal with message passing, while being light and robust.
We have worked on introducing &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; in the CubicWeb framework for various uses :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;As a replacement/alternative to the &lt;a class="reference" href="http://irmen.home.xs4all.nl/pyro3/"&gt;Pyro&lt;/a&gt; source, that is used to connect to distant instances. &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; may be used as a lighter and more efficient alternative to Pyro. The main idea here is to use the &lt;cite&gt;send_pyobj&lt;/cite&gt;/&lt;cite&gt;recv_pyobj&lt;/cite&gt; API of &lt;a class="reference" href="http://www.zeromq.org/bindings:python"&gt;PyZMQ&lt;/a&gt; (python wrapper of ZMQ) to execute methods on the distant &lt;cite&gt;Repository&lt;/cite&gt; in a totally transparent way for CubicWeb.&lt;/li&gt;
&lt;/ul&gt;
&lt;img alt="http://www.cubicweb.org/file/2219158?vid=download" src="http://www.cubicweb.org/file/2219158?vid=download" /&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;As a JSONServer. Indeed, &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt; could be used to share data between a server and any requests done through &lt;a class="reference" href="http://www.zeromq.org/"&gt;ZMQ&lt;/a&gt;. The request is just a string of &lt;a class="reference" href="http://docs.cubicweb.org/annexes/rql/language.html#rql"&gt;RQL&lt;/a&gt;, and the response is the result set formatted in Json.&lt;/li&gt;
&lt;li&gt;As the building block for a simple notification (publish/subscribe) system between CubicWeb instances.  A component can register its interest in a particular topic, and receive a callback whenever a corresponding message is received.  At this point, this mechanism is used in CubicWeb to notify other instances that they should invalidate their caches when an entity is deleted.&lt;/li&gt;
&lt;/ul&gt;
</description>
  <dc:date>2012-02-27T17:54-01:00</dc:date>
  <dc:creator>Julien Cristau</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2219569</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2198051</guid>
  <title>CubicWeb Sprint report for the "WSGI" team</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/GwZ8rEUIzI4/2198051</link>
  <description>&lt;p&gt;Cubicweb has had WSGI support for several years, but this support was incomplete.&lt;/p&gt;
&lt;p&gt;The WSGI team was in charge of turning WSGI support into a full featured backend that could replace &lt;a class="reference" href="http://twistedmatrix.com/trac/"&gt;Twisted&lt;/a&gt; in real production scenarii.&lt;/p&gt;
&lt;p&gt;Because we only had first class support for &lt;a class="reference" href="http://twistedmatrix.com/trac/"&gt;Twisted&lt;/a&gt;, some of the CubicWeb logic related to HTTP handling was implemented on the twisted side with twisted concepts. Our first task was to move this logic in CubicWeb itself. The handling of HTTP status in our response was improved in the process.&lt;/p&gt;
&lt;p&gt;Our second task was to focus on the &amp;quot;non-HTTP&amp;quot; part of CubicWeb (because the repository also manages background tasks). The developement mode for WSGI is now able to handle and run such tasks. For this purpose we have begun a process that aims to remove server related code from the repository object.&lt;/p&gt;
&lt;p&gt;We also Tested several WSGI middleware. One of the most promising  is &lt;a class="reference" href="https://github.com/darwin/firepython"&gt;Firepython&lt;/a&gt;, integrating python logging and debugging feature with &lt;a class="reference" href="https://getfirebug.com/"&gt;Firebug&lt;/a&gt;. &lt;a class="reference" href="http://werkzeug.pocoo.org/docs/debug/#enabling-the-debugger"&gt;werkzeug debugger&lt;/a&gt; seems neat too.&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2194267?vid=download" src="http://www.cubicweb.org/file/2194267?vid=download" /&gt;
&lt;p&gt;All these improvements open the road to a simple and efficient multi-process architecture in CubicWeb.&lt;/p&gt;
</description>
  <dc:date>2012-02-20T11:10-01:00</dc:date>
  <dc:creator>Pierre-Yves David</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2198051</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2194802</guid>
  <title>CubicWeb Sprint report for the "Benchmarks" team</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/U5iIt7Qh9X0/2194802</link>
  <description>&lt;p&gt;One team during the &lt;a class="reference" href="http://www.cubicweb.org/blogentry/2133886"&gt;CubicWeb sprint&lt;/a&gt; looked at issues around monitoring benchmark values for CubicWeb development. This is a &lt;em&gt;huge&lt;/em&gt; task, so we tried to stay focused on a few aspects:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;production reponse times (using tools such as &lt;a class="reference" href="http://oss.oetiker.ch/smokeping/"&gt;smokeping&lt;/a&gt; and &lt;a class="reference" href="http://munin-monitoring.org/"&gt;munin&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;response times of test executions in continuous integration tests&lt;/li&gt;
&lt;li&gt;response times of test instances runinng in continuous integration&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We looked at using &lt;cite&gt;cpu.clock()&lt;/cite&gt; instead of &lt;cite&gt;cpu.time()&lt;/cite&gt; in the xunit files that report test results so as to be a bit more independent of the load of the machine (but subprocesses won't be counted for).&lt;/p&gt;
&lt;p&gt;Graphing test times in hudson/jenkins already exists (&lt;em&gt;/job/PROJECT/BUILDID/testReport/history/?&lt;/em&gt;) and can also be graphed by TestClass and by individual test. What is missing so far is a specific dashboard were one could select the significant graphs to look at.&lt;/p&gt;
&lt;p&gt;By the end of the first day we had a &amp;quot;lorem ipsum&amp;quot; test instance that is created on the fly on each hudson/jenkins build and a &lt;a class="reference" href="https://jmeter.apache.org/"&gt;jmeter&lt;/a&gt; bench running on it, it's results processed by the &lt;a class="reference" href="https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin"&gt;performance plugin&lt;/a&gt;.&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2184036?vid=download" src="http://www.cubicweb.org/file/2184036?vid=download" /&gt;
&lt;p&gt;By the end of the second day we had some visualisation of existing data collected by &lt;a class="reference" href="http://www.cubicweb.org/project/apycot"&gt;apycot&lt;/a&gt; using &lt;a class="reference" href="http://jqplot.com/"&gt;jqplot&lt;/a&gt; javascript visulation (&lt;a class="reference" href="http://www.cubicweb.org/project/cubicweb-jqplot"&gt;cubicweb-jqplot&lt;/a&gt;):&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2184035?vid=download" src="http://www.cubicweb.org/file/2184035?vid=download" /&gt;
&lt;p&gt;By the end of the sprint, we got patches submitted for the following cubes :&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;apycot&lt;/li&gt;
&lt;li&gt;cubicweb-jqplot&lt;/li&gt;
&lt;li&gt;the original jqplot library (&lt;strong&gt;update&lt;/strong&gt; : patch accepted a few days later)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On the last hour of the sprint, since we had a &amp;quot;lorem ipsum&amp;quot; test application running each time the tests went through the continuous integration, we hacked up a proof of concept to get automatic screenshots of this temporary test application. So far, we get screenshots for firefox only, but it opens up possibilities for other browsers. Inspiration could be drawn from &lt;a class="reference" href="https://browsershots.org/"&gt;https://browsershots.org/&lt;/a&gt;&lt;/p&gt;
</description>
  <dc:date>2012-02-17T09:34-01:00</dc:date>
  <dc:creator>Arthur Lutz</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2194802</feedburner:origLink></item>
<item>
<guid isPermaLink="false">http://www.cubicweb.org/blogentry/2154794</guid>
  <title>"Data Fast-food": quick interactive exploratory processing and visualization of complex datasets with CubicWeb</title>
  <link>http://feedproxy.google.com/~r/cubicweborg/~3/PYKoYpa6m84/2154794</link>
  <description>&lt;p&gt;With the emergence of the semantic web in the past few years, and the increasing number of high quality open data sets (cf the &lt;a class="reference" href="http://richard.cyganiak.de/2007/10/lod/"&gt;lod diagram&lt;/a&gt;), there is a growing interest in frameworks that allow to store/query/process/mine/visualize large data sets.&lt;/p&gt;
&lt;p&gt;We have seen in previous blog posts how &lt;a class="reference" href="http://www.cubicweb.org/"&gt;CubicWeb&lt;/a&gt; may be used as an efficient knowledge management system for various types of data, and how it may be used to perform complex queries. In this post, we will see, using &lt;a class="reference" href="http://www.geonames.org/"&gt;Geonames&lt;/a&gt; data, how CubicWeb may perform simple or complex data mining and machine learning procedures on data, using the &lt;a class="reference" href="http://www.cubicweb.org/project/cubicweb-datamining"&gt;datamining cube&lt;/a&gt;. This cube adds powerful tools to CubicWeb that make it easy to interactively process and visualize datasets.&lt;/p&gt;
&lt;p&gt;At this point, it is not meant to be used on massive datasets, for it is not fully optimized yet. If you try to perform a &lt;a class="reference" href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf"&gt;TF-IDF (term frequency–inverse document frequency)&lt;/a&gt; with a hierarchical clustering on the full dbpedia abstracts dataset, be prepared to wait. But it is a promising way to enrich the user experience while playing with different datasets, for quick interactive exploratory datamining processing (what I've called the &amp;quot;Data fast-food&amp;quot;).
This cube is based on the &lt;a class="reference" href="http://scikit-learn.org/"&gt;scikit-learn&lt;/a&gt; toolbox that has recently gained a huge popularity in the machine learning and Python community. The release of this cube drastically increases the interest of CubicWeb for data management.&lt;/p&gt;
&lt;div class="section" id="the-datamining-cube"&gt;
&lt;h3&gt;&lt;a&gt;The Datamining cube&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;For a given query, similarly to SQL, CubicWeb returns a &lt;em&gt;result set&lt;/em&gt;. This result set may be presented by a &lt;em&gt;view&lt;/em&gt; to display a table, a map, a graph, etc (see &lt;a class="reference" href="http://docs.cubicweb.org/"&gt;documentation&lt;/a&gt; and previous blog posts).&lt;/p&gt;
&lt;p&gt;The datamining cube introduces the possibility to process the result set before presenting it, for example to apply machine learning algorithms to cluster the data.&lt;/p&gt;
&lt;p&gt;The datamining cube is based on two concepts:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;the concept of &lt;em&gt;processor&lt;/em&gt;: basically, a &lt;em&gt;processor&lt;/em&gt; transforms a &lt;em&gt;result set&lt;/em&gt; in a &lt;em&gt;numpy array&lt;/em&gt;, given some criteria defining the mathematical processing, and the columns/rows of the result set to be taken into account. The &lt;a class="reference" href="http://hal.inria.fr/docs/00/56/40/07/PDF/numpy_final.pdf"&gt;numpy-array&lt;/a&gt; is a polyvalent structure that is widely used for numerical computation. This &lt;em&gt;array&lt;/em&gt; could thus be efficiently used with any kind of datamining algorithms. Note that, in our context of knowledge management, it is more convenient to return a &lt;em&gt;numpy array&lt;/em&gt; with additional meta-information, such as indices or labels, the result being stored in what we call a &lt;em&gt;cw-array&lt;/em&gt;. Meta-information may be useful for display, but is not compulsory.&lt;/li&gt;
&lt;li&gt;the concept of &lt;em&gt;array-view&lt;/em&gt;: the &amp;quot;views&amp;quot; are basic components of &lt;em&gt;CubicWeb&lt;/em&gt;, distinguish querying and displaying the data is key in this framework. So, on a given result set, many different views can be applied. In the &lt;em&gt;datamining&lt;/em&gt; cube, we simply overload the basic &lt;em&gt;view&lt;/em&gt; of CubicWeb, so that it works with &lt;em&gt;cw-array&lt;/em&gt; instead of result sets. These &lt;em&gt;array-views&lt;/em&gt; are associated to some machine learning or datamining processes. For example, one can apply the &lt;a class="reference" href="https://en.wikipedia.org/wiki/K-means_clustering"&gt;k-means&lt;/a&gt; (clustering process) view on a given &lt;em&gt;cw-array&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A very important feature is that the processor and the array-view are called directly through the URL using the two related parameters &lt;em&gt;arid&lt;/em&gt; (for &lt;em&gt;ARray ID&lt;/em&gt;) and &lt;em&gt;vid&lt;/em&gt; (for &lt;em&gt;View ID&lt;/em&gt;, standard in CubicWeb).&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154793?vid=download" src="http://www.cubicweb.org/file/2154793?vid=download" /&gt;
&lt;/div&gt;
&lt;div class="section" id="processors"&gt;
&lt;h3&gt;&lt;a&gt;Processors&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We give some examples of basic &lt;em&gt;processors&lt;/em&gt; that may be found in the &lt;em&gt;datamining&lt;/em&gt; cube:&lt;/p&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;em&gt;AttributesAsFloatArrayProcessor&lt;/em&gt; (&lt;em&gt;arid='attr-asfloat'&lt;/em&gt;): This processor turns all Int, BigInt and Float attributes in the result set to floats, and returns the corresponding array. The number of rows is equal to the number of rows in the result set, and the number of columns is equal to the number of convertible attributes in the result set.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;EntityAsFloatArrayProcessor&lt;/em&gt; (&lt;em&gt;arid='entity-asfloat'&lt;/em&gt;): This processor performs similarly to the &lt;em&gt;AttributesAsFloatArrayProcessor&lt;/em&gt;, but keeps the reference to the entities used to create the numpy-array. Thus, this information could be used for display (map, label, ...).&lt;/li&gt;
&lt;li&gt;&lt;em&gt;AttributesAsTokenArrayProcessor&lt;/em&gt; (&lt;em&gt;arid='attr-astoken'&lt;/em&gt;): This processor turns all String attributes in the result set in a numpy array, based on a Word-n-gram analyze. This may be used to tokenize a set of strings.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;PivotTableCountArrayProcessor&lt;/em&gt; (&lt;em&gt;arid='pivot-table-count'&lt;/em&gt;): This processor is used to create a &lt;em&gt;pivot&lt;/em&gt; table, with a count function. Other functions, such as &lt;em&gt;sum&lt;/em&gt; or &lt;em&gt;product&lt;/em&gt; also exist. This may be used to create some spreadsheet-like views.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;UndirectedRelationArrayProcessor&lt;/em&gt; (&lt;em&gt;arid='undirected-rel'&lt;/em&gt;): This processor creates a binary numpy array of dimension (nb_entities,  nb_entities), that represents the relations (or corelations) between entities. This may be used for graph-based vizualisation.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We are also planning to extend the concept of processor to sparse matrix (&lt;a class="reference" href="http://docs.scipy.org/doc/scipy/reference/sparse.html"&gt;scipy.sparse&lt;/a&gt;), in order to deal with very high dimensional data.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="array-views"&gt;
&lt;h3&gt;&lt;a&gt;Array Views&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;em&gt;array views&lt;/em&gt; that are found in the &lt;em&gt;datamining&lt;/em&gt; cube, are, for most of them, used for simple visualization. We used HTML-based templates and the &lt;a class="reference" href="http://www.protovis.org"&gt;Protovis&lt;/a&gt; Javascript Library.&lt;/p&gt;
&lt;p&gt;We will not detail all the views, but rather show some examples. Read the reference documentation for a complete and detailed description.&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="examples-on-numerical-data"&gt;
&lt;h3&gt;&lt;a&gt;Examples on numerical data&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="histogram"&gt;
&lt;h4&gt;&lt;a&gt;Histogram&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="k"&gt;C&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;C&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ss"&gt;&amp;quot;France&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All couples (latitude, longitude) of the locations in France, with an elevation not null
&lt;/pre&gt;
&lt;p&gt;and, using &lt;em&gt;vid=protovis-hist&lt;/em&gt; and  &lt;em&gt;arid=attr-asfloat&lt;/em&gt;&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154795?vid=download" src="http://www.cubicweb.org/file/2154795?vid=download" /&gt;
&lt;/div&gt;
&lt;div class="section" id="scatter-plot"&gt;
&lt;h4&gt;&lt;a&gt;Scatter plot&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;Using the notion of &lt;em&gt;view&lt;/em&gt;, we can display differently the same result set, for example using a &lt;em&gt;scatter plot&lt;/em&gt; (&lt;em&gt;vid=protovis-scatterplot&lt;/em&gt;).&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2156233?vid=download" src="http://www.cubicweb.org/file/2156233?vid=download" /&gt;
&lt;p&gt;Another example with the request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;P&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;E&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="k"&gt;Location&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="n"&gt;E&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;population&lt;/span&gt; &lt;span class="n"&gt;P&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;population&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ss"&gt;&amp;quot;France&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All couples (population, elevation) of locations in France,
with a population higher than 10 (inhabitants),and an elevation higher than 1 (meter)
&lt;/pre&gt;
&lt;p&gt;and, using the same &lt;em&gt;vid&lt;/em&gt; (&lt;em&gt;vid=protovis-scatterplot&lt;/em&gt;) and the same &lt;em&gt;arid&lt;/em&gt; (&lt;em&gt;arid=attr-asfloat&lt;/em&gt;)&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154802?vid=download" src="http://www.cubicweb.org/file/2154802?vid=download" /&gt;
&lt;p&gt;If a third column is given in the result set (and thus in the numpy array), it will be encoded in the size/color of each dot of the scatter plot. For example with the request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;E&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="k"&gt;C&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;NOT&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="k"&gt;NULL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="n"&gt;E&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;C&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ss"&gt;&amp;quot;France&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All tuples (latitude, longitude, elevation) of the locations in France, with an elevation not null
&lt;/pre&gt;
&lt;p&gt;and, using the same &lt;em&gt;vid&lt;/em&gt; (&lt;em&gt;vid=protovis-scatterplot&lt;/em&gt;) and the same &lt;em&gt;arid&lt;/em&gt; (&lt;em&gt;arid=attr-asfloat&lt;/em&gt;), we can visualize the elevation on a map, encoded in size/color&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154805?vid=download" src="http://www.cubicweb.org/file/2154805?vid=download" /&gt;
&lt;p&gt;Another example with the request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt; &lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;50000&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="k"&gt;Location&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;population&lt;/span&gt;  &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ss"&gt;&amp;quot;France&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All couples (latitude, longitude) of 50000 locations in France, with a population higher than 100 (inhabitants)
&lt;/pre&gt;
&lt;img alt="http://www.cubicweb.org/file/2156095?vid=download" src="http://www.cubicweb.org/file/2156095?vid=download" /&gt;
&lt;p&gt;There also exist some AreaChart view,  LineArray view, ...&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="examples-on-relational-data"&gt;
&lt;h3&gt;&lt;a&gt;Examples on relational data&lt;/a&gt;&lt;/h3&gt;
&lt;div class="section" id="relational-matrix-undirected-graph"&gt;
&lt;h4&gt;&lt;a&gt;Relational Matrix (undirected graph)&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;The request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;continent&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ss"&gt;&amp;quot;North America&amp;quot;&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;neighbour_of&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All neighbour countries in North America
&lt;/pre&gt;
&lt;p&gt;and using the &lt;em&gt;vid='protovis-binarymap'&lt;/em&gt; and &lt;em&gt;arid='undirected-rel'&lt;/em&gt;&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154796?vid=download" src="http://www.cubicweb.org/file/2154796?vid=download" /&gt;
&lt;/div&gt;
&lt;div class="section" id="relational-matrix-directed-graph"&gt;
&lt;h4&gt;&lt;a&gt;Relational Matrix (directed graph)&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;If we do not want a symmetric matrix, i.e. if we want to keep the direction of a link (X,Y is not the same relation as Y,X), we can use the &lt;em&gt;directed*rel&lt;/em&gt; array processor. For example, with the following request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt; &lt;span class="k"&gt;LIMIT&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;continent&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
20 countries and their continent
&lt;/pre&gt;
&lt;p&gt;and using the &lt;em&gt;vid='protovis-binarymap'&lt;/em&gt; and &lt;em&gt;arid='directed-rel'&lt;/em&gt;&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154797?vid=download" src="http://www.cubicweb.org/file/2154797?vid=download" /&gt;
&lt;/div&gt;
&lt;div class="section" id="force-directed-graph"&gt;
&lt;h4&gt;&lt;a&gt;Force directed graph&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;For a dynamic representation of relations, we can use a force directed graph.
The request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;neighbour_of&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All neighbour countries in the World.
&lt;/pre&gt;
&lt;p&gt;and using the &lt;em&gt;vid='protovis-forcedirected'&lt;/em&gt; and &lt;em&gt;arid='undirected-rel'&lt;/em&gt;, we can see the full graph, with small independent components (e.g. UK and Ireland)&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154800?vid=download" src="http://www.cubicweb.org/file/2154800?vid=download" /&gt;
&lt;p&gt;Again, a third column in the result set could be used to encode some labeling information, for example the continent.&lt;/p&gt;
&lt;p&gt;The request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;CO&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;neighbour_of&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;continent&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All neighbour countries in the World, and their corresponding continent.
&lt;/pre&gt;
&lt;p&gt;and again, using the &lt;em&gt;vid='protovis-forcedirected'&lt;/em&gt; and &lt;em&gt;arid='undirected-rel'&lt;/em&gt;, we can see the full graph with the continents encoded in color (Americas in green, Africa in dark blue, ...)&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154801?vid=download" src="http://www.cubicweb.org/file/2154801?vid=download" /&gt;
&lt;/div&gt;
&lt;div class="section" id="dendrogram"&gt;
&lt;h4&gt;&lt;a&gt;Dendrogram&lt;/a&gt;&lt;/h4&gt;
&lt;p&gt;For hierarchical information, one can use the &lt;em&gt;Dendrogram&lt;/em&gt; view. For example, with the request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;Y&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;continent&lt;/span&gt; &lt;span class="n"&gt;Y&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All couple (country, continent) in the World
&lt;/pre&gt;
&lt;p&gt;and using &lt;em&gt;vid='protovis-dendrogram'&lt;/em&gt; and &lt;em&gt;arid='directed-rel'&lt;/em&gt;, we have the following dendrogram (we only show a part due to lack of space)&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154806?vid=download" src="http://www.cubicweb.org/file/2154806?vid=download" /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="unsupervised-learning"&gt;
&lt;h3&gt;&lt;a&gt;Unsupervised Learning&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;We have also developed some &lt;em&gt;machine learning&lt;/em&gt; view for &lt;em&gt;unsupervised learning&lt;/em&gt;. This is more a proof of concept than a fully optimized development, but we can already do some cool stuff. Each machine learning processing is referenced by a &lt;em&gt;mlid&lt;/em&gt;. For example, with the request:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="k"&gt;Any&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="k"&gt;Location&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="n"&gt;E&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;elevation&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;latitude&lt;/span&gt; &lt;span class="n"&gt;LA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;longitude&lt;/span&gt; &lt;span class="n"&gt;LO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="n"&gt;X&lt;/span&gt; &lt;span class="n"&gt;country&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CO&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="ss"&gt;&amp;quot;France&amp;quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;that may be translated as:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
All couples (latitude, longitude) of the locations in France, with an elevation higher than 1
&lt;/pre&gt;
&lt;p&gt;and using &lt;em&gt;vid='protovis-scatterplot'&lt;/em&gt; &lt;em&gt;arid='attr-asfloat'&lt;/em&gt; and &lt;em&gt;mlid='kmeans'&lt;/em&gt;, we can construct a scatter plot of all couples of latitude and longitude in France, and create 10 clusters using the &lt;em&gt;kmeans&lt;/em&gt; clustering. The labeling information is thus encoded in color/size:&lt;/p&gt;
&lt;img alt="http://www.cubicweb.org/file/2154804?vid=download" src="http://www.cubicweb.org/file/2154804?vid=download" /&gt;
&lt;/div&gt;
&lt;div class="section" id="download"&gt;
&lt;h3&gt;&lt;a&gt;Download&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Finally, we have also implement a download view, based on the Pickle of the numpy-array. It is thus possible to access remotely any data within a Python shell, allowing to process them as you want. Changing the request can be done very easily by changing the &lt;em&gt;rql&lt;/em&gt; parameter in the URL. For example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;pickle&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nn"&gt;urllib&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pickle&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;urllib&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;&amp;#39;http://mydomain?rql=my request&amp;amp;vid=array-numpy&amp;amp;arid=attr-asfloat&amp;#39;&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
</description>
  <dc:date>2012-01-23T13:30-01:00</dc:date>
  <dc:creator>Vincent Michel</dc:creator>
<feedburner:origLink>http://www.cubicweb.org/blogentry/2154794</feedburner:origLink></item>
  </channel>
</rss>
