當前位置: 首頁>>代碼示例>>Python>>正文


Python Group.important方法代碼示例

本文整理匯總了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
開發者ID:davinnovation,項目名稱:Yuzuki,代碼行數:32,代碼來源:yzk_setup_poolc.py


注:本文中的model.group.Group.important方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。