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