Le 25/02/2012 19:01, Peter Bittner a écrit :
> 2012/2/25 lkcl luke<[email protected]>:
>> commit 65b360c24327b7def9db23de25d7b2be36f32ad3
>> Author: Luke Leighton<[email protected]>
>> Date:   Sat Feb 25 11:46:57 2012 +0000
>>
>>     stop pyjd history notification if token hasnt changed
> I've done a 'git pull', followed by the usual installation procedure
> (bootstrap.py, run_bootstrap_first_then_setup.py,
> run_bootstrap_first_then_pyjd_setup.py). But the error message is the
> there when I run 'pyjd website.py':
>
> [...]
>    File "website.py", line 164, in onHistoryChanged
>      self.fTabs.selectTab(idx)
>    File "/home/pbittner/Development/pyjamas/library/pyjamas/ui/TabPanel.py",
> line 135, in selectTab
>      self.tabBar.selectTab(index)
>    File "/home/pbittner/Development/pyjamas/library/pyjamas/ui/TabBar.py",
> line 168, in selectTab
>      self.checkTabIndex(index)
>    File "/home/pbittner/Development/pyjamas/library/pyjamas/ui/TabBar.py",
> line 188, in checkTabIndex
>      if (index<  -1) or (index>= self.getTabCount()):
>    File "/home/pbittner/Development/pyjamas/library/pyjamas/ui/TabBar.py",
> line 73, in getTabCount
>      return self.panel.getWidgetCount() - 2
> RuntimeError: maximum recursion depth exceeded
>
> Is there anything I have to do in addition, or is the bug still unfixed?
>
> Peter
We have fixed this twice and it still doesn't work ? omg...

Do you have the following lines in website.py ?


     def onTabSelected(self, sender, tabIndex):
         current_token = History.getToken()
         new_token = self.page_list[tabIndex][0]
         if current_token != new_token:
             History.newItem(new_token)

     def onHistoryChanged(self, token):
         if self.pages.has_key(token):
             idx = self.tab_index[token]
             self.fTabs.selectTab(idx)


++
Pascal

Reply via email to