Hello
My problem is the following, I have two content types, KC and
DownloadedDocument, KC is a BaseFolder content type which inside I can
create DownloadedDocument objects. Inside of the KC class I've write the
next method to create objects dynamically. But when I run the product it
gives me an error which I show you next too.
security.declarePrivate('_saveDocument')
def _saveDocument(self,downloadedDocumentList):
"""
Para guardar el documento en la base de datos de Zope
"""
# se crean los contenidos descargados.
for url, html in downloadedDocumentList:
#crear el contenido
ids=self.generateUniqueId('DownloadedDocument')
self.invokeFactory(type_name="DownloadedDocument",id=ids)
self[ids].edit(title=url, text=html)
This is the error that it gives me
*Error Type *
*AttributeError *
*Error Value *
*generateUniqueId *
I don't understand why it gives me this error, I've proven to do it from
a python script and it has worked perfectly, please if you can help me
Excuse my English
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers