Skip to content
Permalink
Browse files

http://luc.lino-framework.org/blog/2016/0815.html

  • Loading branch information...
lsaffre committed Aug 15, 2016
1 parent 13a0708 commit cfd142d8539702c643f95960751f679e1f76a302
Showing with 8 additions and 6 deletions.
  1. +4 −3 lino/modlib/comments/ui.py
  2. +3 −2 lino/modlib/notify/models.py
  3. +1 −1 lino/modlib/users/mixins.py
@@ -18,11 +18,12 @@

from lino.api import dd
from lino.modlib.users.mixins import ByUser
from lino.modlib.office.roles import OfficeStaff, OfficeUser
from lino.utils.xmlgen.html import E


class Comments(dd.Table):
required_roles = dd.required(dd.SiteStaff)
required_roles = dd.required(OfficeStaff)
slave_grid_format = "summary"

model = 'comments.Comment'
@@ -46,14 +47,14 @@ class Comments(dd.Table):


class MyComments(ByUser, Comments):
required_roles = dd.required()
required_roles = dd.required(OfficeUser)
auto_fit_column_widths = True
order_by = ["modified"]
column_names = "modified short_text owner *"


class CommentsByX(Comments):
required_roles = dd.required()
required_roles = dd.required(OfficeUser)
order_by = ["-created"]

USE_ETREE = False
@@ -39,6 +39,7 @@
from lino.mixins import Created, ObservedPeriod
from lino.modlib.gfks.mixins import Controllable
from lino.modlib.users.mixins import UserAuthored, My
from lino.modlib.office.roles import OfficeStaff, OfficeUser
from .utils import body_subject_to_elems

from lino.utils.xmlgen.html import E
@@ -271,12 +272,12 @@ class AllNotifications(Notifications):
"""The gobal list of all notifications.
"""
required_roles = dd.required(SiteStaff)
required_roles = dd.required(OfficeStaff)


class MyNotifications(My, Notifications):
# label = _("My notifications")
required_roles = dd.required()
required_roles = dd.required(OfficeUser)
column_names = "created subject owner sent workflow_buttons *"
order_by = ['created']
# filter = models.Q(seen__isnull=True)
@@ -283,7 +283,7 @@ class AssignToMe(dd.Action):
"""
label = _("Assign to me")
show_in_workflow = True
readonly = False
# readonly = False
required_roles = dd.required(Helper)

# button_text = u"\u2698" # FLOWER (⚘)

0 comments on commit cfd142d

Please sign in to comment.
You can’t perform that action at this time.