本文整理汇总了Python中model.group.Group.important方法的典型用法代码示例。如果您正苦于以下问题:Python Group.important方法的具体用法?Python Group.important怎么用?Python Group.important使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model.group.Group
的用法示例。
在下文中一共展示了Group.important方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Group
# 需要导入模块: from model.group import Group [as 别名]
# 或者: from model.group.Group import important [as 别名]
dbsession.commit()
"""
BASIC REQUIREMENT TO HERE
"""
"""
FOR POOLC FROM HERE
"""
game_dev = Group(u"게임제작부")
dbsession.add(game_dev)
hakbeons = ["14", "13", "12", "11", "10", "09", "08", "07", "06", "05", "04", "03", "02", "01", "00", "99", "98"]
for i, hakbeon in enumerate(hakbeons):
hakbeon_group = Group(hakbeon + u"학번")
hakbeon_group.important = True
dbsession.add(hakbeon_group)
hakbeon_board = Board("y" + hakbeon, hakbeon + u"학번 게시판", hakbeon_group, anybody, "normal", i + 1)
dbsession.add(hakbeon_board)
seminar_board = Board("seminar", u"학술부", anybody, anybody, "somoim", 1)
dbsession.add(seminar_board)
game_dev_board = Board("game_dev", u"게임제작부", game_dev, game_dev, "somoim", 2)
dbsession.add(game_dev_board)
dbsession.commit()
"""
FOR POOLC TO HERE