コード例 #1
0
ファイル: booking.py プロジェクト: mightymau/hubspace
def mewatching(booking, userid=None):
    if not userid:
        userid = identity.current.user.id
    if ResourceQueue.select(AND(ResourceQueue.q.rusageID == booking, 
                                ResourceQueue.q.foruserID == userid)).count():
        return " mewatching"
    return ""
コード例 #2
0
ファイル: 008.py プロジェクト: mightymau/hubspace
def add_table():
    from hubspace.model import ResourceQueue
    ResourceQueue.createTable(ifNotExists=True)