Es medio hack elegante :P
self.items = ['dashboard'] + self.items
def _check(self, c):
self.items = ['dashboard'] + self.items
def _check(self, c):
+ if hasattr(c, 'hide_to_admin') and 'admin' in identity.current.permissions: return False
return c.require.eval_with_object(identity.current)
def __repr__(self):
return c.require.eval_with_object(identity.current)
def __repr__(self):
"""Basic model admin interface"""
require = identity.has_permission('entregar')
"""Basic model admin interface"""
require = identity.has_permission('entregar')
@expose()
def default(self, tg_errors=None):
"""handle non exist urls"""
@expose()
def default(self, tg_errors=None):
"""handle non exist urls"""
"""Basic model admin interface"""
require = identity.has_permission('entregar')
"""Basic model admin interface"""
require = identity.has_permission('entregar')
@expose()
def default(self, tg_errors=None):
"""handle non exist urls"""
@expose()
def default(self, tg_errors=None):
"""handle non exist urls"""