mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
*** empty log message ***
This commit is contained in:
parent
0390e3d4d8
commit
6821563bdb
@ -43,12 +43,12 @@ class DirectNotify:
|
|||||||
self.__categories[categoryName] = category
|
self.__categories[categoryName] = category
|
||||||
return(1)
|
return(1)
|
||||||
|
|
||||||
def newCategory(self, categoryName):
|
def newCategory(self, categoryName, logger=None):
|
||||||
"""newCategory(self, string)
|
"""newCategory(self, string)
|
||||||
Make a new notify category named categoryName. Return new category
|
Make a new notify category named categoryName. Return new category
|
||||||
if no such category exists, else return existing category"""
|
if no such category exists, else return existing category"""
|
||||||
if (not self.__categories.has_key(categoryName)):
|
if (not self.__categories.has_key(categoryName)):
|
||||||
self.__categories[categoryName] = Notifier.Notifier(categoryName)
|
self.__categories[categoryName] = Notifier.Notifier(categoryName, logger)
|
||||||
else:
|
else:
|
||||||
print "Warning: DirectNotify: category '%s' already exists" % \
|
print "Warning: DirectNotify: category '%s' already exists" % \
|
||||||
(categoryName)
|
(categoryName)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
from PandaModules import *
|
from libpandaexpressModules import *
|
||||||
from MessengerGlobal import *
|
from MessengerGlobal import *
|
||||||
from TaskManagerGlobal import *
|
from TaskManagerGlobal import *
|
||||||
from DirectNotifyGlobal import *
|
from DirectNotifyGlobal import *
|
||||||
|
@ -57,7 +57,7 @@ class Logger:
|
|||||||
Open a file for logging error/warning messages"""
|
Open a file for logging error/warning messages"""
|
||||||
self.resetStartTime()
|
self.resetStartTime()
|
||||||
t = time.localtime(self.__startTime)
|
t = time.localtime(self.__startTime)
|
||||||
st = time.strftime("%m.%d.%Y-%H:%M:%S", t)
|
st = time.strftime("%m-%d-%Y-%H-%M-%S", t)
|
||||||
logFileName = self.__logFileName + "." + st
|
logFileName = self.__logFileName + "." + st
|
||||||
self.__logFile = open(logFileName, "w")
|
self.__logFile = open(logFileName, "w")
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
from PandaModules import *
|
from libpandaexpressModules import *
|
||||||
from DirectNotify import *
|
from DirectNotify import *
|
||||||
from PythonUtil import *
|
from PythonUtil import *
|
||||||
|
|
||||||
@ -239,7 +239,11 @@ class TaskManager:
|
|||||||
for task in self.taskList:
|
for task in self.taskList:
|
||||||
task.setCurrentTimeFrame(self.currentTime, self.currentFrame)
|
task.setCurrentTimeFrame(self.currentTime, self.currentFrame)
|
||||||
# Run the task and check the return value
|
# Run the task and check the return value
|
||||||
|
if task.name == 'test':
|
||||||
|
print 'before task'
|
||||||
ret = task(task)
|
ret = task(task)
|
||||||
|
if task.name == 'test':
|
||||||
|
print 'after task'
|
||||||
if (ret == cont):
|
if (ret == cont):
|
||||||
continue
|
continue
|
||||||
elif (ret == done):
|
elif (ret == done):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user