Hi!
I'm would like to create some objects from an External Method. The
objects uses schemaextender.
docid is defined on the schemaextender and works. This is the script:
def importa(self):
""" importa le risore metalib """
for i in docs[:10]:
iden = str(i)
_createObjectByType('Document', self, iden)
ris = self[iden]
ris.setTitle(iden)
ris.processForm()
ris.reindexObject()
subtype = 'ultradoc'
subtyper = getUtility(ISubtyper)
subtyper.change_type(ris,subtype)
I can access the Schema of ris, but it misses the docid attribute, so I
cannot get the field, the mutator or anything else. The funny thing is
that If I run a similar script after this, I can take the schema with
all the fields and have also the 'docid' field.
Any idea? Is a problem of external methods, should I use a browser view?
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers