RE: [Karrigell-main] BuanBuan Wiki Demo: Administrator AttributeError
Brought to you by:
quentel
From: Conrad K. <ce...@lc...> - 2004-08-06 16:33:25
|
Thanks, Pierre. I just looked at Karrigell yesterday and am impresse= d with what I have seen so far. I will try this fix this weekend. Conrad -----Original Message----- From: Pierre QUENTEL [mailto:que...@wa...] Sent: Friday, August 06, 2004 9:21 AM To: ce...@lc...; Karrigell Main Subject: Re: [Karrigell-main] BuanBuan Wiki Demo: Administrator AttributeError Thanks Conrad for mentioning this bug. There should be a test on th= e existence 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" > A : "Karrigell Main" > Copie =E0 : > Objet : [Karrigell-main] BuanBuan Wiki Demo: Administrator AttributeError > I am trying to use the Administrator portion of the BuanBuan Wi= ki demo, and am > experiencing an error. First, I created a login/password for wi= ki > administrator using wiki_password.py. Then, when I logged in as > Administrator, I get this error message: > > Error in /wikiAdmin.pih > > Script /wikiAdmin.pih > AttributeError: SessionElement instance has no attribute 'db' > > Line 7 > names=3Dmap(lambda x: x.name,so.db.find()) # list of page names > > 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' > > Does anyone have any ideas on how to fix this? > > Karrigell v2.0.3 > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the ch= anges on > Linux.com, ITManagersJournal and NewsForge in the past few week= s? 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 > |