]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Remove "system_msg" from log entries.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Nov 2012 20:43:34 +0000 (21:43 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Nov 2012 20:43:34 +0000 (21:43 +0100)
All log entries that do not have a user associated
are considered to be system messages.

backend/logs.py
web/ui_modules.py

index b6f0f01bc2afee7fb2e29072679628219781065e..20c54c678947be4dea8b39ab6a1e13597844ee18 100644 (file)
@@ -9,7 +9,6 @@ _ = lambda x: x
 
 class LogEntry(base.Object):
        type = None
-       system_msg = True
 
        def __init__(self, pakfire, data):
                base.Object.__init__(self, pakfire)
@@ -71,7 +70,6 @@ class CreatedLogEntry(LogEntry):
 
 class CommentLogEntry(LogEntry):
        type = "comment"
-       system_msg = False
 
        @property
        def time(self):
index 3175f416e36e43e3323c06bc6d7996c64ec0e115..5f386852fe0f3fa0c182aa2e0f5d1f48f8d22a29 100644 (file)
@@ -301,7 +301,7 @@ class LogModule(UIModule):
 
 class LogEntryModule(UIModule):
        def render(self, entry, small=None, **args):
-               if small or entry.system_msg:
+               if small or not entry.user:
                        template = "modules/log-entry-small.html"
                else:
                        template = "modules/log-entry.html"