# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1238686503 -7200 # Node ID 680a8fe589a87cdb858d610f593b2d0c706d273b # Parent 76de1c3aaef3368f00d7a5b33bc41ba30d329634# Parent b5beb1946019e1dd17535d8d2f1b2b55f1b6e4bd merge should-not-be-a-branch to default. ENSURE YOUR LOCAL REPOSITORY IS IN THE default BRANCH diff -r 76de1c3aaef3 -r 680a8fe589a8 server/repository.py --- a/server/repository.py Thu Apr 02 11:50:42 2009 +0200 +++ b/server/repository.py Thu Apr 02 17:35:03 2009 +0200 @@ -145,7 +145,7 @@ # querier helper, need to be created after sources initialization self.querier = QuerierHelper(self, self.schema) # should we reindex in changes? - self.do_fti = config['delay-full-text-indexation'] + self.do_fti = not config['delay-full-text-indexation'] # sources self.sources = [] self.sources_by_uri = {} diff -r 76de1c3aaef3 -r 680a8fe589a8 web/views/actions.py --- a/web/views/actions.py Thu Apr 02 11:50:42 2009 +0200 +++ b/web/views/actions.py Thu Apr 02 17:35:03 2009 +0200 @@ -8,7 +8,7 @@ from cubicweb.common.selectors import (searchstate_accept, match_user_group, yes, one_line_rset, two_lines_rset, one_etype_rset, - authenticated_user, + authenticated_user, none_rset, match_search_state, chainfirst, chainall) from cubicweb.web.action import Action, EntityAction, LinkToEntityAction @@ -82,7 +82,6 @@ class ModifyAction(EntityAction): category = 'mainactions' __selectors__ = (one_line_rset, searchstate_accept) - #__selectors__ = searchstate_accept, schema_action = 'update' order = 10 @@ -314,3 +313,14 @@ login = self.rset.get_entity(self.row or 0, self.col or 0).login return self.build_url('euser/%s'%login, vid='epropertiesform') +# schema view action + +class DownloadOWLSchemaAction(Action): + category = 'mainactions' + id = 'download_as_owl' + title = _('download schema as owl') + __selectors__ = none_rset, + + def url(self): + return self.build_url('view', vid='owl') + diff -r 76de1c3aaef3 -r 680a8fe589a8 web/views/boxes.py --- a/web/views/boxes.py Thu Apr 02 11:50:42 2009 +0200 +++ b/web/views/boxes.py Thu Apr 02 17:35:03 2009 +0200 @@ -13,23 +13,21 @@ :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr """ +from __future__ import with_statement __docformat__ = "restructuredtext en" from logilab.mtconverter import html_escape - from cubicweb.common.selectors import any_rset, appobject_selectable from cubicweb.web.htmlwidgets import BoxWidget, BoxMenu, BoxHtml, RawBoxItem from cubicweb.web.box import BoxTemplate, ExtResourcesBoxTemplate _ = unicode - - + class EditBox(BoxTemplate): """ box with all actions impacting the entity displayed: edit, copy, delete change state, add related entities """ - __selectors__ = (any_rset,) + BoxTemplate.__selectors__ id = 'edit_box' title = _('actions') order = 2 @@ -77,7 +75,7 @@ self.add_submenu(box, other_menu) if not box.is_empty(): box.render(self.w) - + def add_submenu(self, box, submenu, label_prefix=None): if len(submenu.items) == 1: boxlink = submenu.items[0] @@ -205,7 +203,7 @@ class StartupViewsBox(BoxTemplate): """display a box containing links to all startup views""" id = 'startup_views_box' - visible = False # disabled by default + visible = False# disabled by default title = _('startup views') order = 70