Module Expr Str Import alias ImportFrom alias alias ImportFrom alias alias Import alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str FunctionDef arguments args NameParam defaults body Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq NameLoad NameLoad body Return TupleLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Return TupleLoad NameLoad Num decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareIs NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr ListComp BinOpAdd BinOpAdd Str NameLoad Str comprehension NameStore AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assert UnaryOpNot AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad TryFinally body TryExcept body Expr Yield NameLoad handlers ExceptHandler body Raise orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Index Num If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse If UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num NameLoad body Raise Call NameLoad BinOpAdd Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str TupleLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq SubscriptLoad NameLoad Index Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse Assign NameStore Str Assign NameStore TupleLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assert CompareIsNot NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Assign NameStore GeneratorExp Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore Call NameLoad NameLoad keyword NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assert CompareIsNot NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num If CompareIn Str Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return TryExcept body If BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num Num Str CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign NameStore BinOpAdd Str SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Return If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Assign NameStore Call AttributeLoad Str attr ListLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad Call NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Dict Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad If BoolOpOr BoolOpAnd CompareIn Str AttributeLoad SubscriptLoad NameLoad Index Str attr CompareEq NameLoad NameLoad Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore CompareEq NameLoad NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore BinOpAdd BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Return For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore TupleLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad NameLoad Assign NameStore Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index Num Index Num Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str TryExcept body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Index Num Index Num Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assert CompareIsNot NameLoad NameLoad For NameStore ListLoad Str Str body Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Return Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assert CompareIsNot AttributeLoad NameLoad attr NameLoad Assert CompareIsNot AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body Expr Yield Call NameLoad SubscriptLoad NameLoad Index Num orelse For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assert CompareIs AttributeLoad NameLoad attr NameLoad Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body Expr Yield Call NameLoad SubscriptLoad NameLoad Index Num orelse For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert CompareIsNot AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert CompareIs AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Yield Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assert CompareIsNot NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore TupleLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Yield NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad SubscriptLoad NameLoad Index Str attr TryExcept body Assign NameStore BinOpSub AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad SubscriptLoad NameLoad Index Str attr handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Return TupleLoad NameLoad NameLoad decorator_list
N/A N/A 
The SQLite backend implementation.

