Roundup Tracker - Issues

Message2191

Author anonymous
Recipients
Date 2006-02-26.17:14:27
Message-id
In-reply-to
In the Customizing doc section "All users may only 
view and edit issues, files and messages they create" 
(http://roundup.sourceforge.net/doc-
1.0/customizing.html#all-users-may-only-view-and-edit-
issues-files-and-messages-they-create)
there is some example code that definines a function:

def checker(klass):
    def check(db, userid, itemid, klass=klass):
        return db.getclass(klass).get
(itemid, 'creator') == userid

I think this is missing the return statement that 
returns the internal function (last line below):

def checker(klass):
    def check(db, userid, itemid, klass=klass):
        return db.getclass(klass).get
(itemid, 'creator') == userid
    return check
History
Date User Action Args
2009-02-03 14:21:40adminlinkissue1439086 messages
2009-02-03 14:21:40admincreate