本文整理匯總了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