コード例 #1
0
ファイル: interfaces.py プロジェクト: mleist/ict-ok.org
 def ensureRoomAtLocation(event):
     if event.room is not None and \
        event.location is not None and \
        not nodeIsUnder(event.room, event.location):
         raise Invalid(
             "Room '%s' is not in location '%s'." % \
             (oid2dcTitle(event.room), oid2dcTitle(event.location)))
コード例 #2
0
ファイル: interfaces.py プロジェクト: mleist/ict-ok.org
 def ensureRoomInBuilding(event):
     if event.room is not None and \
        event.building is not None and \
        not nodeIsUnder(event.room, event.building):
         raise Invalid(
             "Room '%s' is not in building '%s'." % \
             (oid2dcTitle(event.room), oid2dcTitle(event.building)))
コード例 #3
0
ファイル: interfaces.py プロジェクト: mleist/ict-ok.org
 def ensureBuildingInLocation(event):
     if event.building is not None and \
        event.location is not None and \
        not nodeIsUnder(event.building, event.location):
         raise Invalid(
             "Building '%s' is not in location '%s'." % \
             (oid2dcTitle(event.building), oid2dcTitle(event.location)))