code-google-com / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

loggingControl.py calling postMenuCommand instead of setPostMenuCommand #296

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.
loggingControl.py line 54 uses:
subMenu.postMenuCommand(pymel.Callback(self.buildSubMenu, parent=subMenu, 
logger=item))
which raises the (suppressed) error:
'CommandMenuItem' object has no attribute 'postMenuCommand'
and results in only adding one logger item to the menu. It seems the function 
name has been changed to setPostMenuCommand when using maya 2013

What Version of Maya are you using?
2013.5

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)
Win7 64bit

What Version of PyMEL are you using?
1.0.5

What is the expected output? What do you see instead?
I expect to see a full list of loggers listed. Instead I only see the first one

If possible, provide a few lines of code to reproduce the problem. It helps
us if your code will reproduce the problem from a new scene.
n/a

Does maya.cmds exhibit the same problem?
n/a

Please provide any additional information below.

Original issue reported on code.google.com by luk...@gmail.com on 28 Mar 2013 at 3:54