[Zope-dev] Add list name programmatically

Jason Spisak 444@hiretechs.com
Wed, 15 Mar 2000 15:50:22 GMT


Actually that is the meta_type.  meta_type is can be different than add
list name.  I believe the add name is set in the Factory for a given
object.  I would like to retreive that name for the meta_type.  The reason
for this is that meta_types have to be unique accross a Zope installation,
so if you have 2 products that use a "Company" class, then the meta_types
have to be different.  I remember someone reccomending good design that you
prefix the meta_type with a product name to keep bad things fom happening
if two are identical.  Like 'ZStuff_Company', and 'ZMaker_Company', can
then be in the same installation, whereas if they both contained a
meta_type called 'Company', they could not be installed in the same Zope
without crashing it.

I'd like to be able to access a more 'user recognizable' name for a
meta_type, and as far as I can tell 'add list name' it the best choice.

All my best,


Phil Harris writes:

> for example:
> 
> <dtml-if "meta_type in ['Folder','DTML Document','DTML Method'.........]">
> 
> hth
> 
> Phil
> phil.harris@zope.co.uk
> ----- Original Message ----- 
> From: "Jason Spisak" <444@hiretechs.com>
> To: <zope-dev@zope.org>
> Sent: Tuesday, March 14, 2000 5:26 PM
> Subject: [Zope-dev] Add list name programmatically
> 
> 
> > Zopists,
> > 
> > How do you retrieve the addlist name for a meta_type progarmatically?
> > 
> > All my best,
> > 
> > -- 
> > Jason Spisak
> > 444@hiretechs.com
> > 
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists - 
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> > 
> 


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.