note on naming:
  * every variable name vevent should be of type icalendar.Event
  * every variable named event should be of type khal.khalendar.Events
  * variables named vevents/events (plural) should be iterables of their
    respective types

 N/A contextlib datetime datetime timedelta os makedirs path N/A sqlite3 dateutil parser N/A icalendar N/A pytz N/A xdg.BaseDirectory event Event EventStandIn N/A aux N/A log exceptions CouldNotCreateDbDir OutdatedDbVersionError UpdateFailed N/A logger N/A log logger N/A DB_VERSION 5 N/A RECURRENCE_ID RECURRENCE-ID N/A THISANDFUTURE THISANDFUTURE N/A THISANDPRIOR THISANDPRIOR N/A DATE 0 N/A DATETIME 1 N/A PROTO PROTO sort_key N/A N/A vevent N/A N/A N/A N/A isinstance vevent N/A icalendar Event N/A uid N/A str N/A vevent N/A UID N/A rec_id N/A N/A vevent get RECURRENCE_ID N/A N/A rec_id None N/A N/A N/A uid 0 N/A rrange N/A N/A N/A rec_id params get RANGE N/A N/A rrange THISANDFUTURE N/A N/A N/A uid N/A N/A aux to_unix_time N/A rec_id dt N/A N/A N/A uid 1 N/A SQLiteDb N/A object N/A N/A 
    This class should provide a caching database for a calendar, keeping raw
    vevents in one table but allowing to retrieve events by dates (via the help
    of some auxiliary tables)

    :param calendar: the `name` of this calendar, if the same *name* and
                     *dbpath* is given on next creation of an SQLiteDb object
                     the same tables will be used
    :type calendar: str
    :param db_path: path where this sqlite database will be saved, if this is
                    None, a place according to the XDG specifications will be
                    chosen
    :type db_path: str or None
     __init__ N/A N/A self calendars db_path locale N/A N/A N/A N/A db_path None N/A N/A db_path N/A N/A N/A N/A xdg BaseDirectory save_data_path khal /khal.db N/A N/A self calendars calendars N/A N/A self db_path N/A N/A path expanduser db_path N/A N/A N/A self _create_dbdir N/A N/A self locale locale N/A N/A self _at_once False N/A N/A self conn N/A N/A sqlite3 connect N/A self db_path N/A N/A self cursor N/A N/A N/A self conn cursor N/A N/A N/A self _create_default_tables N/A N/A N/A self _check_calendars_exists N/A N/A N/A self _check_table_version N/A _select_calendars N/A N/A self N/A N/A N/A N/A N/A ,  join N/A N/A N/A ' cal ' N/A cal N/A self calendars N/A property at_once N/A N/A self N/A N/A N/A N/A N/A self _at_once N/A N/A self _at_once True N/A N/A N/A N/A N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self conn commit N/A N/A N/A self _at_once False N/A N/A contextlib contextmanager _create_dbdir N/A N/A self N/A N/A N/A create the dbdir if it doesn't exist N/A N/A N/A self db_path :memory: N/A N/A None N/A dbdir N/A N/A N/A N/A self db_path rsplit / 1 N/A 0 N/A N/A N/A N/A path isdir dbdir N/A N/A N/A N/A N/A N/A logger debug trying to create the directory for the db N/A N/A makedirs dbdir mode 504 N/A N/A N/A logger debug success N/A N/A N/A OSError N/A error N/A N/A N/A N/A logger fatal N/A N/A failed to create {0}: {1} format dbdir error N/A N/A CouldNotCreateDbDir N/A _check_table_version N/A N/A self N/A N/A N/A tests for curent db Version
        if the table is still empty, insert db_version
         N/A N/A N/A N/A self cursor execute SELECT version FROM version N/A result N/A N/A N/A self cursor fetchone N/A N/A result None N/A N/A N/A N/A N/A self cursor execute INSERT INTO version (version) VALUES (?) N/A DB_VERSION N/A N/A N/A N/A self conn commit N/A N/A N/A N/A N/A result N/A 0 DB_VERSION N/A N/A N/A OutdatedDbVersionError N/A N/A str N/A self db_path  is probably an invalid or outdated database.
