Skip to content
Snippets Groups Projects
Commit 2b28a0329472 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

default is stable

No related branches found
Tags cubicweb-link-centos-version-1.7.0-1
No related merge requests found
......@@ -4,7 +4,7 @@
modname = 'link'
distname = "cubicweb-%s" % modname
numversion = (1, 4, 0)
numversion = (1, 4, 1)
version = '.'.join(str(num) for num in numversion)
license = 'LGPL'
......@@ -31,7 +31,7 @@
# dependencies
__depends_cubes__ = {}
__depends__ = {'cubicweb': '>= 3.6.0'}
__depends__ = {'cubicweb': '>= 3.6.1'}
__use__ = tuple(__depends_cubes__)
# packaging
......
cubicweb-link (1.4.1-1) unstable; urgency=low
* new upstream release
-- Sylvain Thénault <sylvain.thenault@logilab.fr> Wed, 24 Feb 2010 15:53:48 +0100
cubicweb-link (1.4.0-1) unstable; urgency=low
* new upstream release
......
......@@ -11,7 +11,7 @@
Architecture: all
Conflicts: erudi-link, erudi-link-server, erudi-link-client, erudi-link-comp
Replaces: erudi-link, erudi-link-server, erudi-link-client, erudi-link-comp
Depends: cubicweb-common (>= 3.6.0)
Depends: cubicweb-common (>= 3.6.1)
Description: link component for the CubicWeb framework
This CubicWeb component provides links (a URL with a description).
.
......
......@@ -13,5 +13,5 @@
class embed(RelationType):
__permissions__ = {'read': ('managers', 'users', 'guests'),
'delete': ('managers',),
'add': ('managers',)}
'update': ('managers',),
}
......@@ -27,12 +27,7 @@
return [(rschema.type, x) for rschema, tschemas, x in iterable]
e = self.vreg["etypes"].etype_class('Link')(self.request())
# we should only see embed when we are in the managers group
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'add')),
[('title', 'subject'), ('url', 'subject'),
('embed', 'subject'),
('description', 'subject'),
('eid', 'subject')])
self.assertEquals(rbc(afs.relations_by_section(e,'main', 'attributes', 'delete')),
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')),
[('title', 'subject'), ('url', 'subject'),
('embed', 'subject'),
('description', 'subject'),
......@@ -41,11 +36,7 @@
self.login('toto')
# create a new instance with the new connection
e = self.vreg["etypes"].etype_class('Link')(self.request())
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'add')),
[('title', 'subject'), ('url', 'subject'),
('description', 'subject'),
('eid', 'subject')])
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'delete')),
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')),
[('title', 'subject'), ('url', 'subject'),
('description', 'subject'),
('eid', 'subject')])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment