[Zope-dev] Is there a function to get the object type?

2006-04-10 Thread Takahashi, Michael
Hi guys, Im trying to write a function that checks to see if the current object is a Folder. I am using this tutorial as a reference: http://plone.org/documentation/how-to/pre-populated-folder To create a new content object, the following command is used:

RE: [Zope-dev] Is there a function to get the object type?

2006-04-10 Thread Takahashi, Michael
to know that the current object is a Folder Thanks, Mike From: Aruna Kathiria [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 3:58 PM To: Takahashi, Michael; zope-dev@zope.org Subject: RE: [Zope-dev] Is there a function to get the object type? Hello: You can get

RE: [Zope-dev] Is there a function to get the object type?

2006-04-10 Thread Takahashi, Michael
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Winkler Sent: Monday, April 10, 2006 4:43 PM To: zope-dev@zope.org Subject: Re: [Zope-dev] Is there a function to get the object type? On Mon, Apr 10, 2006 at 03:46:41PM -0700, Takahashi, Michael wrote: Hi guys, I'm trying

[Zope-dev] RE: How to delete an object given a path in Zope

2006-03-15 Thread Takahashi, Michael
does not work. It gives the following error: Error Type AttributeError Error Value temp Side note: I'm running Zope 2.7.6 Thanks, Mike -Original Message- From: suresh [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 3:09 AM To: Takahashi, Michael Subject: Re: How

[Zope-dev] How to delete an object given a path in Zope

2006-03-14 Thread Takahashi, Michael
Hi guys, I am trying to figure out how to delete an object in Zope given a path. Using restrictedTraverse Im able to get the object by its path. I then want to delete this object. Im assigning the result to obj as shown here: obj =

[Zope-dev] Modifying a ZPT state based on a certain parameter

2005-12-19 Thread Takahashi, Michael
Hi guys, I am running on Zope 2.7.6 with Plone 2.0.5. I am currently building a dynamic application using MySQL as the backend database. I'd like to be able to change a ZPT's state based on a parameter passed by the db. For example, I have a ZPT that displays information for a particular

[Zope-dev] Listing a groups users via Python and portal_groups

2005-07-20 Thread Takahashi, Michael
Hi guys, Im trying to work on a function call using Python that will list the users of any specified group using the function portal_groups. Ive been able to successfully do this the opposite way by getting the users groups via portal_membership:

[Zope-DB] Deleting a ZCatalog Object from ZODB

2005-07-07 Thread Takahashi, Michael
Hi Guys, I have successfully setup Zope to query a MySQL database and catalog the data using the infamous Catalog Anything technique (http://zope.org/Members/rbickers/cataloganything). One caveat that occurs is that when you delete an object from the MySQL database and you run the