X-Git-Url: https://git.ucc.asn.au/?p=frenchie%2Ficalparse.git;a=blobdiff_plain;f=parserrules.py;h=e66af2feab2db96f1909ac9328295b8f67668edd;hp=61a09e58e9be7b461a810e124a4cb1c9cc351eab;hb=85843643c1e11a84cf8583ab58b07af8eba4057e;hpb=48d87039714129b0798a4efba2938d15190af7d8 diff --git a/parserrules.py b/parserrules.py index 61a09e5..e66af2f 100644 --- a/parserrules.py +++ b/parserrules.py @@ -4,15 +4,12 @@ # rule(key, value) # Your functions are expected to return a (key, value) tuple or they will be treated as -# if they don't exist (ie, the line will go through unhindered). Returning a value which -# is boolean False will remove the offending line from the final ICS. The easiest way -# to pass a line back without changing it is to return True. +# if they don't exist (ie, the line will go through unhindered). Returning an value which +# is boolean False will remove the offending line from the final ICS (unless it's a None). # The doc string will be presented to the user when run as verbose, so please be polite def markEventsPublic(key, value): '''Marking private events public''' # Required as google are strict about the CLASS:PRIVATE/CLASS:CONFIDENTIAL lines - if key == 'CLASS': - return (key, 'PUBLIC') - return True + if key == 'CLASS': return (key, 'PUBLIC')