Roundup Tracker - Issues

Issue 1439086

classification
Missing line of code in example
Type: Severity: normal
Components: Documentation Versions:
process
Status: closed fixed
:
: :
Priority: normal :

Created on 2006-02-26 17:14 by anonymous, last changed 2006-03-06 08:06 by anonymous.

Messages
msg2191 Author: [hidden] (anonymous) Date: 2006-02-26 17:14
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
msg2192 Author: [hidden] (anonymous) Date: 2006-03-06 08:06
Logged In: NO 

This seems to be fixed in the online docs
at roundup.sourceforge.net, 
but not in the roundup-1.1.1/doc/customizing.html
file in the download distribution.
History
Date User Action Args
2006-02-26 17:14:27anonymouscreate