Re: id widget's 'ignore_visible_ids' attribute
Rob Miller <ra-UE+B0n23d/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Sidnei da Silva wrote: > On Thu, Jan 12, 2006 at 02:51:21PM +0000, Martin Aspeli wrote: > | Rob Miller <ra@...> writes: > | > | > > | > an 'ignore_visible_ids' attribute was recently added to the id widget, > | > in order to allow folks to override the site- or member-wide id > | > visibility setting on a type by type basis. > | > > | > this works fine, but when i installed the new code on an existing site, > | > the site quit working because the 'zid.pt' template assumes that the > | > property will be there, but for some of my custom types it was not > | > present. it's not clear to me why the attribute isn't appearing on the > | > widgets just with a restart; these types are not using dynamic schemas, > | > or doing anything fancy. but if it's happening to me, then it's > | > probably going to happen to other people. > | > | Did you try to do a schema update in archetypes_tool? If the schema becomes an > | instance variable, it may not gain the new attribute until a schema update. > > Don't know what you tried or which error you got, but I've did svn up > today and the template was broken, looking for a variable named > 'visible_ids' that wasn't defined in the template. It would bomb with > a NameError. I've fixed that. weird. this change (i.e. switch from using "|" to python's "or") was introduced at the same time as the ignore_visible_ids change, but it didn't cause any problems for me. i should have switched back to "|" anyway, though, to be safe. -r ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click