2003-05-29 |
Rescuing Lost Nodes |
Thank your gods that you make backups.
Fetch wiki.data from the most recent backup.
ActivePython 2.2.2 Build 224 (ActiveState Corp.) based on
Python 2.2.2 (#37, Nov 26 2002, 10:24:37) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import metakit
>>> db = metakit.storage('wiki.data')
>>> nodes = db.getas("nodes[id:S,title:S,text:S")
>>> res, found = nodes.locate({'id':'WikiTool'})
>>> found
1
Sigh with relief.
>>> t = nodes[res].text
>>> t[:60]
".. contents:: \n\nWhat?\n-----\n\nI've hacked together the PyDS W"
>>> file('phew.txt','wt').write(t)
Copy content from phew.txt back into PyDS as WikiTool/ToDo.
Cackle with laughter.
|
posted at 12:22:56
#
comment []
trackback []
|
|
Edit non-existent subnode bug |
Oops
Exception exceptions.KeyError:
categoryid File Line Function
Source
D:\Python22\Lib\site-packages\PyDS\Tool.py 1068
continue_request s = getattr(self,meth)(req)
D:\Python22\Lib\site-packages\PyDS\WikiTool.py 257
show_html _flet.begin(categoryid=node ['categoryid'], id=id)
I linked to WikiTool/ToDo and tried to follow it.
Oh, bugger. I just trashed my to do list by copying the error before pasting the list somewhere else...
|
posted at 12:10:08
#
comment []
trackback []
|
|
|
Oooooh.
|
posted at 11:53:04
#
comment []
trackback []
|
|
|
Nifty, though the DHTML Imposter Exploding Tree List Menu is closer to what I want. If anyone has a tree view that'd make sense for the heirachial display of the new WikiTool (grab the most recent version), please let me know.
|
posted at 11:20:00
#
comment []
trackback []
|
|
|
Posts related to PyDS
|