You can click on the Google or Yahoo buttons to sign-in with these identity providers,
or you just type your identity uri and click on the little login button.
CubicWeb got rewarded yesterday at the award ceremony of the Dataconnexions 2013 contest.
Dataconnexions is a contest organized by Etalab, the organization part of the French State that is in charge of data.gouv.fr, that catalogs the open data published by the french administration.
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.
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.
This version should be published before the end of March and will finish all the things
that are work in progress. It will include:
the refactoring necessary to introduce persistant sessions,
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),
stop serving pages with "content-type: application/xhtml",
handling postgresql schemas (will require a new version of logilab.database),
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.
possibility to add new base types (Array, HStore,
Geometry, TSVector, etc.) that would use extensions from the
SQL backend
FROM clause in rql queries
websockets
defining attribute on relations and defining "virtual" relations or rules:
classContribution(EntityType):author=SubjectRelation('Person',cardinality='1*',inlined=True)book=SubjectRelation('Book',cardinality='1*',inlined=True)role=SubjectRelation('Role',cardinality='1*',inlined=True)preface_writer=VirtualRelation('C is Contribution, C author S, C book O, ''C role R, R name "preface writer"')
And:
Any P WHERE B is Book, P preface_writer B
Will we need a materialized view in the database, a standard relation maintained by hooks,
rewrite the RQL on-the-fly ? Time will tell.
cards with logic (mustache js templates for example)
coffeescript ? brython ? javascript ? prototype something with CubicDB + WebService that
outputs json + user interface in full javascript
package separately Cubic(Web)DB et CubicWeb ?
think about the overall architecture (using WSGI, persistent sessions, etc.), and find
solutions that fit a distributed architecture (look at paste.deploy, circus, etc.)
clean up the javascript en web/data/*.js
configurable metadata, managing the size of the entities table
more SPARQL
namespaces for the data models of the cubes
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.
Logilab's next roadmap meeting will be held at the beginning of April 2013.
Add a new dataimport store (SQLGenObjectStore). 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.
Orm: set_attributes and set_relations are unified (and
deprecated) in favor of cw_set that works in all cases.
db-api/configuration: all the external repository connection information is
now in an URL (see #2521848),
allowing to drop specific options of pyro nameserver host, group, etc and fix
broken ZMQ source. Configuration related changes:
Dropped 'pyro-ns-host', 'pyro-instance-id', 'pyro-ns-group' from the client side
configuration, in favor of 'repository-uri'. NO MIGRATION IS DONE,
supposing there is no web-only configuration in the wild.
Stop discovering the connection method through repo_method class attribute
of the configuration, varying according to the configuration class. This is
a first step on the way to a simpler configuration handling.
DB-API related changes:
Stop indicating the connection method using ConnectionProperties.
Drop _cnxtype attribute from Connection and cnxtype from
Session. The former is replaced by a is_repo_in_memory property
and the later is totaly useless.
Turn repo_connect into _repo_connect to mark it as a private function.
Deprecate in_memory_cnx which becomes useless, use _repo_connect instead
if necessary.
the "tcp://" uri scheme used for ZMQ
communications (in a way reminiscent of Pyro) is now named
"zmqpickle-tcp://", so as to make room for future zmq-based lightweight
communications (without python objects pickling).
Request.base_url gets a secure=True optional parameter that yields
an https url if possible, allowing hook-generated content to send
secure urls (e.g. when sending mail notifications)
Dataimport ucsvreader gets a new boolean ignore_errors
parameter.
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 !
The action box associated with table views (from tableview.py)
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.
The uicfg 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.
Remove changelog view, as neither cubicweb nor known cubes/applications
were properly feeding related files.
'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...
Debugging filters for Hooks and Operations have been added.
Some cubicweb-ctl commands used to show the output of msgcat and
msgfmt; they don't anymore.
For two days, on dec 13th/14th 2012, ten hackers gathered at Logilab to improve the user interface of CubicWeb. This hackathon was initiated by
Crealibre. About a year ago, they started the Orbui project, a new user interface for CubicWeb based on the Bootstrap HTML/CSS framework.
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.
Sylvain published a roadmap back in may with a section titled "on the road to Bootstrap". 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:
cubicweb-legacyui: css, views and templates extracted from CubicWeb 3.16, so as to provide full backward compatibility
cubicweb-bootstrap: empty cube with only bootstrap version 2.2.2 in data/
cubicweb-squareui: bootstrapified version of legacyui (slightly altered to benefit from the bootstrap css without breaking backward compatibility too hard)
At the end of the sprint, one could add_cube('squareui') on an existing application and keep it usable... and get "some kind of responsiveness" for free, thus proving that we were on the right track.
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.
For the curious, here is what the skeleton of legacyui.views.maintemplate (aka cw.web.views.maintemplate) looks like:
Décrivez le (ou les) problème(s) que votre projet tente de résoudre, ainsi que
son (leur) importance : taille du marché, fréquence d’utilisation potentielle,
population concernée, bénéfices éventuels de service public, etc. (maximum 1000
signes).
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.
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.
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).
Décrivez votre produit, service ou visualisation, dans sa forme actuelle et le
cas échéant après les développements futurs éventuels que vous envisagez.
Précisez le ou les jeux de données publiques que vous utilisez à cet effet
(maximum 1000 signes).
CubicWeb est une plate-forme libre de développement pour le web sémantique.
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.
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).
Décrivez le modèle d’affaire de votre projet, c’est-à-dire les conditions de sa
pérennité et de son développement : plan d’affaires et projections commerciales
dans le cas d’un projet entrepreneurial ; objectifs, donneurs clés, partie
prenantes dans le cas d’un projet d’ordre civique (maximum 1000 signes).
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.
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.
Décrivez les étapes que vous avez franchies, les ressources mobilisées, les
indicateurs et métriques déjà établies, etc. (maximum 1000 signes).
Le projet CubicWeb est issu d'un effort de R&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.
Depuis 2008, CubicWeb est un logiciel libre dont le développement est mené
ouvertement sur internet.
Décrivez l’équipe qui vous accompagne dans votre projet (le cas échéant), vos
compétences, expériences et réalisations, ainsi que les partenaires éventuels
qui vous soutiennent (maximum 1000 signes).
Détaillez toutes les précisions additionnelles que vous souhaiteriez apporter
au sujet de votre projet, et expliquez en quoi DataConnexions peut contribuer à
pérenniser son développement (maximum 1000 signes).
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.
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.
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.
L'objectif de cette candidature est donc de faire croître la communauté des
utilisateurs et contributeurs de CubicWeb.
Lien permettant de télécharger une vidéo décrivant le Projet et ses
fonctionnalités, d’une durée maximale de 3 minutes
Ce n’est pas la qualité de la vidéo qui est jugée, mais le projet lui-même. La
vidéo doit permettre de rendre compte des fonctionnalités du projet. Les
candidats sont encouragés à réaliser une capture d’écran ou un « screencast »
(par exemple avec des outils tels que CamStudio, Jing ou Screenr).
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.
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.
Lien permettant d’accéder au Projet, ou au code informatique compilé et
interprétable du Projet
Par exemple : URL permettant de consulter, ou, le cas échéant, de télécharger
l’application, accompagnée, si nécessaire, d’instructions à cet
effet. L’application devra être facile à installer et aisément démontrable sur
sa plateforme de destination.
Décrivez le Projet dans des termes compatibles avec une diffusion au grand
public : non confidentiels, compréhensibles par le plus grand nombre, et mettant
en avant l’intérêt du projet (maximum 1000 signes).
Lien vers un élément visuel décrivant et mettant en valeur le projet et ses
fonctionnalités (capture d’écran, page d’accueil, schéma de description).
A few people from Logilab attended the dotjs 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 CubicWeb.
Here is a raw roundup of links collected last friday :
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.
Network resources will be available for those bringing laptops.
Address : 104 Boulevard Auguste-Blanqui, Paris. Ring "Logilab" (googlemap)
In cubicweb, 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.
To do so, cubicweb provides you with a set of powerful tools, however as
there is often more than one way to do it, this blog entry is here to help
you in choosing the preferred way.
build_url is accessible in any context, so for instance in the rendering of a
given entity view you can call self._cw.build_url to build you URLs easily,
which is the most common case. In class methods (for instance, when declaring the
rendering methods of an EntityTableView), you can access it through the context
of instantiated appobject which are usually given as argument,
e.g. entity._cw.build_url. For test purposes you can also call
session.build_url in cubicweb shells.
build_url basically take a first optional, the path, 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 path.
Extra parameters given to build_url will vary according to your needs, however
most common arguments understood by default cubicweb views are the followings:
vid: the built view __regid__;
rql: the RQL query used to retreive data on which the view should be
applied;
eid: the identifier of an entity, which you should use instead of rql
when the view apply to a single entity (most often);
__message: an information message to display inside the view;
__linkto: in case of an entity creation url, will allow to set some
specific relations between both entities;
__redirectpath: the URL of the entity of the redirection;
__redirectvid: the view id of the redirection.
__redirectvid and __redirectpath are used to control redirection after
posting a form and are more detailed in the cubicweb documentation, chapter
related to the edition control
(http://docs.cubicweb.org/devweb/edition/editcontroller.html).
Generally, an entity has two important methods that retrieve its absolute or
relative urls:
entity.rest_path() will return something like <type>/<eid> where
<type> corresponds to the entity type and <eid> the entity eid;
entity.absolute_url() will return the full url of the entity
http://<baseurl>/<type>/<eid>. In case you want to access a specific view
of the entity, just pass the vid='myviewid' argument. You can give
arbitrary arguments to this method that will be encoded as url parameters.
Passing the rql to the build_url method requires to have a proper RQL
expression. To do so, there is a convenience method, printable_rql(), 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 rql =
self.cw_rset.printable_rql().
There are several ways to get URL of the current view, the canonical one being to
use self._cw.relative_path(includeparams=True) which will return the path of
the current view relative to the base url of the site (otherwise use
self._cw.url(), including parameters or not according to value given as
includeparams).
You can also retrieve values given to individual parameters using self._cw.form, eg:
self._cw.form.get('vid', '') will return only the view id;
self._cw.form.get('rql', '') will return only the RQL;
self._cw.form.get('__redirectvid', '') will return the redirection
view if defined;
self._cw.form.get('__redirectpath', '') will return the redirection
path if defined.
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:
self._cw.build_url('view', vid='my_view_id')
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:
Any extra arguments passed to the build_url method will be available in the
controller as key, values pairs of the self._cw.forms dictionary. This is
especially useful when you want to define some kind of hidden attributes
but there is not form to put them into.
And, last but not least, a convenient way to get the root URL of the instance:
There are other ways to create a link to registered actions than using
build_url, mostly by accessing them via the registry vreg.
For instance, the action registry holds effectively all possible actions in a
given context: a specific action can be selected using the select_or_none()
method, or even using the possible_action() method which will return a list of
categorized actions. The url of the action is then available as
action.url(). For contextual components (e.g. boxes), you can even directly
get a link to the selected action(s) using the self.action_link(this_action)
method.
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:
defpublish(self,rset):value1,value2=self._cw.form['arg1'],self._cw.form['arg2']# do some stuff with value1 and value2 here...raiseRedirect(self._cw.build_url(rql=self._cw.form['rql'],vid=self._cw.form['__redirectvid'],__message=_('you message')))
Create a link to add a given entity and relate this entity to the current one
with a relation 'child_of', then go back to the current entity's view: