当前位置: 首页>>代码示例>>Python>>正文


Python CaselessDict.__init__方法代码示例

本文整理汇总了Python中icalendar.caselessdict.CaselessDict.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python CaselessDict.__init__方法的具体用法?Python CaselessDict.__init__怎么用?Python CaselessDict.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在icalendar.caselessdict.CaselessDict的用法示例。


在下文中一共展示了CaselessDict.__init__方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     """Set keys to upper for initial dict.
     """
     CaselessDict.__init__(self, *args, **kwargs)
     # set parameters here for properties that use non-default values
     self.subcomponents = []  # Components can be nested.
     self.is_broken = False  # True if we ignored an exception while
开发者ID:arpa2,项目名称:python-icalendar,代码行数:9,代码来源:cal.py

示例2: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     "Set keys to upper for initial dict"
     CaselessDict.__init__(self, *args, **kwargs)
     self['VEVENT'] = Event
     self['VTODO'] = Todo
     self['VJOURNAL'] = Journal
     self['VFREEBUSY'] = FreeBusy
     self['VTIMEZONE'] = Timezone
     self['VALARM'] = Alarm
     self['VCALENDAR'] = Calendar
开发者ID:WebActionHero,项目名称:icalendar,代码行数:12,代码来源:cal.py

示例3: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     "Set keys to upper for initial dict"
     CaselessDict.__init__(self, *args, **kwargs)
     self['binary'] = vBinary
     self['boolean'] = vBoolean
     self['cal-address'] = vCalAddress
     self['date'] = vDDDTypes
     self['date-time'] = vDDDTypes
     self['duration'] = vDDDTypes
     self['float'] = vFloat
     self['integer'] = vInt
     self['period'] = vPeriod
     self['recur'] = vRecur
     self['text'] = vText
     self['time'] = vTime
     self['uri'] = vUri
     self['utc-offset'] = vUTCOffset
     self['geo'] = vGeo
     self['inline'] = vInline
开发者ID:BackupTheBerlios,项目名称:cuon-svn,代码行数:21,代码来源:prop.py

示例4: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     "Set keys to upper for initial dict"
     CaselessDict.__init__(self, *args, **kwargs)
     self.all_types = (
         vBinary,
         vBoolean,
         vCalAddress,
         vDDDLists,
         vDDDTypes,
         vDate,
         vDatetime,
         vDuration,
         vFloat,
         vFrequency,
         vGeo,
         vInline,
         vInt,
         vPeriod,
         vRecur,
         vText,
         vTime,
         vUTCOffset,
         vUri,
         vWeekday
     )
     self['binary'] = vBinary
     self['boolean'] = vBoolean
     self['cal-address'] = vCalAddress
     self['date'] = vDDDTypes
     self['date-time'] = vDDDTypes
     self['duration'] = vDDDTypes
     self['float'] = vFloat
     self['integer'] = vInt
     self['period'] = vPeriod
     self['recur'] = vRecur
     self['text'] = vText
     self['time'] = vTime
     self['uri'] = vUri
     self['utc-offset'] = vUTCOffset
     self['geo'] = vGeo
     self['inline'] = vInline
     self['date-time-list'] = vDDDLists
开发者ID:affinitic,项目名称:icalendar,代码行数:44,代码来源:prop.py

示例5: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     "Set keys to upper for initial dict"
     CaselessDict.__init__(self, *args, **kwargs)
     self["binary"] = vBinary
     self["boolean"] = vBoolean
     self["cal-address"] = vCalAddress
     self["date"] = vDDDTypes
     self["date-time"] = vDDDTypes
     self["duration"] = vDDDTypes
     self["float"] = vFloat
     self["integer"] = vInt
     self["period"] = vPeriod
     self["recur"] = vRecur
     self["text"] = vText
     self["time"] = vTime
     self["uri"] = vUri
     self["utc-offset"] = vUTCOffset
     self["geo"] = vGeo
     self["inline"] = vInline
     self["date-time-list"] = vDDDLists
开发者ID:Naeka,项目名称:icalendar,代码行数:22,代码来源:prop.py

示例6: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     CaselessDict.__init__(self, *args, **kwargs)
     self.params = Parameters()
开发者ID:IanMihuro,项目名称:google-app-engine-weekend-projects,代码行数:5,代码来源:prop.py

示例7: __init__

# 需要导入模块: from icalendar.caselessdict import CaselessDict [as 别名]
# 或者: from icalendar.caselessdict.CaselessDict import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     "Set keys to upper for initial dict"
     CaselessDict.__init__(self, *args, **kwargs)
     # set parameters here for properties that use non-default values
     self.subcomponents = [] # Components can be nested.
开发者ID:Abraham248,项目名称:hd-events,代码行数:7,代码来源:cal.py


注:本文中的icalendar.caselessdict.CaselessDict.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。