本文整理汇总了Python中Components.config.ConfigSubsection.autoupdate方法的典型用法代码示例。如果您正苦于以下问题:Python ConfigSubsection.autoupdate方法的具体用法?Python ConfigSubsection.autoupdate怎么用?Python ConfigSubsection.autoupdate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Components.config.ConfigSubsection
的用法示例。
在下文中一共展示了ConfigSubsection.autoupdate方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: new
# 需要导入模块: from Components.config import ConfigSubsection [as 别名]
# 或者: from Components.config.ConfigSubsection import autoupdate [as 别名]
def new(self):
l = config.plugins.simpleRSS.feed
s = ConfigSubsection()
s.uri = ConfigText(default="http://", fixed_size = False)
s.autoupdate = ConfigOnOff(default=True)
id = len(l)
l.append(s)
self.session.openWithCallback(self.conditionalNew, RSSFeedEdit, id)
示例2: addFeed
# 需要导入模块: from Components.config import ConfigSubsection [as 别名]
# 或者: from Components.config.ConfigSubsection import autoupdate [as 别名]
def addFeed(address, auto = False):
l = config.plugins.simpleRSS.feed
# Create new Item
s = ConfigSubsection()
s.uri = ConfigText(default="http://", fixed_size = False)
s.autoupdate = ConfigOnOff(default=True)
# Set values
s.uri.value = address
s.autoupdate.value = auto
# Save
l.append(s)
l.save()
示例3: _
# 需要导入模块: from Components.config import ConfigSubsection [as 别名]
# 或者: from Components.config.ConfigSubsection import autoupdate [as 别名]
("notification", _("Notification")),
("preview", _("Preview")),
("none", _("none"))
],
default = "preview"
)
simpleRSS.interval = ConfigNumber(default=15)
simpleRSS.feedcount = ConfigNumber(default=0)
simpleRSS.autostart = ConfigEnableDisable(default=False)
simpleRSS.keep_running = ConfigEnableDisable(default=True)
simpleRSS.feed = ConfigSubList()
i = 0
while i < simpleRSS.feedcount.value:
s = ConfigSubsection()
s.uri = ConfigText(default="http://", fixed_size=False)
s.autoupdate = ConfigEnableDisable(default=True)
simpleRSS.feed.append(s)
i += 1
del s
simpleRSS.enable_google_reader = ConfigYesNo(default=False)
simpleRSS.google_username = ConfigText(default="", fixed_size=False)
simpleRSS.google_password = ConfigPassword(default="")
del simpleRSS, i
# Global Poller-Object
rssPoller = None
# Main Function
def main(session, **kwargs):
# Get Global rssPoller-Object
示例4: ConfigInteger
# 需要导入模块: from Components.config import ConfigSubsection [as 别名]
# 或者: from Components.config.ConfigSubsection import autoupdate [as 别名]
],
default = "preview"
)
simpleRSS.ticker_speed = ConfigInteger(default = 125, limits = (100, 900))
simpleRSS.interval = ConfigNumber(default=15)
simpleRSS.feedcount = ConfigNumber(default=0)
simpleRSS.autostart = ConfigYesNo(default=False)
simpleRSS.keep_running = ConfigYesNo(default=True)
simpleRSS.ext_menu = ConfigYesNo(default=True)
simpleRSS.filescan = ConfigNothing()
simpleRSS.feed = ConfigSubList()
i = 0
while i < simpleRSS.feedcount.value:
s = ConfigSubsection()
s.uri = ConfigText(default="http://", fixed_size=False)
s.autoupdate = ConfigYesNo(default=True)
simpleRSS.feed.append(s)
i += 1
del s
simpleRSS.enable_google_reader = ConfigYesNo(default=False)
simpleRSS.google_username = ConfigText(default="", fixed_size=False)
simpleRSS.google_password = ConfigPassword(default="")
del simpleRSS, i
# Global Poller-Object
rssPoller = None
# Main Function
def main(session, **kwargs):
# Get Global rssPoller-Object
示例5: _
# 需要导入模块: from Components.config import ConfigSubsection [as 别名]
# 或者: from Components.config.ConfigSubsection import autoupdate [as 别名]
("preview", _("Preview")),
("ticker", _("Ticker")),
("none", _("none"))
],
default = "preview"
)
simpleRSS.interval = ConfigNumber(default=15)
simpleRSS.feedcount = ConfigNumber(default=0)
simpleRSS.autostart = ConfigOnOff(default=False)
simpleRSS.keep_running = ConfigOnOff(default=True)
simpleRSS.feed = ConfigSubList()
i = 0
while i < simpleRSS.feedcount.value:
s = ConfigSubsection()
s.uri = ConfigText(default="http://", fixed_size=False)
s.autoupdate = ConfigOnOff(default=True)
simpleRSS.feed.append(s)
i += 1
del s
simpleRSS.enable_google_reader = ConfigYesNo(default=False)
simpleRSS.google_username = ConfigText(default="", fixed_size=False)
simpleRSS.google_password = ConfigPassword(default="")
del simpleRSS, i
# Global Poller-Object
rssPoller = None
# Main Function
def main(session, **kwargs):
# Get Global rssPoller-Object