Splits in prep for running the rules
[frenchie/icalparse.git] / rules.py
1 #!/usr/bin/python
2
3 # This file describes a series of rules which will be called on an ics file as
4 # rule(key, value)
5
6 # Your functions are expected to return a (key, value) tuple or they will be treated as
7 # if they don't exist (ie, the line will go through unhindered). Returning a value which
8 # is boolean False will remove the offending line from the final  ICS. The easiest way
9 # to pass a line back without changing it is to return True.
10
11 # The doc string will be presented to the user when run as verbose, so please be polite
12
13 def markEventsPublic(key, value):
14         '''Marking private events public'''
15         # Required as google are strict about the CLASS:PRIVATE/CLASS:CONFIDENTIAL lines
16         if key == 'CLASS':
17                 return (key, 'PUBLIC')
18         return True

UCC git Repository :: git.ucc.asn.au