Re: [Karrigell-main] BuanBuan Wiki Demo: Administrator AttributeError
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2004-08-06 16:21:34
|
Thanks Conrad for mentioning this bug. There should be a test on the existe= nce of an attribute "wikidb" to the session object Replace line 7 by this : --------------------------- if hasattr(so,"wikidb"): names=3D[ x.name for x in so.wikidb.find() ] # list of page names else: names=3D[] if not names: print "No page to remove" print '<p><a href=3D"index.pih">Back</a>' raise SCRIPT_END --------------------------- I'll put the correct version in the next release Cheers, Pierre > Message du 06/08/04 05:20 > De : "Conrad Krieg"=20 > A : "Karrigell Main"=20 > Copie =E0 :=20 > Objet : [Karrigell-main] BuanBuan Wiki Demo: Administrator AttributeError > I am trying to use the Administrator portion of the BuanBuan Wiki demo, a= nd am=20 > experiencing an error. First, I created a login/password for wiki=20 > administrator using wiki_password.py. Then, when I logged in as=20 > Administrator, I get this error message: >=20 > Error in /wikiAdmin.pih >=20 > Script /wikiAdmin.pih > AttributeError: SessionElement instance has no attribute 'db' >=20 > Line 7=20 > names=3Dmap(lambda x: x.name,so.db.find()) # list of page names >=20 > Traceback (most recent call last): > File "/Karrigell-2.0.3/Template.py", line 184, in render > exec pythonCode in ns > File "", line 5, in ? > AttributeError: SessionElement instance has no attribute 'db' >=20 > Does anyone have any ideas on how to fix this? >=20 > Karrigell v2.0.3 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Karrigell-main mailing list > Kar...@li... > https://lists.sourceforge.net/lists/listinfo/karrigell-main > |