Hi Dirk,
I'm CC'ing in zope-dev as more people there may care...
Dirk Datzert wrote:
Hi Chris,
you wrote on the ZOPE-DB mailing-list
http://www.mail-archive.com/zope-db@zope.org/msg00417.html at Fri, 24
Feb 2006 09:15:31 -0800.
I have seen this KeyError after updating from Zope 2.7.5 to Zo
Hi guys,
I’m 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:
parent.i
Hello:
You can get the types from following function. Once you
get the list of the types of the object type, you can use it as you
want.
ptypes =
context.portal_types.objectValues()
sample script to test is:
---
ptypes =
context.portal_types.objectValues()
Thanks Aruna,
That returns all portal_types. However I
would like to see what the current type of an object is.
For example, if I am currently here:
/mysite/index.html
I would like to know that the current
object is a ‘Document’
And if I were here: /mysite/folder
I woul
On Mon, Apr 10, 2006 at 03:46:41PM -0700, Takahashi, Michael wrote:
> Hi guys,
>
> I'm 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 crea
Thank you to everyone who helped. I've found the answer. In my case, the
key was to use 'isPrincipiaFolderish'
So to run a check to see if something is a folder:
if context.isPrincipiaFolderish:
print "It's a folder!"
else:
print "Nope, it's not a folder."
Mike
-Original Message-