Menu

#44 DrScript Menu destroyed

closed-fixed
nobody
None
7
2005-01-06
2005-01-04
No

After doing some drag and drop in Edit Script Menu,
and then Save the new postitions,
the Script menu is disrupted.
(I didn't add anything new, only resorted the menu
with dnd)

Output in Console:
Error at: Check File
Error at: My Close Split Panel
Error at: My Split Panel
Error at: PyCrust DrPython
Error at: cvs edit
Error at: Quick search backward
Error at: Quick search forward
Error at: Start DrPython
Error at: My Close File
Error at: My Reload File
Error at: Copy Current File
Error at: Copy Current Path
Error at: My Find And Complete
Error at: Cpp Comment
Error at: C Comment Begin
Error at: C Comment End
Error at: C Comment Line
Error at: C Uncomment Line
Error at: Switch Header Cpp
Error at: Doxygen Comment
Traceback (most recent call last):
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
172, in OnbtnSave
s, k = GetShortcutArrays(self.datatree, root)
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
101, in GetShortcutArray
s
s, k = GetShortcutArrays(tree, b)
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
107, in GetShortcutArray
s
s, k = GetShortcutArrays(tree, b)
File "c:\temp\drpython-3.8.2\drScriptDialog.py", line
89, in GetShortcutArrays

if data.Shortcut is not None:
AttributeError: 'NoneType' object has no attribute
'Shortcut'

Discussion

  • Daniel Pozmanter

    Logged In: YES
    user_id=796750

    I cannot replicate this error, on either windows or linux,
    wxPython 2.5.2.8 (linux), 2.5.3.1 (windows), python 2.3.

    Any idea what is going on here?

     
  • Daniel Pozmanter

    • priority: 5 --> 7
     
  • Daniel Pozmanter

    Logged In: YES
    user_id=796750

    Also a few questions:

    Do you have any folders?

    Did you try sorting with just the sort button?
    Just drag and drop?

    How many drag and drop operations does it take to make
    drpython explode?

     
  • Franz Steinhaeusler

    Logged In: YES
    user_id=772872

    Yes, it happened with drag and drop of folders.
    Just drag and drop. I have four folders.
    I suspect, it was one folder, where only one script was
    contained.
    Several Operations, i performed.
    One folder contained no drscript anymore (before there were
    several scripts in there).
    I will try to test it with minimal folder/scripts, and then
    give you news, how to operate to achieve this, if
    I can get it happening again.

    (so backing up everyday, as i do, is good practice :))

     
  • Daniel Pozmanter

    • status: open --> closed-fixed
     
  • Daniel Pozmanter

    Logged In: YES
    user_id=796750

    Got it.

    Apparently, when moving a branch's children, I copied PyData
    from the new branch to the old! Oops.

    It now copies the data from the old branch to the new.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.