# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239021823 -7200 # Node ID 4a8c5f8ddff5c24517c146fbe4e709d2c06549a0 # Parent 3332c92d950c96391a53eb07a326f74a0c261b54 only show owl action when displaying the schema view diff -r 3332c92d950c -r 4a8c5f8ddff5 web/views/actions.py --- a/web/views/actions.py Mon Apr 06 14:43:23 2009 +0200 +++ b/web/views/actions.py Mon Apr 06 14:43:43 2009 +0200 @@ -314,12 +314,17 @@ return self.build_url('euser/%s'%login, vid='epropertiesform') # schema view action +def schema_view(cls, req, rset, row=None, col=None, view=None, + **kwargs): + if view is None or not view.id == 'schema': + return 0 + return 1 class DownloadOWLSchemaAction(Action): category = 'mainactions' id = 'download_as_owl' title = _('download schema as owl') - __selectors__ = none_rset, + __selectors__ = none_rset, schema_view def url(self): return self.build_url('view', vid='owl')