Rules implemented
[frenchie/icalparse.git] / parserrules.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 an value which
8 # is boolean False will remove the offending line from the final ICS (unless it's a None).
9
10 # The doc string will be presented to the user when run as verbose, so please be polite
11
12 def markEventsPublic(key, value):
13         '''Marking private events public'''
14         # Required as google are strict about the CLASS:PRIVATE/CLASS:CONFIDENTIAL lines
15         if key == 'CLASS': return (key, 'PUBLIC')

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