You should consider removing it and running khal again. N/A _create_default_tables N/A N/A self N/A N/A N/A creates version and calendar tables and inserts table version number
         N/A N/A N/A N/A self cursor execute CREATE TABLE IF NOT EXISTS version (version INTEGER) N/A N/A N/A logger debug created version table N/A N/A N/A N/A self cursor execute CREATE TABLE IF NOT EXISTS calendars (
            calendar TEXT NOT NULL UNIQUE,
            resource TEXT NOT NULL,
            ctag TEXT
            ) N/A N/A N/A N/A self cursor execute CREATE TABLE IF NOT EXISTS events (
                href TEXT NOT NULL,
                calendar TEXT NOT NULL,
                sequence INT,
                etag TEXT,
                item TEXT,
                primary key (href, calendar)
                ); N/A N/A N/A N/A self cursor execute CREATE TABLE IF NOT EXISTS recs_loc (
            dtstart INT NOT NULL,
            dtend INT NOT NULL,
            href TEXT NOT NULL REFERENCES events( href ),
            rec_inst TEXT NOT NULL,
            ref TEXT NOT NULL,
            dtype INT NOT NULL,
            calendar TEXT NOT NULL,
            primary key (href, rec_inst, calendar)
            ); N/A N/A N/A N/A self cursor execute CREATE TABLE IF NOT EXISTS recs_float (
            dtstart INT NOT NULL,
            dtend INT NOT NULL,
            href TEXT NOT NULL REFERENCES events( href ),
            rec_inst TEXT NOT NULL,
            ref TEXT NOT NULL,
            dtype INT NOT NULL,
            calendar TEXT NOT NULL,
            primary key (href, rec_inst, calendar)
            ); N/A N/A N/A N/A self conn commit N/A _check_calendars_exists N/A N/A self N/A N/A N/A make sure an entry for the current calendar exists in `calendar`
        table
         N/A cal N/A self calendars N/A N/A N/A N/A N/A self cursor execute SELECT count(*) FROM calendars
                    WHERE calendar = ?; N/A cal N/A result N/A N/A N/A self cursor fetchone N/A N/A N/A result N/A 0 0 N/A N/A N/A N/A logger debug N/A N/A tables for calendar {0} exist format cal N/A N/A sql_s INSERT INTO calendars (calendar, resource) VALUES (?, ?); N/A stuple N/A cal N/A N/A N/A self sql_ex sql_s stuple N/A sql_ex N/A N/A self statement stuple N/A N/A N/A wrapper for sql statements, does a "fetchall"  N/A N/A N/A N/A self cursor execute statement stuple N/A result N/A N/A N/A self cursor fetchall N/A N/A N/A self _at_once N/A N/A N/A N/A N/A self conn commit N/A result N/A update N/A N/A self vevent_str href etag calendar N/A None N/A N/A insert a new or update an existing card in the db

        This is mostly a wrapper around two SQL statements, doing some cleanup
        before.

        :param vevent_str: event to be inserted or updated.
                           We assume that even if it contains more than one
                           VEVENT, that they are all part of the same event and
                           all have the same UID
        :type vevent: unicode
        :param href: href of the card on the server, if this href already
                     exists in the db the card gets updated. If no href is
                     given, a random href is chosen and it is implied that this
                     card does not yet exist on the server, but will be
                     uploaded there on next sync.
        :type href: str()
        :param etag: the etag of the vcard, if this etag does not match the
                     remote etag on next sync, this card will be updated from
                     the server. For locally created vcards this should not be
                     set
        :type etag: str()
         N/A N/A calendar None N/A N/A href None N/A N/A N/A ValueError href may not be None N/A ical N/A N/A N/A icalendar Event from_ical vevent_str N/A N/A check_for_errors ical calendar href N/A vevents N/A N/A N/A aux sanitize c N/A N/A self locale N/A default_timezone href calendar N/A c N/A N/A ical walk N/A N/A c name VEVENT N/A N/A N/A self delete href calendar calendar N/A vevent N/A sorted vevents key sort_key N/A N/A N/A check_for_errors vevent calendar href N/A N/A check_support vevent href calendar N/A N/A N/A self _update_impl vevent href calendar N/A sql_s INSERT INTO events (item, etag, href, calendar) VALUES (?, ?, ?, ?); N/A stuple N/A vevent_str etag href calendar N/A N/A N/A self sql_ex sql_s stuple N/A update_birthday N/A N/A self vevent href etag calendar N/A None N/A N/A 
        XXX write docstring
         N/A N/A calendar None N/A N/A href None N/A N/A N/A ValueError href may not be None N/A ical N/A N/A N/A icalendar Event from_ical vevent N/A vcard N/A N/A N/A ical walk N/A 0 N/A N/A BDAY N/A N/A vcard keys N/A N/A bday N/A vcard N/A BDAY N/A N/A isinstance bday list N/A N/A N/A N/A logger warn N/A N/A Vcard {0} in collection {1} has more than one BIRTHDAY, will be skippend and not be available in khal. format href calendar N/A N/A N/A N/A N/A N/A N/A bday N/A 0 2 -- N/A N/A bday N/A 3 - N/A N/A bday N/A 1900 N/A bday N/A 2 N/A orig_bday False N/A N/A orig_bday True N/A bday N/A N/A N/A N/A parser parse bday date N/A N/A N/A ValueError N/A N/A N/A N/A logger warn N/A N/A cannot parse BIRTHDAY in {0} in collection {1} format href calendar N/A N/A N/A FN vcard N/A N/A name N/A vcard N/A FN N/A N/A n N/A N/A N/A vcard N/A N split ; N/A name N/A N/A join N/A N/A n N/A 1 N/A n N/A 2 N/A n N/A 0 N/A event N/A N/A icalendar Event N/A N/A N/A event add dtstart bday N/A N/A N/A event add dtend N/A bday N/A timedelta days 1 N/A N/A N/A event add summary N/A N/A {0}'s birthday format name N/A N/A N/A event add rrule N/A freq YEARLY N/A orig_bday N/A N/A N/A N/A event add x-birthday N/A N/A {:04}{:02}{:02} format N/A bday year N/A bday month N/A bday day N/A N/A N/A event add x-fname name N/A N/A N/A event add uid href N/A event_str N/A N/A N/A N/A event to_ical decode utf-8 N/A N/A N/A self _update_impl event href calendar N/A sql_s INSERT INTO events (item, etag, href, calendar) VALUES (?, ?, ?, ?); N/A stuple N/A event_str etag href calendar N/A N/A N/A self sql_ex sql_s stuple N/A _update_impl N/A N/A self vevent href calendar N/A N/A N/A insert `vevent` into the database

        expand `vevent`'s reccurence rules (if needed) and insert all instance
        in the respective tables
        than insert non-reccuring and original recurring (those with an RRULE
        property) events into table `events`
         N/A rec_id N/A N/A vevent get RECURRENCE_ID N/A N/A rec_id None N/A N/A rrange None N/A N/A rrange N/A N/A N/A rec_id params get RANGE N/A N/A N/A isinstance N/A N/A vevent N/A DTSTART dt datetime N/A N/A dtype DATE N/A N/A dtype DATETIME N/A N/A N/A N/A TZID N/A N/A vevent N/A DTSTART params N/A dtype DATETIME N/A getattr N/A N/A vevent N/A DTSTART dt tzinfo None N/A N/A recs_table recs_loc N/A N/A recs_table recs_float N/A thisandfuture N/A rrange THISANDFUTURE N/A thisandfuture N/A N/A N/A start_shift duration N/A calc_shift_deltas vevent N/A start_shift N/A N/A N/A N/A start_shift days 3600 24 N/A start_shift seconds N/A duration N/A N/A N/A N/A duration days 3600 24 N/A duration seconds N/A dtstartend N/A N/A aux expand vevent href N/A N/A dtstartend N/A N/A N/A N/A dtstart dtend dtstartend N/A N/A N/A dtype DATE N/A N/A dbstart N/A N/A aux to_unix_time dtstart N/A dbend N/A N/A aux to_unix_time dtend N/A N/A rec_id None N/A N/A rec_inst N/A N/A aux to_unix_time N/A rec_id dt N/A ref rec_inst N/A N/A rec_inst dbstart N/A ref PROTO N/A N/A dbstart N/A N/A aux to_unix_time dtstart N/A dbend N/A N/A aux to_unix_time dtend N/A N/A rec_id None N/A N/A ref rec_inst N/A str N/A N/A aux to_unix_time N/A rec_id dt N/A N/A rec_inst dbstart N/A ref PROTO N/A thisandfuture N/A N/A recs_sql_s N/A N/A UPDATE {0} SET dtstart = rec_inst + ?, dtend = rec_inst + ?, ref = ? WHERE rec_inst >= ? AND href = ? AND calendar = ?; format recs_table N/A stuple N/A start_shift N/A start_shift duration ref rec_inst href calendar N/A N/A recs_sql_s N/A N/A INSERT OR REPLACE INTO {0} (dtstart, dtend, href, ref, dtype, rec_inst, calendar)VALUES (?, ?, ?, ?, ?, ?, ?); format recs_table N/A stuple N/A dbstart dbend href ref dtype rec_inst calendar N/A N/A N/A self sql_ex recs_sql_s stuple N/A get_ctag N/A N/A self calendar N/A N/A N/A stuple N/A calendar N/A sql_s SELECT ctag FROM calendars WHERE calendar = ?; N/A N/A N/A ctag N/A N/A N/A N/A self sql_ex sql_s stuple N/A 0 N/A 0 N/A ctag N/A N/A N/A IndexError N/A N/A None N/A set_ctag N/A N/A self ctag calendar N/A N/A N/A stuple N/A ctag calendar N/A sql_s UPDATE calendars SET ctag = ? WHERE calendar = ?; N/A N/A N/A self sql_ex sql_s stuple N/A N/A N/A N/A self conn commit N/A get_etag N/A N/A self href calendar N/A N/A N/A get etag for href

        type href: str()
        return: etag
        rtype: str()
         N/A sql_s SELECT etag FROM events WHERE href = ? AND calendar = ?; N/A N/A N/A etag N/A N/A N/A N/A self sql_ex sql_s N/A href calendar N/A 0 N/A 0 N/A etag N/A N/A N/A IndexError N/A N/A None N/A delete N/A N/A self href etag calendar N/A None None N/A N/A 
        removes the event from the db,

        :param etag: only there for compatiblity with vdirsyncer's Storage,
                     we always delete
        :returns: None
         N/A N/A calendar None N/A table N/A recs_loc recs_float N/A N/A sql_s N/A N/A DELETE FROM {0} WHERE href = ? AND calendar = ?; format table N/A N/A N/A self sql_ex sql_s N/A href calendar N/A sql_s DELETE FROM events WHERE href = ? AND calendar = ?; N/A N/A N/A self sql_ex sql_s N/A href calendar N/A list N/A N/A self calendar N/A N/A N/A  list all events in `calendar`

        used for testing
        :returns: list of (href, etag)
         N/A sql_s SELECT href, etag FROM events WHERE calendar = ?; N/A N/A list N/A set N/A N/A self sql_ex sql_s N/A calendar N/A get_localized N/A N/A self start end minimal N/A False N/A N/A returns
        :type start: datetime.datetime
        :type end: datetime.datetime
        :param minimal: if set, we do not return an event but a minimal stand in
        :type minimal: bool
         N/A N/A N/A start tzinfo None N/A N/A N/A end tzinfo None N/A start N/A N/A aux to_unix_time start N/A end N/A N/A aux to_unix_time end N/A minimal N/A N/A sql_s SELECT events.calendar FROM recs_loc JOIN events ON recs_loc.href = events.href AND recs_loc.calendar = events.calendar WHERE (dtstart >= ? AND dtstart <= ? OR dtend > ? AND dtend <= ? OR dtstart <= ? AND dtend >= ?) AND events.calendar in ({0}) ORDER BY dtstart N/A N/A sql_s SELECT item, recs_loc.href, dtstart, dtend, ref, etag, dtype, events.calendar FROM recs_loc JOIN events ON recs_loc.href = events.href AND recs_loc.calendar = events.calendar WHERE (dtstart >= ? AND dtstart <= ? OR dtend > ? AND dtend <= ? OR dtstart <= ? AND dtend >= ?) AND events.calendar in ({0}) ORDER BY dtstart N/A stuple N/A start end start end start end N/A result N/A N/A self sql_ex N/A N/A sql_s format N/A self _select_calendars stuple N/A minimal N/A N/A calendar result N/A N/A N/A N/A EventStandIn N/A calendar N/A 0 N/A N/A N/A item href start end ref etag dtype calendar result N/A N/A start N/A N/A N/A pytz UTC localize N/A N/A datetime utcfromtimestamp start N/A end N/A N/A N/A pytz UTC localize N/A N/A datetime utcfromtimestamp end N/A N/A N/A N/A self construct_event item href start end ref etag calendar dtype N/A get_floating N/A N/A self start end minimal N/A False N/A N/A return floating events between `start` and `end`

        :type start: datetime.datetime
        :type end: datetime.datetime
        :param minimal: if set, we do not return an event but a minimal stand in
        :type minimal: bool
         N/A N/A N/A start tzinfo None N/A N/A N/A end tzinfo None N/A strstart N/A N/A aux to_unix_time start N/A strend N/A N/A aux to_unix_time end N/A minimal N/A N/A sql_s SELECT events.calendar FROM recs_float JOIN events ON recs_float.href = events.href AND recs_float.calendar = events.calendar WHERE (dtstart >= ? AND dtstart < ? OR dtend > ? AND dtend <= ? OR dtstart <= ? AND dtend > ? ) AND events.calendar in ({0}) ORDER BY dtstart N/A N/A sql_s SELECT item, recs_float.href, dtstart, dtend, ref, etag, dtype, events.calendar FROM recs_float JOIN events ON recs_float.href = events.href AND recs_float.calendar = events.calendar WHERE (dtstart >= ? AND dtstart < ? OR dtend > ? AND dtend <= ? OR dtstart <= ? AND dtend > ? ) AND events.calendar in ({0}) ORDER BY dtstart N/A stuple N/A strstart strend strstart strend strstart strend N/A result N/A N/A self sql_ex N/A N/A sql_s format N/A self _select_calendars stuple N/A minimal N/A N/A calendar result N/A N/A N/A N/A EventStandIn N/A calendar N/A 0 N/A N/A N/A item href start end ref etag dtype calendar result N/A N/A start N/A N/A datetime utcfromtimestamp start N/A end N/A N/A datetime utcfromtimestamp end N/A N/A N/A N/A self construct_event item href start end ref etag calendar dtype N/A get_localized_at N/A N/A self dtime N/A N/A N/A return localized events which are scheduled at `dtime`

        :type dtime: datetime.datetime
         N/A N/A N/A dtime tzinfo None N/A dtime N/A N/A aux to_unix_time dtime N/A sql_s SELECT item, recs_loc.href, dtstart, dtend, ref, etag, dtype, events.calendar FROM recs_loc JOIN events ON recs_loc.href = events.href AND recs_loc.calendar = events.calendar WHERE (dtstart <= ? AND dtend >= ? ) AND events.calendar in ({0}); N/A stuple N/A dtime dtime N/A result N/A N/A self sql_ex N/A N/A sql_s format N/A self _select_calendars stuple N/A N/A item href start end ref etag dtype calendar result N/A N/A start N/A N/A N/A pytz UTC localize N/A N/A datetime utcfromtimestamp start N/A end N/A N/A N/A pytz UTC localize N/A N/A datetime utcfromtimestamp end N/A N/A N/A N/A self construct_event item href start end ref etag calendar dtype N/A get_floating_at N/A N/A self dtime N/A N/A N/A return allday events which are scheduled at `dtime`

        :type dtime: datetime.datetime
         N/A N/A N/A dtime tzinfo None N/A dtime N/A N/A aux to_unix_time dtime N/A sql_s SELECT item, recs_float.href, dtstart, dtend, ref, etag, dtype, events.calendar FROM recs_float JOIN events ON recs_float.href = events.href AND recs_float.calendar = events.calendar WHERE (dtstart <= ? AND dtend >= ? ) AND events.calendar in ({0}); N/A stuple N/A dtime dtime N/A result N/A N/A self sql_ex N/A N/A sql_s format N/A self _select_calendars stuple N/A N/A item href start end ref etag dtype calendar result N/A N/A start N/A N/A datetime utcfromtimestamp start N/A end N/A N/A datetime utcfromtimestamp end N/A N/A N/A N/A self construct_event item href start end ref etag calendar dtype N/A get N/A N/A self href start end ref dtype calendar N/A None None None None None N/A N/A returns the Event matching href

        if start and end are given, a specific Event from a Recursion set is
        returned, otherwise the Event returned exactly as saved in the db
         N/A N/A calendar None N/A sql_s SELECT href, etag, item FROM events WHERE href = ? AND calendar = ?; N/A result N/A N/A self sql_ex sql_s N/A href calendar N/A N/A href etag item N/A result N/A 0 N/A N/A dtype DATE N/A N/A start N/A N/A start date N/A end N/A N/A end date N/A N/A N/A Event fromString item locale N/A self locale href href calendar calendar etag etag start start end end ref ref N/A construct_event N/A N/A self item href start end ref etag calendar dtype N/A None N/A N/A N/A dtype DATE N/A N/A start N/A N/A start date N/A end N/A N/A end date N/A N/A N/A Event fromString item locale N/A self locale href href calendar calendar etag etag start start end end ref ref N/A search N/A N/A self search_string N/A N/A N/A search for events matching `search_string` N/A sql_s SELECT href, calendar FROM events WHERE item LIKE (?) and calendar in ({0}); N/A stuple N/A N/A N/A %{0}% format search_string N/A result N/A N/A self sql_ex N/A N/A sql_s format N/A self _select_calendars stuple N/A N/A href calendar result N/A N/A event N/A N/A self get href calendar calendar N/A N/A event N/A N/A check_support N/A N/A vevent href calendar N/A N/A N/A test if all icalendar features used in this event are supported,
    raise `UpdateFailed` otherwise.
    :param vevent: event to test
    :type vevent: icalendar.cal.Event
    :param href: href of this event, only used for logging
    :type href: str
     N/A rec_id N/A N/A vevent get RECURRENCE_ID N/A N/A N/A rec_id None N/A N/A N/A N/A rec_id params get RANGE THISANDPRIOR N/A N/A N/A UpdateFailed N/A N/A The parameter `THISANDPRIOR` is not (and will not be) supported by khal (as applications supporting the latest standard MUST NOT create those. Therefore event {0} from calendar {1} will not be shown in khal format href calendar N/A rdate N/A N/A vevent get RDATE N/A N/A N/A rdate None N/A N/A N/A N/A rdate params get VALUE PERIOD N/A N/A N/A UpdateFailed N/A N/A `RDATE;VALUE=PERIOD` is currently not supported by khal. Therefore event {0} from calendar {1} will not be shown in khal.
Please post exemplary events (please remove any private data) to https://github.com/pimutils/khal/issues/152 . format href calendar N/A check_for_errors N/A N/A component calendar href N/A N/A N/A checking if component.errors exists, is not empty and if so warn the user N/A N/A N/A hasattr component errors N/A component errors N/A N/A N/A N/A logger error N/A N/A Errors occurred when parsing {0}/{1} for the following reasons: format calendar href N/A error N/A component errors N/A N/A N/A N/A logger error error N/A N/A N/A logger error This might lead to this event being show wrongly or not at all. N/A calc_shift_deltas N/A N/A vevent N/A N/A N/A calculate an event's duration and by how much its start time has shifted
    versus its recurrence-id time

    :param event: an event with an RECURRENCE-ID property
    :type event: icalendar.Event
    :returns: time shift and duration
    :rtype: (datetime.timedelta, datetime.timedelta)
     N/A N/A isinstance vevent N/A icalendar Event N/A start_shift N/A N/A N/A vevent N/A DTSTART dt N/A N/A vevent N/A RECURRENCE-ID dt N/A N/A N/A duration N/A N/A N/A vevent N/A DTEND dt N/A N/A vevent N/A DTSTART dt N/A N/A N/A KeyError N/A N/A duration N/A N/A vevent N/A DURATION dt N/A N/A start_shift duration N/A