Re: Re: id widget's 'ignore_visible_ids' attribute

Sidnei da Silva <[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20060112151257.GB4585@cotia>
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.

-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.