Closed elioschmutz closed 10 years ago
confirmed :wink: i have fixed this already in a quick&dirty fix for bgbern https://github.com/4teamwork/bgbern.cityguide/blob/master/bgbern/cityguide/tests/builders.py#L17
Is the folder a dexterty type (plone.app.contenttypes installed)? Or why is this suddenly occuring?
Yes, it's a dexterity type.
Here is the configuration:
setup.py:
install_requires=[
'Plone',
'plone.app.contenttypes',
....
metadata.xml:
<?xml version="1.0"?>
<metadata>
<version>1000</version>
<dependencies>
<dependency>profile-plone.app.contenttypes:default</dependency>
</dependencies>
</metadata>
testing.py:
def setUpZope(self, app, configurationContext):
import my.package
xmlconfig.file(
'configure.zcml', ,my.package, context=configurationContext)
def setUpPloneSite(self, portal):
applyProfile(portal, 'my.package:default')
builders.py:
class FolderBuilder(DexterityBuilder):
portal_type = 'Folder'
builder_registry.register('folder', FolderBuilder, force=True)
test_xy.py:
create(Builder('folder'))
Well, can somebody @deiferni @elioschmutz provide a fix?
@elioschmutz is that double comma , ,
actually part of your testing.py
, or is that a typo introduced when posting it here?
@lukasgraf it's a typo in the post
@jone If I create a default dexterity folder with the builder:
the following error appears
The problem is somewhere in the self.arguments. There is:
but it should be